]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fabrics: print out valid arguments when reading from /dev/nvme-fabrics
authorHannes Reinecke <hare@suse.de>
Tue, 7 Dec 2021 13:55:49 +0000 (14:55 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 23 Dec 2021 10:22:45 +0000 (11:22 +0100)
commitbdfb5d364977dc17fd6b7572bf1d0af33d2ab01b
tree35fa503aaf13484dc581ee2364cc8769d399fd79
parent286bd70702c2718ee62a45807f07c3c963f0403b
nvme-fabrics: print out valid arguments when reading from /dev/nvme-fabrics

Currently applications have a hard time figuring out which
nvme-over-fabrics arguments are supported for any given kernel;
the ioctl will return an error code on failure, and the application
has to guess whether this was due to an invalid argument or due
to a connection or controller error.
With this patch applications can read a list of supported
arguments by simply reading from /dev/nvme-fabrics, allowing
them to validate the connection string.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c