Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca6842bf authored by Tsutomu Itoh's avatar Tsutomu Itoh Committed by David Sterba
Browse files

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: default avatarTsutomu Itoh <t-itoh@jp.fujitsu.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent bb166d72
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 = -EOPNOTSUPP;
		goto out;
	}