GNOME Bugzilla – Bug 659480
Use reflink for copy for local files
Last modified: 2012-08-17 05:53:30 UTC
reflink is an operation similat to hardlink but sharing the data blocks instead of inode. In effect it creates an COW copy instead of copying the file byte-by-byte. Currently the OCFS2 and BTRFS filesystem supports it but I believe that it is sufficient for most users when they issue copy operation in file manager.
Any downsides to this ? Any pointers to documentation about this operation ?
(In reply to comment #1) > Any downsides to this ? The similar downsize as any deduplication technique - if user wants to have 2 copies in case 1 become corrupted (in this case - corrupted on hdd, not above vfs level). > Any pointers to documentation about this operation ? There is surprisingly small amount of information about this. For example GNU Coreutils cp can use reflink if specified as CLI parameter. After inspection of source code (http://repo.or.cz/w/coreutils.git/blob/HEAD:/src/copy.c#l239) it seems it simply tries to perform (btrfs-specific?) ioctl on Linux and mark as not supported otherwise.
*** This bug has been marked as a duplicate of bug 626497 ***