]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: first read config before topology scanning
authorDaniel Wagner <dwagner@suse.de>
Thu, 11 Jul 2024 08:49:23 +0000 (10:49 +0200)
committerDaniel Wagner <wagi@monom.org>
Fri, 12 Jul 2024 08:24:32 +0000 (10:24 +0200)
commit89008c03a4b491d01b9dbcc9305020a514d6a5f7
treef683369ac412d4efd44ce8057d47e587bf8eb44a
parentfb91adb367090e5d1c9da2249f75c2eeaf513cdf
fabrics: first read config before topology scanning

The topology scanning will create nodes in the internal libnvme tree. As
we rely on the order of the nodes in the tree, we need to read the
config before we scan. This makes sure the first node is the one we have
defined in the config.json. This is important because the first node
provides default hosnqn configuration in absents of /etc/nvme/hostnqn.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
fabrics.c