From ArchWiki
Jump to navigation Jump to search

TODO: Mentioning cp --reflink

As upstream has been removed the EXPERMINTAL tag of the reflink feature for one years and make it as the default with newerly formatted filesystems, it would be good if we can mention xfs is capable of reflink copy operation on the wiki. The content should be very similar to Btrfs' ones. Just leave some notes here for reference:

  • We should demonstrate an example use case (like snapshoting an systemd-nspawn container) with either cp(1) or rsync(1), or simply leave a reference to btrfs' wiki section.
  • We should target the significant technical difference of reflink between btrfs. Notably, unlike btrfs, xfs' reflink is for file data only, hence the copy operation will be much slower and take a slightly larger space than under btrfs. (For a draft explaination of xfs' reflink feature, see this. For an in-depth technical comparision between btrfs on this feature by led xfs developer dgc, see this.)
  • Mentioning that reflink will be unavailable when formatted using mkfs.xfs -m crc=0.

-- by Jlhs (talk) 23:25, 1 October 2019 (UTC)

I think it's a good idea. Just one thing, AFAIK rsync doesn't support reflink, see . -- nl6720 (talk) 14:53, 2 October 2019 (UTC)