]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugin: Return EINVAL instead of ENOTTY
authorMinwoo Im <minwoo.im@samsung.com>
Thu, 11 Apr 2019 12:51:19 +0000 (21:51 +0900)
committerMinwoo Im <minwoo.im@samsung.com>
Thu, 11 Apr 2019 12:59:48 +0000 (13:59 +0100)
commit048cd68c8f32c42b7098e1d21c06966f7fc6f099
treece38c2675f57deac3d7367855dcb372b50f1e347
parent2853f90c715ea8f47e9243b6cbd1cd5941049e4b
plugin: Return EINVAL instead of ENOTTY

When a given string for a subcommand is not valid, we can return EINVAL which
means invalid arguments.  ENOTTY is used to indicate that an invalid IOCTL
number was specified.

Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
nvme.c
plugin.c