[Bug 10170] rsync should support reflink similar to cp --reflink
samba-bugs at samba.org
samba-bugs at samba.org
Tue Jan 6 13:32:31 MST 2015
https://bugzilla.samba.org/show_bug.cgi?id=10170
David Taylor <davidt-samba-bugzilla at yadt.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |davidt-samba-bugzilla at yadt.
| |co.uk
--- Comment #2 from David Taylor <davidt-samba-bugzilla at yadt.co.uk> ---
Created attachment 10585
--> https://bugzilla.samba.org/attachment.cgi?id=10585&action=edit
prototype patch for --reflink support
I have written a rough draft of a patch to enable support for (Btrfs) reflinks
in rsync. It is very lightly tested.
Only Btrfs is supported (using BTRFS_IOC_CLONE), and this is intended to
provide a better alternative to --inplace for updating a backup which will be
snapshotted repeatedly. It avoids the problems of --inplace with
partial updates and stale hardlinks.
It adds two new options:
--reflink
When updating an existing file, rather than creating an entirely new temporary
file, rsync will create a 'reflink' copy of the original file and update it in
place. When creating a backup copy of a file, rsync will also create a
'reflink' copy rather than rewriting the file. If a 'reflink' copy cannot be
performed it will fall back to the normal, non-reflink behaviour.
--reflink-always behaves like --reflink, but disables the fallback if a reflink
fails.
--
You are receiving this mail because:
You are the QA Contact for the bug.
More information about the rsync
mailing list