From: Ned Bass Date: Tue, 9 Nov 2010 22:20:01 +0000 (-0800) Subject: Remove inconsistent use of EOPNOTSUPP X-Git-Tag: zfs-0.7.12~2787 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b04cffc9b03db08148f19bfbc92a53e5dc7b30d5;p=mirror_zfs.git Remove inconsistent use of EOPNOTSUPP Commit 3ee56c292bbcd7e6b26e3c2ad8f0e50eee236bcc changed an ENOTSUP return value in one location to ENOTSUPP to fix user programs seeing an invalid ioctl() error code. However, use of ENOTSUP is widespread in the zfs module. Instead of changing all of those uses, we fixed the ENOTSUP definition in the SPL to be consistent with user space. The changed return value in the above commit is therefore no longer needed, so this commit reverses it to maintain consistency. Signed-off-by: Brian Behlendorf --- diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c index 2856ba7c4..45e118e53 100644 --- a/module/zfs/zfs_ioctl.c +++ b/module/zfs/zfs_ioctl.c @@ -3291,7 +3291,7 @@ out: dsl_dataset_rele(ds, FTAG); return (error); #else - return (EOPNOTSUPP); + return (ENOTSUP); #endif /* HAVE_ZPL */ }