]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
systemd: fix echo call with absolute path
authorSagi Grimberg <sagi@grimberg.me>
Thu, 22 Aug 2019 22:09:37 +0000 (15:09 -0700)
committerKeith Busch <keith.busch@intel.com>
Fri, 23 Aug 2019 15:40:12 +0000 (09:40 -0600)
commit0451499b82813b6aefa30519bdd26459a6dd7c58
treecfa6d038bf112206e34a73a5c537907b06ad46f8
parent177d12ec112ab370d91b7129a33d2da43b809203
systemd: fix echo call with absolute path

Without placing the absolute path when formatting the
nvme connect-all args we can get the following error:
--
connect-all: unrecognized option '-e'
Discover NVMeoF subsystems and connect to them  [  --transport=<LIST>, -t <LIST> ]    --- transport type
  [  --traddr=<LIST>, -a <LIST> ]       --- transport address
  [  --trsvcid=<LIST>, -s <LIST> ]      --- transport service id (e.g. IP
                                            port)
  [  --host-traddr=<LIST>, -w <LIST> ]  --- host traddr (e.g. FC WWN's)
  [  --hostnqn=<LIST>, -q <LIST> ]      --- user-defined hostnqn (if default
                                            not used)
  [  --hostid=<LIST>, -I <LIST> ]       --- user-defined hostid (if default
                                            not used)
  [  --raw=<LIST>, -r <LIST> ]          --- raw output file
  [  --device=<LIST>, -d <LIST> ]       --- use existing discovery controller
                                            device
  [  --keep-alive-tmo=<LIST>, -k <LIST> ] --- keep alive timeout period in
                                            seconds
  [  --reconnect-delay=<LIST>, -c <LIST> ] --- reconnect timeout period in
                                            seconds
  [  --ctrl-loss-tmo=<LIST>, -l <LIST> ] --- controller loss timeout period in
                                            seconds
  [  --hdr_digest, -g ]                 --- enable transport protocol header
                                            digest (TCP transport)
  [  --data_digest, -G ]                --- enable transport protocol data
                                            digest (TCP transport)
  [  --nr-io-queues=<LIST>, -i <LIST> ] --- number of io queues to use
                                            (default is core count)
  [  --nr-write-queues=<LIST>, -W <LIST> ] --- number of write queues to use
                                            (default 0)
  [  --nr-poll-queues=<LIST>, -P <LIST> ] --- number of poll queues to use
                                            (default 0)
  [  --queue-size=<LIST>, -Q <LIST> ]   --- number of io queue elements to
                                            use (default 128)
  [  --persistent, -p ]                 --- persistent discovery connection
  [  --quiet, -Q ]                      --- suppress already connected errors
Usage: nvme connect-all <device> [OPTIONS]
Options:
: nvmf-connect@--device\x3dnvme0\t--transport\x3dtcp\t--traddr\x3d192.168.123.1\t--trsvcid\x3d8009\t--host-traddr\x3dnone.service: Main process exited, code=exited, status=70/n/a
: nvmf-connect@--device\x3dnvme0\t--transport\x3dtcp\t--traddr\x3d192.168.123.1\t--trsvcid\x3d8009\t--host-traddr\x3dnone.service: Failed with result 'exit-code'.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
nvmf-autoconnect/systemd/nvmf-connect@.service