vfs_btrfs: pass-through copy-chunk(len=0) requests
commit3be664969d4de41ebb4778caabce8bcf5e303064
authorDavid Disseldorp <ddiss@samba.org>
Thu, 6 Feb 2014 19:12:22 +0000 (6 20:12 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 7 Feb 2014 00:15:29 +0000 (6 16:15 -0800)
tree5408a87eb4e4dff47c45883bb930d79b2fcb09b7
parent00906f9604ad3e633e3d3cbc8d9dc4e2e305a455
vfs_btrfs: pass-through copy-chunk(len=0) requests

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

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_btrfs.c