]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: fix connect error if hostid file does not exist
authorMartin George <marting@netapp.com>
Sat, 16 Dec 2023 19:31:50 +0000 (01:01 +0530)
committerDaniel Wagner <wagi@monom.org>
Tue, 19 Dec 2023 09:05:41 +0000 (10:05 +0100)
commit8c78e15582ff1a47ba8f4c1953a374cb7555203e
treef3003cfff19b25f278d9c91a44137695e66efe63
parent0b8d1e03049c5092d705bcd3ce369f02a9472f95
fabrics: fix connect error if hostid file does not exist

Currently one sees a connect error during a nvme discover/connect
if the hostnqn file exists, but not the hostid file. Fix this
by ensuring the hostid is taken from the corresponding hostnqn for
such scenarios.

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