[PATCH] UBI: block: Use ENOSYS as return value when CONFIG_UBIBLOCK=n
Artem Bityutskiy
dedekind1 at gmail.com
Tue Mar 4 06:49:51 EST 2014
On Tue, 2014-03-04 at 07:57 -0300, Ezequiel Garcia wrote:
> In order to have a way of distinguishing an invalid ioctl from a
> not supported (but otherwise valid) ioctl, this commit changes the
> return value of the ioctl stubs from ENOTTY to ENOSYS.
Sounds logical, no objections, except it is curious if this is something
you invented or this is a general rule in the Linux kernel? If it is,
may be you can point to some discussions, or give some example or other
source of this knowledge? I just want to be educated a bit. Thanks!
--
Best Regards,
Artem Bityutskiy
More information about the linux-mtd
mailing list