Sign in

← Software

feature@block_cloning (com.fudosecurity:block_cloning)

titlefeature@block_cloning (com.fudosecurity:block_cloning)
recommendationconsider
directionopenzfs-only
areafeature-flag
feature flagblock_cloning
openzfs version2.2.0
summary[READONLY_COMPAT] Block Reference Table (BRT): copy_file_range/FICLONE (cp --reflink) clone blocks instead of copying them, even across datasets in one pool. Enabled by default (zfs_bclone_enabled=1) since 2.3.0.
impactRead-only-compatible: once anything has been cloned on Linux/FreeBSD, the pool imports read-only on Solnix. Solnix users miss instant file copies, which Nix store, build-tree and VM-image workflows would benefit from.
whyLarge: BRT plus ZIL clone records plus a userland entry point. Not checked: whether illumos at the pin has a copy_file_range-style syscall to hang it on. Its endian fix (block_cloning_endian) should come with it.
effortlarge
sourceshttps://github.com/openzfs/zfs/blob/c913da86156eba3243cc1ef515e98d69887654a7/man/man7/zpool-features.7
https://github.com/openzfs/zfs/blob/c913da86156eba3243cc1ef515e98d69887654a7/module/zfs/zfs_vnops.c
https://github.com/openzfs/zfs/blob/c913da86156eba3243cc1ef515e98d69887654a7/module/zfs/brt.c
https://github.com/openzfs/zfs/blob/c913da86156eba3243cc1ef515e98d69887654a7/module/zcommon/zfeature_common.c
https://github.com/openzfs/zfs/commit/67a1b0379159c46bcd60a462a2790248046c8804

What Solnix has done

No decision yet: open for ranking.

Objections (0)

None.

Sign in to object to this item.