]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-cli: ignore arguments that pass in "none"
authorJames Smart <jsmart2021@gmail.com>
Thu, 1 Aug 2019 23:13:39 +0000 (16:13 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 2 Aug 2019 15:37:47 +0000 (09:37 -0600)
commit8efd8bc0d6e365a1965c2bf77dae72dc0d047735
tree8ecf2a35058bb5f2600afa5ea276fa4b4bff31df
parentdcab3a8a055f16342f71cb4c02ad8a8bdbf872fb
nvme-cli: ignore arguments that pass in "none"

As we want to support discovery uevents over different
transports, we want to allow the kernel to provide missing
information in the form of none and have nvme-cli properly
ignore it.

One example is the host_traddr. If it is not set (which means
that the default route determined the host address) we will
want to do the same for newly discovered controllers.

So allow users to pass 'none' arguments as well.

Example:
  nvme connect-all ... --hostnqn=none --hostid=none --host_traddr=none

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
fabrics.c