linux-nvme / nvme-cli

NVMe management command line interface.
https://nvmexpress.org
GNU General Public License v2.0
1.41k stars 637 forks source link

Use libnvme helper to retrieve hostnqn/hostid #2394

Closed igaw closed 3 days ago

igaw commented 1 week ago

There are several places to lookup the default hostnqn/hostid. Add a helper which implements a canonical way to do this.

Fixes: #https://github.com/linux-nvme/nvme-cli/issues/1956 Depends: https://github.com/linux-nvme/libnvme/pull/857

igaw commented 1 week ago

Well, there is some more to fix with the config.json connect all code path when there is only the config.json file around.