diff options
author | Ned Bass <[email protected]> | 2010-11-09 14:06:13 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-11-10 13:25:49 -0800 |
commit | 00ba7ef9002a7dc7919260240f58fd8f31cea24f (patch) | |
tree | ba78093df927f9f0180c6f0cc61729a495c9a150 /module/spl/spl-condvar.c | |
parent | 8655ce492fff8ebcc432cd841411634510ca09ac (diff) |
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 <[email protected]>
Diffstat (limited to 'module/spl/spl-condvar.c')
0 files changed, 0 insertions, 0 deletions