vfs_btrfs: pass-through copy-chunk(len=0) requests

Enterprise / Samba - David Disseldorp [samba.org] - 6 February 2014 18:15 UTC

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


  • Share