From b04cffc9b03db08148f19bfbc92a53e5dc7b30d5 Mon Sep 17 00:00:00 2001 From: Ned Bass Date: Tue, 9 Nov 2010 14:20:01 -0800 Subject: [PATCH] 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 --- module/zfs/zfs_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ }