aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>2016-01-21 19:13:25 -0500
committerDavid Sterba <dsterba@suse.com>2017-09-26 08:52:06 -0400
commitca6842bf01dc1ad41195eac1e343b4f08c496ba8 (patch)
tree14638ccec5d20787c569fb098d02c0dee1071e42
parentbb166d7207432d3c7d10c45dc052f12ba3a2121d (diff)
Btrfs: send: fix error number for unknown inode types
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>
-rw-r--r--fs/btrfs/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 8f1d3d6e7087..43430e6c99aa 100644
--- 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)
2640 } else { 2640 } else {
2641 btrfs_warn(sctx->send_root->fs_info, "unexpected inode type %o", 2641 btrfs_warn(sctx->send_root->fs_info, "unexpected inode type %o",
2642 (int)(mode & S_IFMT)); 2642 (int)(mode & S_IFMT));
2643 ret = -ENOTSUPP; 2643 ret = -EOPNOTSUPP;
2644 goto out; 2644 goto out;
2645 } 2645 }
2646 2646