跳到正文

OpenZFS on OS X 版本记录

OpenZFS on macOS Project · 面向 macOS 的 ZFS 驱动程序和实用工具,用于管理 ZFS 存储,并支持在 Finder 中访问文件系统挂载。

Cask驱动与硬件 164
主页
安装命令
brew install --cask openzfs
近 30 天安装
200
App榜第 777
近一年安装
1,727
365 天累计
最新版本
2.4.1p2
下载大小
21MB
pkg
更新节奏
每月
近 30 天 1 个版本
  1. 2.4.4rc3

    最新预发布

    GitHub Release

    *** 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 unmount first and falls back to a forced unmount only when asked. It never uses umount -f, which bypassed DiskArbitration and could leave Spotlight (mds) holding files.
    • Stale per-file state on reused znodes fixed. z_suspended and z_document_id are now reset each time a znode is allocated, including for .zfs snapshot-directory entries.
    • 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 of IOMallocAligned(), 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.
  2. 2.4.3rc5

    预发布

    GitHub Release

    === zfs-macOS-2.4.3rc5 ===

    • Fix recv corruption with raw/encrypted sends. (boolean_t)
    • Release mount mutex (leak)

    === zfs-macOS-2.4.3rc4 ===

    Crashes and hangs

    • Fix an msync()/write() deadlock in pageout (zfs_vnop_pageoutv2). Pageout now releases its pages before waiting on the ZIL and copies the data inline, and a leaked transaction on a mapping failure is fixed.
    • Fix a deadlock in rw_tryupgrade by keeping the reader lock when the upgrade is declined (#106).
    • Fix an unmount hang: zfs_remove no longer holds the teardown lock across its ERESTART retry.
    • dnode_sync no longer trips a strict VERIFY when freeing a dnode. This is the candidate for the #108 panic and isn't confirmed to fix it.

    Correctness

    • Fix the XNU uio advance across iovecs in zfs_uioskip and zfs_uio_advance.
    • Fix a z_zfsvfs invalidation bug (two related commits, one in the znode cache constructor and one when freeing a ctldir znode).
    • Reset per-allocation znode state in zfs_znode_alloc().
    • Fall back to a non-barrier cache sync when barrier isn't supported.

    Features and compatibility

    • Honour fcntl(F_NOCACHE) as uncached I/O, and fix the O_DIRECT bit collision with FUNENCRYPTED.
    • Add zfs_uio_get_dio_pages_alloc() and disable zfs_dio_enabled on macOS.
    • Port ZFS_PERSIST_SEQ to macOS, report z_seq as va_filerev, and initialise and restore z_has_seq.
    • Take z_xattr_lock in the ResourceFork path of zpl_xattr_set().

    === zfs-macOS-2.4.3rc3 ===

    • scrub panic fix
    • xattr ENOENT fix
    • taskq dispatch fix

    === zfs-macOS-2.4.3rc2 ===

    ⏺ - Missing symbol zfs_mount_setattr

    === zfs-macOS-2.4.3rc1 REPACK ===

    ⏺ - ZetaWatch — fix incorrect library path

    No code changes, only ZetaWatch fixup

    === zfs-macOS-2.4.3rc1 ===

    ⏺ - ZetaWatch — menu-bar GUI pool monitor now built in-tree via --enable-zetawatch. ⏺ - L2ARC overhaul — smarter, fairer, parallel cache writes (DWPD rate limiting, per-device threads, persistent markers), plus a use-after-free fix. ⏺ - Unit test framework — new fast, standalone test harness (no pool needed), ported to macOS. ⏺ - zpool condense — new command to reclaim wasted metaslab space on demand. ⏺ - Thorough scrub — zpool scrub -t for a deeper verification pass. ⏺ - dRAID hardening — failure domains, rebuild/resilver/import fixes across several bugs. ⏺ - Send/recv hardening — stricter recv validation, safer key handling, new encrypted-send controls. ⏺ - Block cloning safety — cloning restricted across mismatched properties/encryption; a double-free fixed. ⏺ - Dedup — new dedupused/dedupsaved pool properties. ⏺ - macOS tunables — several Linux-only ARC/metaslab knobs now exposed on macOS, plus an import path-handling fix. ⏺ - Misc correctness fixes — RAIDZ parity bug, dedup-verify locking, snapshot-automount deadlock, MMP import races.

  3. 2.4.1p2

    OpenNavo 编辑 Homebrew 收录

    OpenZFS on OS X 2.4.1p2 面向在 Mac 上存放池的人,修正 Apple Silicon 的加密标签,以及发送和接收到普通文件。使用 2.4.1p1 的人应当升级。

    加密
    ghashv8 现在与通用 AES-GCM 标签一致。全部 316 条 Wycheproof 向量通过。fastest 现在可以在 Apple Silicon 上选择 ghashv8。写入内容不变。若在此之前设置了 ghashv8 或 cycle,升级前请先把那些数据拷出来。
    发送
    zfs send 和 zfs recv 配合普通文件再次可用。管道不受影响。复制发送进入慢速管道不再因校验和不匹配失败。zfs rollback -r 和在线 zfs receive 会重新挂载下层文件系统。
    稳定
    修正驱动器、磁盘映像或 Time Machine 离开时任务队列的恐慌。修正释放尚未挂上 vnode 的 znode 时的恐慌。修正访达线程生成 Document ID 时可能的恐慌。

    OpenZFS on OS X 2.4.1p2 面向在 Mac 上存放池的人,修正 Apple Silicon 的加密标签,以及发送和接收到普通文件。使用 2.4.1p1 的人应当升级。

  4. 2.4.1p1

    展开

    OpenNavo 编辑

    2.4.1p1 补丁修复 raw receive 引发的内核崩溃、pageoutv2 死锁和互斥锁泄漏。

    2.4.1p1 补丁修复 raw receive 引发的内核崩溃、pageoutv2 死锁和互斥锁泄漏。

    Source

  5. 2.4.1

    展开

    OpenNavo 编辑 Homebrew 收录

    修复存储竞态、Finder 内存访问、CPU 特性探测、macOS 12+ pageout 和线程优先级问题,恢复诊断工具并支持 zilstat。

    • 更新 dnode_sync,避免可能破坏范围树的竞态。
    • 修复 blake3 核心绑定问题,移除 ABD 中不必要的抢占禁用。
    • 修复 Finder 通知中的释放后使用问题。
    • 修正 SHANI、AVX512VL 和 SHA512 的 CPUID 特性探测。
    • 修正上游所称的“icp windback CFI”问题。
    • 恢复 zarcsummary、zarcstat,并新增 zilstat 支持。
    • 修复较新 macOS 12+ 系统的 pageout 问题(VIOLATION_ILLEGAL_SPRR_INDEX)。
    • 修复与“WindowServer not checked in”有关的线程优先级问题。

    https://github.com/openzfsonosx/openzfs-fork/releases/tag/zfs-macOS-2.4.1p1

  6. 2.4.1rc5

    展开

    GitHub Release

    === zfs-macOS-2.4.1rc5 ===

    • blake3 can't pin to core, fixed.
    • ABD disabled preemption, not needed
    • finder notify use after free

    === zfs-macOS-2.4.1rc4 ===

    • Same as rc3 minus one petard.

    === zfs-macOS-2.4.1rc3 ===

    Looks like rc3 is a dud, lets push out rc4.

    • Fix incorrect CPUID feature probe SHANI, AVX512VL and SHA512
    • Correct icp windback CFI
    • Bring back zarcsummary and zarcstat
    • zilstat support

    === zfs-macOS-2.4.1rc2 ===

    • Fix for pageout on newer macOS 12+. (VIOLATION_ILLEGAL_SPRR_INDEX)
    • Fix for thread priorities (WindowServer not checked in)

    Intel has new aes-gcm-avx2-vaes assembly, which I am unable to test due to hardware too old. If it causes trouble, use sysctl to switch to a better known version.

    === zfs-macOS-2.4.1rc1 ===

    Synced up with upstream for openzfs-2.4.1 -

    This is a very large list of commits: https://github.com/openzfsonosx/openzfs-fork/commits/zfs-macOS-2.4.1-release/?since=20251125

    So let's be cautious trying this, run it softly, think good thoughts, fly casually etc. It does come with a bunch new things, some look very interesting.

  7. 2.3.1p1

    展开

    OpenNavo 编辑

    向 zfs-macOS-2.3.1 回移修复:解决较新 macOS 上的 pageoutv2 内核崩溃;修正 SHANI、avl512vl 和 arm64 sha512 的 cpuid 位检查;修复 zdb、arcstat 和 arc_summary。avl512vl 按官方发布说明原样保留。

    更新
    详见本版说明。

    向 zfs-macOS-2.3.1 回移修复:解决较新 macOS 上的 pageoutv2 内核崩溃;修正 SHANI、avl512vl 和 arm64 sha512 的 cpuid 位检查;修复 zdb、arcstat 和 arc_summary。avl512vl 按官方发布说明原样保留。

    官方来源

  8. 2.3.1

    展开

    OpenNavo 编辑 Homebrew 收录

    本次版本修复两种导致 panic 的情况,为 AES-256-GCM 增加加速,并在 .pkg 安装包中加入卸载脚本。

    修复
    修复 vdev_disk.c 未初始化导致的 panic。防止 vdev_file 在卸载时触发 panic。
    加密
    添加 ghash-armx.S,以加速 aes-256-gcm。
    打包
    在 .pkg 安装包中加入 uninstall-openzfsonsosx.sh。

    OpenZFS on OS X 2.3.1 修复了两种 panic 问题:vdev_disk.c 未初始化,以及 vdev_file 在卸载时可能触发 panic。本次版本还添加 ghash-armx.S,用于加速 aes-256-gcm,并在 .pkg 安装包中加入 uninstall-openzfsonsosx.sh。

    官方发行说明

  9. 2.3.1rc1

    展开

    GitHub Release

    Starting release cycle for upstream zfs-2.3.1.

    rc1v3:

    • vdev_disk.c not initialised, causing "unknown error"
    • vdev_file would panic on unload.

    rc1v2:

    • Fix panic in vdev_disk.c

    rc1:

    But mostly testing ghash-armx.S for speedup of aes-256-gcm.

    New assembly means high chance of panic, keep that in mind, maybe use on test systems and play pools.

    That they have the OS name as "Tahoe.26" is very annoying.

  10. 2.3.0

    展开

    OpenNavo 编辑 Homebrew 收录

    新增 RAIDZ 池扩容、快速去重、Direct IO、常用命令的可选 JSON 输出,以及最长 1023 个字符的名称支持。发行说明还提及错误修复和代码库范围的性能改进。

    功能
    向现有 RAIDZ 池添加设备并扩容,无需停机。新增快速去重和 Direct IO。常用命令可选择输出 JSON。支持最长 1023 个字符的文件和目录名称。
    其他
    发行说明提及错误修复和代码库范围的性能改进。列出的 macOS 支持范围为 10.9(Mavericks)至 15.0(Sequoia)。

    OpenZFS on OS X 2.3.0 包含发行说明中记录的多项功能。RAIDZ Expansion 可向现有 RAIDZ 池添加设备并增加容量,无需停机。Fast Dedup 升级了原有去重功能;Direct IO 可在读写时绕过 ARC。说明还提到常用命令可选择输出 JSON,并支持最长 1023 个字符的文件和目录名称。

    发行说明还提及错误修复,以及代码库各处的大量性能改进,但未逐项说明修复内容。列出的 macOS 支持范围为 10.9(Mavericks)至 15.0(Sequoia)。

    来源:https://github.com/openzfsonosx/openzfs-fork/releases/tag/zfs-macOS-2.3.0

  11. 2.2.3

    展开

    GitHub Release

    Building releases takes a while, so this is a place holder to hold builds.

    Discussion:

    https://github.com/openzfsonosx/openzfs-fork/discussions/28

    Release Details here:

    Upstream release information: https://github.com/openzfs/zfs/releases/tag/zfs-2.2.3

    • CPUID order fix (Intel)
    • sprintf fix for Sequoia
    • Update tunables for their real names
    • clonefile fixes
    • cpu core < 2 hang fix

    Uplifting joke despite crushing bleakness:

    ChatGPT: "ZFS 2.2.3 for macOS: The perfect release for when everything's falling apart, but your data isn't."

    Gemini: "Sorry, I couldn't find anything like that."

    Bing: "Here’s a joke to lighten up the darkest of times: Why do we tell actors to “break a leg”? Because every play needs a cast! Life may throw some plot twists at us, but let's remember we are all part of a bigger, and often unexpectedly beautiful, performance. 🌟 Break a leg with your ZFS-macOS-2.2.3 release! 🚀"

    Grok: "Why do we tell actors to 'break a leg'? Because every time they do, they get to take a break from the relentless gloom of the world and bask in the applause of a grateful audience."

    Checksums:

    43dd51dba4b268ae86ca522797db3c6b OpenZFSonOsX-2.2.3-Sequoia-15-arm64.pkg
    c83c0b1ab84a2eb031314c323b36eb77 OpenZFSonOsX-2.2.3-Sequoia-15.pkg
    a784693b745c12727ebb1808ea782369 OpenZFSonOsX-2.2.3-Sonoma-14-arm64.pkg
    ed1b757587b2cb857d89ea34c94a4422 OpenZFSonOsX-2.2.3-Sonoma-14.pkg
    21f9977f33bf845cefcec6de51f7e4f2 OpenZFSonOsX-2.2.3-Ventura-13-arm64.pkg
    204604a0073047ea66b74fe5c0640934 OpenZFSonOsX-2.2.3-Ventura-13.pkg
    bb52405c7875ab6b0c71ad02c0086645 OpenZFSonOsX-2.2.3-Monterey-12-arm64.pkg
    ff7a2e5ab0c60fa66656ecbe684cd675 OpenZFSonOsX-2.2.3-Monterey-12.pkg
    618e9d437ee5c3abb6c22a2b34f503e1 OpenZFSonOsX-2.2.3-Big.Sur-11.pkg
    68314ae6a201610354e7446c1d19e619 OpenZFSonOsX-2.2.3-Catalina-10.15.pkg
    b60572bb5b4dc2c09f375077256e2401 OpenZFSonOsX-2.2.3-Mojave-10.14.pkg
    904f27d2fecdac95d5f01673330bbea8 OpenZFSonOsX-2.2.3-YOSEMITE-10.10.pkg
    e8874ad411570e9f32d1afdbfe84fb3b OpenZFSonOsX-2.2.3-EL.CAPITAN-10.11.pkg
    9de2938e265af2a507a6db109fbc343d OpenZFSonOsX-2.2.3-High.Sierra-10.13.pkg
    79cc2ddde73c91e719a50c8767b23120 OpenZFSonOsX-2.2.3-Sierra-10.12.pkg
    904f27d2fecdac95d5f01673330bbea8 OpenZFSonOsX-2.2.3-YOSEMITE-10.10.pkg
    a506b0ffd4218364bf2552f74d154e73 OpenZFSonOsX-2.2.3-MAVERICKS-10.9.pkg
    
  12. 2.2.0