]> www.infradead.org Git - users/sagi/libnvme.git/commit
fabrics: Consider config from file when adding new controller
authorDaniel Wagner <dwagner@suse.de>
Thu, 19 May 2022 08:49:40 +0000 (10:49 +0200)
committerDaniel Wagner <dwagner@suse.de>
Thu, 19 May 2022 09:06:59 +0000 (11:06 +0200)
commit2e5d70c848e714642bff7af11cb772fa3b819d13
treed66e8e8564d130f04a28a6e15a6f7939d00b3075
parentc6611bb0962424f1cfbc528c2264bbbb5a0a661e
fabrics: Consider config from file when adding new controller

nvme_read_config() function is attaching the configuration
to tree. But when we create a new controller via nvme_create_ctrl()
and then call nvmf_add_ctrl() we ignore this previously read
in configuration.

Hence lookup if there exist a controller/config and merge into
the fabrics config.

Note, the order of the merge is important. For example we want
the config from the command line to have higher priority
than the one from the config file.

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