Skip to main content
4 events
when toggle format what by license comment
Jul 4 at 16:40 comment added Kai Petzke On linux, you need to use cp --reflink to create a logical copy-on-write copy instead of a physical copy. See my long comment to the other answer on which further steps may be necessary to enable cp --reflink for your particular ZFS. You should have at least ZFS version 2.2.2. Check with zfs --version.
Jan 22, 2020 at 16:49 comment added mmusante If you're using Solaris, then cp -z will create a new name for the same blocks of data. It differs from ln in that writing to one file will use copy-on-write to allow the two files to diverge, whereas with ln there is only ever one file. Note that -z is restricted to directories in the same ZFS pool. I don't know about how linux behaves, sorry
Jan 22, 2020 at 13:45 comment added HubertNNN Do I need to use any special parameters or simple cp <source> <target> is fine? dhag mentioned that I need to use cp --reflink and Andrew Henle suggested using cp -z
Jan 21, 2020 at 2:47 history answered mmusante CC BY-SA 4.0