Give ENOTSUP a valid user space error value
The ZFS module returns ENOTSUP for several error conditions where an operation is not (yet) supported. The SPL defined ENOTSUP in terms of ENOTSUPP, but that is an internal Linux kernel error code that should not be seen by user programs. As a result the zfs utilities print a confusing error message if an unsupported operation is attempted: internal error: Unknown error 524 Aborted This change defines ENOTSUP in terms of EOPNOTSUPP which is consistent with user space. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
8655ce492f
commit
00ba7ef900
@ -60,7 +60,7 @@
|
||||
#define UINT64_MIN ULLONG_MIN
|
||||
|
||||
#define NBBY 8
|
||||
#define ENOTSUP ENOTSUPP
|
||||
#define ENOTSUP EOPNOTSUPP
|
||||
|
||||
#define MAXMSGLEN 256
|
||||
#define MAXNAMELEN 256
|
||||
|
Loading…
Reference in New Issue
Block a user