ioctl: add note regarding CLONE_RANGE(len=0) behaviour
authorDavid Disseldorp <ddiss@suse.de>
Thu, 6 Feb 2014 14:29:18 +0000 (15:29 +0100)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 13:23:10 +0000 (06:23 -0700)
commit1484081f6113cd33ad538a4a50f332754dbcc873
tree62d47e56dee80d985ef6fd0f9237f6194577e882
parentafb47079fa1e57c63c0ae0cfcb90817f3abf6830
ioctl: add note regarding CLONE_RANGE(len=0) behaviour

A BTRFS_IOC_CLONE_RANGE request with a src_length value of zero has the
effect of cloning all data from src_offset through to end-of-file.

Document this behaviour in the header file for those who (like me)
incorrectly assume that no data is cloned in such a case.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
ioctl.h