Repository navigation
Releases
v1.3.0
[1.3.0] - 2026-11-11
Changed
- The Windows mount keeps file data it has read, in a cache of its own
capped at 64 MiB, beside the 64 MiB metadata cache. Windows does not
cache file data on the mount, so a file read again was read from the
drive again. On a USB drive, 4000 reads of 4 KiB at scattered places in
a 48 MiB file, done a second time: 1.75 s -> 0.22 s. A file read again
in order gains less (0.90 s -> 0.66 s for 48 MiB in 4 KiB pieces): each
request still makes the round trip from Windows to the mount. The cache
holds disk blocks, which change only through a write that drops them,
so it serves every file sharing a block, snapshots included. (#17) - The Windows mount logs a volume UUID it cannot read (the drive then gets
a stand-in serial number) and file attributes it cannot read while
listing a folder (the file is then listed with no size or times), where
it passed over both before. - Tests: containers of 1, 2, 4, 8, 32 and 64 TiB formatted by macOS, one
for each way macOS lays out the space manager as a container grows, are
read and written through the library and checked against macOS and
fsck_apfs(size_matrix.rs). The suite's 64 MB images never reached
the layout behind #23.
v1.2.1
[1.2.1] - 2026-11-11
Fixed
- Drives of about 4 TB and larger showed in Windows Explorer as 1 GB with
512 MB free. On a container that large macOS writes the space manager
over two blocks, and its checksum covers both; the free-space count read
only the first, failed the checksum, and the mount fell back to fixed
figures without saying so. The space manager is now read whole, and a
failure to read the volume's size is logged. Checked on a 4 TB volume
formatted by macOS: total size asdfreports it. Reading and writing
files were not affected: the write path already read the space manager
whole. (#23)
v1.2.0
[1.2.0] - 2026-11-05
Added
- Mounting a volume as one of its snapshots holds it, read-only:
apfs-mount --drive N --snapshot <name>(or--snapshot-xid <xid>, as
snapshot listprints it;--imagetoo). The snapshot's frozen volume
superblock names its catalog, which the live object map maps at the
snapshot's transaction;--writableis ignored for a snapshot. In the
library:FsView::open_snapshot,FsView::snapshotsand
apfs_core::snapshot::list. Checked against macOS mounting the same
snapshot (mount_apfs -s): the files read the same, byte for byte, and
files changed or deleted after the snapshot read as they were. (#12) - The app lists the volumes of a drive and their snapshots: a drive whose
container holds several volumes gets a volume picker, and a volume with
snapshots a choice between the volume as it is now and each snapshot
(mounted read-only). Behind it,apfs-mount volume listtakes
--drive N(opened read-only and shared, so a drive with a volume
mounted is listed too) and--json; the launcher classes take the
volume (--volume-index %3), and a newapfs-mount-snapclass mounts a
snapshot (--snapshot-xid %4). (#18)
Changed
- Writing to a volume that has snapshots changes the catalog along the
paths to the changed records, as without one. Every operation under a
snapshot rewrote the whole catalog and object map (deleting 20 files
under a snapshot on a drive of 120 000 took 11 s). A rewritten catalog
node now keeps the versions a snapshot froze mapped for it and gains
one at the new transaction; only versions newer than the newest snapshot
are replaced and released, and the volume's block count follows what is
written and released. On 3000 files under a snapshot: creating a file
writes 26 blocks (295 before; 25 without a snapshot), a range write 19,
a rename 22, an unlink 23. Checked withfsck_apfsafter single and
grouped operations, against macOS reading the volume and the snapshot
and then writing to the volume itself, and after deleting the snapshot.
(#11) - So the Windows mount (and the app) writes to a volume that has
snapshots, Time Machine's included, instead of mounting it read-only.
Checked on Windows: a volume with a snapshot mounted writable took 200
new files, an edit, 101 deletions and a rename in under a second; back
on a Mac it wasfsck_apfs-clean, read as written, and the snapshot
(mounted withmount_apfs -s) still held every file as it was. snapshot revert(andrevert_to_snapshot) works the way macOS does:
it reverts to any snapshot, deleting the ones taken after it, and keeps
the snapshot it reverts to. Only the latest snapshot could be reverted
to, and the revert deleted it. Everything happens in one transaction,
so the volume is either reverted or untouched. The snapshot kept names
the revert's transaction rather than the one it first froze (its name,
creation time and content are the same). Checked with four snapshots,
reverting to the second and again after more writes:fsck_apfs-clean
each time, and macOS reads the reverted files. (#13)- Deleting a large folder on the Windows mount is 23 times faster: 99 000
files on a USB drive went in 72 s withRemove-Item -Recurse, against
28 minutes before. Every commit dropped the whole read cache, and every
delete dropped the folder's cached listing, which Windows asks for again
after each delete, so the folder was read from the disk over and over.
The read cache now outlives a commit (each write already drops what it
overlaps), a delete takes only its own name out of the listing, and the
cached names carry over a commit.
Fixed
- A volume with many snapshots. The snapshot metadata tree was read and
written as a single node, which holds about 25 snapshots: taking one more
failed, and on a volume where macOS had grown the tree past one node (a
Time Machine disk)snapshot list,deleteandrevertfailed. The
object map's snapshot tree had the same limit at 142 snapshots, and only
its root was freed when it was rebuilt. Both trees are now read at any
depth and written with as many levels as they need, every old node is
freed, and the volume's block count follows the node counts. Checked
with 150 snapshots: both trees go past one node, taking, deleting and
reverting stayfsck_apfs-clean, macOS lists the same snapshots, and
after macOS deletes one from a tree written here it reads back as macOS
left it. (#14)
v1.1.1
Faster reads of files edited in many places.
Install
Download apfs-explorer-setup.exe below and run it; it installs WinFsp when it is missing and upgrades 1.1.0 in place.
SHA-256 of apfs-explorer-setup.exe:
f3ad2fef7bc85f0838109633bff2a7deaef5621dacbec79acaee05d32af61e5c
The installer is built from the tag by the release workflow; apfs-explorer.msi (the product alone) and winfsp.msi (the WinFsp 2.1 redistributable it chains) are attached as well.
Changes
- A read looks up only the extents that hold the part of the file asked for. Every edit splits a file's extent, and each read used to gather all of the file's extent records first, so a program reading an edited file 4 KiB at a time walked the whole list on every request.
Measured on one USB drive
| Workload | 1.1.0 | 1.1.1 | NTFS |
|---|---|---|---|
| Read a 256 MiB file with 1000 scattered edits in 4 KiB requests, cold / warm | 6.2 / 6.0 s | 3.5 / 3.6 s | 2.2 / 0.27 s |
The other workloads in the README were measured again and moved within run-to-run spread. Before the release the drive went through the fault scenarios (mount killed during a copy, mount cycles, a five-minute mixed workload checked file by file, a read-only mount), copies of 1 and 4 GiB, 10 000 and 100 000 files in one folder and edits to a 2 GiB file, and then fsck_apfs on a Mac.
See CHANGELOG.md for the full list.
APFS Explorer 1.1.0
Writing from Windows, tested on a real USB drive against macOS.
Install
Download apfs-explorer-setup.exe below and run it; it installs WinFsp when it is missing. The app asks for administrator rights once when it opens and shows its version and build under its title.
SHA-256 of apfs-explorer-setup.exe:
52a8baa6f0fa74e05dae91bc9971d52be388033966d0e80ffad02c3886c0d6bc
The installer is built from the tag by the release workflow; apfs-explorer.msi (the product alone) and winfsp.msi (the WinFsp 2.1 redistributable it chains) are attached as well.
Highlights
Write path
- Writes change only the blocks they touch: range writes, appends, truncation and extension instead of whole-file rewrites.
- B-trees are updated along the changed paths, and operations are grouped into one checkpoint, committed at most about a second after the last one and at unmount.
- A transaction's new blocks are allocated next to each other, so a commit is a few long writes.
- Snapshots, clones, hard links, symlinks, extended attributes and compressed files are written and checked with
fsck_apfs, and against macOS editing what was written.
Windows host
- A read-only mount refuses writes; a drive pulled out ends its mount within a second.
- Mounting from the app works again (it is elevated once at start), the app logs reliably, and
apfs-mount --versionnames the build. snapshot list,deleteandrevertwork on a drive (--drive N), and refuse a drive that is mounted.
Measured on one USB drive
| Workload | APFS Explorer | NTFS |
|---|---|---|
| Copy 2000 files of 4 KiB | 6.3 s | 31.2 s |
| Rename 300 files | 0.23 s | 1.8 s |
| 1000 scattered 4 KiB writes into a 256 MiB file | 1.8 s | 3.7 s |
| Copy a 1 GiB file | 85 s | 72 s |
| Read 1 GiB in 1 MiB requests, cold | 6.7 s | 5.3 s |
Three pulls of the drive in the middle of a stream of writes lost only the last 0.2 to 0.6 s of writes; every file written before them read back intact and none was half-written. The full table and the reasons behind it are in the README.
Known limitations
- A volume with snapshots mounts read-only; delete the snapshots (on a Mac, or
apfs-mount snapshot delete --drive N) to write from Windows. - Windows does not cache file data on the mount, so a file read twice is read from the drive twice.
- FileVault-encrypted volumes and sealed system volumes are not supported.
See CHANGELOG.md for the full list.
v1.0.0-rc3
[1.0.0-rc3] - 2026-06-02
Added
- Multi-node volume omap read + write + free (#157): the catalog rewrite path
now descends and rebuilds a split volume omap b-tree (table_space reserve
matching macOS), so writes on volumes with thousands of files stay fsck-clean. - Windows-runnable catalog self-verifier:
apfs_write::file::verify_fsrootplus
an env-gated (APFS_SELF_VERIFY=1)self_verifyin winfsp-host that checks
the fsroot after each committed op and FREEZES the mount on any structural
violation (never propagates a pre-existing corruption).
Fixed
- Catalog key comparator parity with Apple
apfs_key_compare(verified against
apfs.kext): per-type ordering - DIR_REC by hash then name, FILE_EXTENT /
SIBLING_LINK numeric, XATTR by name (was a flat byte compare).
Investigated
- #156 real-USB fsroot corruption - VERDICT: not our write-path. A 3-stage
real-hardware handoff experiment with an independent verifier confirmed our
output is structurally clean (all leaves monotonic), a clean macOS remount is
clean, and a mid-write yank is clean (APFS crash-safety). The observed
corruption sat in a macOS.Spotlight-V100cache dir with an Apple in-place
inserter signature our packer cannot produce.