https://github.com/torvalds/linux
Revision 3f9e3df8da3c51649c15db249978a10f7374236a authored by David Sterba on 15 April 2014, 16:50:17 UTC, committed by Chris Mason on 24 April 2014, 23:43:32 UTC
There's a case which clone does not handle and used to BUG_ON instead,
(testcase xfstests/btrfs/035), now returns EINVAL. This error code is
confusing to the ioctl caller, as it normally signifies errorneous
arguments.

Change it to ENOPNOTSUPP which allows a fall back to copy instead of
clone. This does not affect the common reflink operation.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
1 parent c5f7d0b
History
Tip revision: 3f9e3df8da3c51649c15db249978a10f7374236a authored by David Sterba on 15 April 2014, 16:50:17 UTC
btrfs: replace error code from btrfs_drop_extents
Tip revision: 3f9e3df
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.3 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 262.5 KB
Makefile -rw-r--r-- 48.3 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top