From: Daniel Wagner Date: Thu, 19 May 2022 12:14:47 +0000 (+0200) Subject: fabrics: Honor config file for connect-all X-Git-Tag: v2.1-rc0~48^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e777ceb8875720ae42ea97d9f8a43c6913ec80c0;p=users%2Fsagi%2Fnvme-cli.git fabrics: Honor config file for connect-all 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 --- diff --git a/fabrics.c b/fabrics.c index b89de252..9f268791 100644 --- a/fabrics.c +++ b/fabrics.c @@ -666,6 +666,7 @@ int nvmf_discover(const char *desc, int argc, char **argv, bool connect) nvme_free_tree(r); return ret; } + nvme_read_config(r, config_file); if (!hostnqn) hostnqn = hnqn = nvmf_hostnqn_from_file();