Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    As far as I could tell, ZFS does not support copy-on-writes using cp ZFS on Solaris 11.4 does, via cp -z .... For Linux, XFS w/ kernel 4.8 or later and BTRFS do support reflinks. Commented Jan 22, 2020 at 11:07
  • cp --reflink source dest works for OpenZFS in Linux 6.6.32 (TrueNAS SCALE Dragonfish-24.04.2). It may work in earlier releases too. Commented Aug 13, 2024 at 5:55
  • 1
    To enable support for cp --reflink on Ubuntu 24.04 LTS and some other current linux distros, you may need to perform echo 1 | sudo tee /sys/module/zfs/parameters/zfs_bclone_enabled, first. To enable this feature across reboots, put options zfs zfs_bclone_enabled=1 into /etc/modprobe.d/zfs.conf. Further verify, that block-cloning is enabled on the particular ZFS pool, that you are using: zpool get feature@block_cloning. If not, use: zpool set feature@block_cloning=enabled POOL to activate it. Note, that block-cloning is still considered somewhat experimental. Commented Jul 4 at 16:38