File 0005-fabrics-Honor-config-file-for-connect-all.patch of Package nvme-cli.27116
From: Daniel Wagner <dwagner@suse.de>
Date: Thu, 19 May 2022 14:14:47 +0200
Subject: fabrics: Honor config file for connect-all
Git-commit: e777ceb8875720ae42ea97d9f8a43c6913ec80c0
References: bsc#1199504
The command line option -J config.json allows to provide a
configuration via a JSON file. We handle this correctly for the
'connect' case but fail to apply the configuration for 'connect-all'
because we missed to add nvme_read_config() in this path.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
fabrics.c | 1 +
1 file changed, 1 insertion(+)
--- a/fabrics.c
+++ b/fabrics.c
@@ -659,6 +659,7 @@ int nvmf_discover(const char *desc, int
nvme_free_tree(r);
return ret;
}
+ nvme_read_config(r, config_file);
if (!hostnqn)
hostnqn = hnqn = nvmf_hostnqn_from_file();