projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb166d7
)
Btrfs: send: fix error number for unknown inode types
author
Tsutomu Itoh
<t-itoh@jp.fujitsu.com>
Fri, 22 Jan 2016 00:13:25 +0000
(09:13 +0900)
committer
David Sterba
<dsterba@suse.com>
Tue, 26 Sep 2017 12:52:06 +0000
(14:52 +0200)
ENOTSUPP should not be returned to the user program.
(cf. include/linux/errno.h)
Therefore, EOPNOTSUPP is used instead of ENOTSUPP.
Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/send.c
b/fs/btrfs/send.c
index 8f1d3d6e7087a94d0a88e89d62238f143dc32e75..43430e6c99aa1d52dafcf526ab0c46655f37f78d 100644
(file)
--- a/
fs/btrfs/send.c
+++ b/
fs/btrfs/send.c
@@
-2640,7
+2640,7
@@
static int send_create_inode(struct send_ctx *sctx, u64 ino)
} else {
btrfs_warn(sctx->send_root->fs_info, "unexpected inode type %o",
(int)(mode & S_IFMT));
- ret = -ENOTSUPP;
+ ret = -E
OP
NOTSUPP;
goto out;
}