vfs_btrfs: pass-through copy-chunk(len=0) requests
commitb5253bf2dc1c9729551f8b4adc5fe77dcc922bb0
authorDavid Disseldorp <ddiss@samba.org>
Thu, 6 Feb 2014 19:12:22 +0000 (6 20:12 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 14 Feb 2014 19:10:08 +0000 (14 20:10 +0100)
treea91b3129c91b2580660ab77b6798bbd94d17200a
parent1271434175a3858abbb3aed88d0bd3ee2eb302a7
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>
(cherry picked from commit 3be664969d4de41ebb4778caabce8bcf5e303064)
source3/modules/vfs_btrfs.c