]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: print an error for ENOENT too
authorMartin George <marting@netapp.com>
Wed, 17 Jul 2024 08:17:51 +0000 (13:47 +0530)
committerDaniel Wagner <wagi@monom.org>
Mon, 29 Jul 2024 08:35:59 +0000 (10:35 +0200)
commitf17afe1769269548b39b43735c3059b18aa6a228
tree231c3534b9ed4690b0b02217113043dbdf28559c
parentfa0296794e495ab3bc2cf258916c4da82038e417
fabrics: print an error for ENOENT too

Many nvme commands such as discover, connect, connect-all, etc.
simply return to the prompt without printing any useful error
message when the respective nvme driver modules are not loaded in
the kernel. This is because nothing gets printed when
nvme_scan_topology() returns an ENOENT due to missing nvme system
files stemming from not loading the appropriate nvme modules.
Fix the same.

Signed-off-by: Martin George <marting@netapp.com>
fabrics.c
nvme.c