]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Remove inconsistent use of EOPNOTSUPP
authorNed Bass <bass6@llnl.gov>
Tue, 9 Nov 2010 22:20:01 +0000 (14:20 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 10 Nov 2010 21:26:56 +0000 (13:26 -0800)
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 <behlendorf1@llnl.gov>
module/zfs/zfs_ioctl.c

index 2856ba7c427cd9949f4da42d699ccbf44b8ff64d..45e118e537396fc05ea0433ca148bfd4ea50adc0 100644 (file)
@@ -3291,7 +3291,7 @@ out:
                dsl_dataset_rele(ds, FTAG);
        return (error);
 #else
-       return (EOPNOTSUPP);
+       return (ENOTSUP);
 #endif /* HAVE_ZPL */
 }