From: Roy Shterman Date: Wed, 24 Aug 2016 06:53:06 +0000 (+0300) Subject: nvme-cli/fabrics: Added hostnqn parameter to connect command X-Git-Tag: v0.9~8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8a962e50b490f00f5ac38e3af3eb4a7d3ac1b700;p=users%2Fsagi%2Fnvme-cli.git nvme-cli/fabrics: Added hostnqn parameter to connect command Added user-defined 'hostnqn' to 'connect' command so users could use the allowed_hosts attribute on the target and still connect to target with nvme-cli tool. usage examples: nvme connect -t -a
-s -n -q Signed-off-by: Roy Shterman --- diff --git a/fabrics.c b/fabrics.c index 26c4e221..942e987b 100644 --- a/fabrics.c +++ b/fabrics.c @@ -711,6 +711,8 @@ int connect(const char *desc, int argc, char **argv) "transport address" }, {"trsvcid", 's', "LIST", CFG_STRING, &cfg.trsvcid, required_argument, "transport service id (e.g. IP port)" }, + {"hostnqn", 'q', "LIST", CFG_STRING, &cfg.hostnqn, required_argument, + "user-defined hostnqn" }, {0}, };