]> git.proxmox.com Git - mirror_spl-debian.git/commit
Give ENOTSUP a valid user space error value
authorNed Bass <bass6@llnl.gov>
Tue, 9 Nov 2010 22:06:13 +0000 (14:06 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 10 Nov 2010 21:25:49 +0000 (13:25 -0800)
commit00ba7ef9002a7dc7919260240f58fd8f31cea24f
treeba78093df927f9f0180c6f0cc61729a495c9a150
parent8655ce492fff8ebcc432cd841411634510ca09ac
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>
include/sys/sysmacros.h