[Gluster-devel] [fuse-devel] RFC: adding support for copy_file_range()

Niels de Vos ndevos at redhat.com
Tue Jul 31 12:31:21 UTC 2018


On Tue, Jul 31, 2018 at 01:55:43PM +0200, Stef Bon wrote:
> Hi,
> 
> as I can see, this method is usefull to copy bytes from the original
> location to the backup version.
> I can see different cases (not limited to these):
> 
> - copy a full file
> - copy only those bytes where the original file and the backup version differ.
> 
> Do you agree, or - beter - do have some more usecases?

Yes, these are applications of the copy_file_range() syscall. On
advanced filesystems the data blocks may be setup as copy-on-write. This
could make cloning files, or creating snapshots very efficient.

Niels


More information about the Gluster-devel mailing list