Never map copy-chunk(len=0) requests to BTRFS_IOC_CLONE_RANGE ioctls. A BTRFS_IOC_CLONE_RANGE with @src_length=0 results in a clone of all data from @src_offset->EOF!
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10424
3be6649 vfs_btrfs: pass-through copy-chunk(len=0) requests
source3/modules/vfs_btrfs.c | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
Upstream: gitweb.samba.org