2.4.4rc3
ActualizadoVersión preliminar
*** zfs-macOS-2.4.4rc3
OpenZFS on OS X 2.4.4rc3
Changes since rc2: crash and hang fixes, a round of memory and performance work from rottegift, and hardware-accelerated encryption on Apple Silicon.
Crash and hang fixes
- Unmount/export hang fixed. A file opened during a write-sync could keep a stray reference on its vnode, so the unmount waited forever. Spotlight indexing a new dataset triggered this easily. (
macOS: release async-zget znodes that are not attached yet) - Unmounting now always goes through DiskArbitration. It tries a normal
diskutil unmountfirst and falls back to a forced unmount only when asked. It never usesumount -f, which bypassed DiskArbitration and could leave Spotlight (mds) holding files. - Stale per-file state on reused znodes fixed.
z_suspendedandz_document_idare now reset each time a znode is allocated, including for.snapshot-directory entries.zfs - Timer interval fixes. Several wrong time-interval calculations are corrected. One of them made the ARC run as an MRU-only cache instead of a balanced MRU/MFU cache, which hurt cache hit rates.
Memory and performance (rottegift)
- ABD buffers use
IOMallocData()on macOS 15 and newer. These are the kext's largest memory consumer. They now come from the data allocator instead ofIOMallocAligned(), which eases pressure on the kernel's shared memory map. - Kernel memory caches are grouped by how long their allocations live. Short-lived and long-lived allocations no longer fragment each other. There is also a diagnostic report of what each cache holds.
- Memory is returned after a large free. Per-CPU caches that keep memory pinned are now flushed after a mass free, so memory goes back to the system sooner.
- The slab consolidator's rate can be changed while running.
- The number of ZFS vnodes can optionally be capped. This is off by default. When on, idle vnodes are recycled in batches to limit the memory they pin.
- Apple Silicon CPU layout. CPU IDs are numbered without gaps, and efficiency (E) cores are counted.
- SPL load messages are kept in a boot-log kstat, along with a summary of memory sizing at load.
Encryption
- Accelerated AES on Apple Silicon (#117). The AES modes and GCM now use the ARMv8 crypto instructions (
aesv8/ghashv8), and the fastest available implementation is selected automatically. They pass all ICP test vectors: 322 of 322 for GCM and 552 of 552 for CCM.
*** zfs-macOS-2.4.4rc3p1
- Changes to the installer to handle exporting pools better
*** zfs-macOS-2.4.4rc2-anyraid
- rc2 build with new anyraid support if anyone wants to test it. It is not in rc3
*** zfs-macOS-2.4.4rc2
- raidz1 arithmetic could corrupt pointers on arm64.
*** zfs-macOS-2.4.4rc1
Changes since 2.4.3rc5
New features (macOS)
- ZFS Versions (ported from Windows into ZetaWatch): a file's earlier versions in snapshots, with Open, Copy To and Restore. Open it from Finder → Services → "ZFS Versions…" or with zetawatch://versions?path=.
- ZFS Deleted Items: lists files deleted from a folder that still exist in its snapshots, and can restore them. Open it from Finder → Services → "ZFS Deleted Items…".
- New libzfs function zfs_get_obj_version().
- fcntl(F_PUNCHHOLE), _PC_MIN_HOLE_SIZE and renamex_np(RENAME_SWAP) are now implemented.
- symbolicate_panic_macos.py has a --live mode and reads the compact-stackshot paniclog format.
Fixes (macOS)
- Data corruption: writev() across a record boundary (Akhil).
- Kernel panic when com.apple.owneruid/ownergid is out of range on mounts with ownership ignored (#138).
- Stale negative name-cache entries (#113).
- Unmount hang: vnops no longer hold the teardown lock across ERESTART retries.
- Rollback now unmounts and remounts descendant filesystems.
- snapdir=disabled is now enforced.
- Use-after-free in mkdir/symlink.
- ldi_strategy/ldi_close race and NULL vd_lh in vdev_disk.
- zvol: wrong status and byte counts on async I/O, and stale open flags.
- ARM64 AES decrypt was calling the encrypt routine.
- zfs_uio_page_aligned() read past the end of the iovecs.
- /etc/exports was created with mode 0600.
- _tunable_zfetch sysctl was not registered.
- ZetaWatch: the helper no longer asks for a password at every login.
Build and packaging
- Builds with Xcode 27 and the macOS 27 SDK (blake3 asm, pipe2).
- The kext is built arm64e-only.
- zpool no longer has the app-sandbox entitlement.
- Clean builds on Linux and FreeBSD, plus SPDX tags (fro0 work).
- Test-suite fixes for macOS.
Upstream OpenZFS (about 350 commits), mainly:
- Block-cloning fixes: self-deadlock and double free.
- ARC: a race between arc_release() and arc_read_done(), and a use-after-free in dnode_rele.
- DDT pruning fixes.
- A raidz expansion startup race.
- Imports now work with corrupted spare or l2arc configs
- New commands and options: zpool status -vv error ranges, zpool initialize -z, zstream raw, zhack MOS leak tools.
- Performance: lockless spa_config_lock reads and less dp_lock/dd_lock use.