]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-cli: allow discover to address discovery controller by persistent name
authorJames Smart <jsmart2021@gmail.com>
Thu, 1 Aug 2019 23:13:41 +0000 (16:13 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 2 Aug 2019 15:42:54 +0000 (09:42 -0600)
commit986a9357e27dbbde4b5dbdbe8bb490130465d198
tree80e1a19ffa611ac1f10c0fff9c0c28e82feafc06
parent56b8e5cb5976938229a87141bed2d835b55143ef
nvme-cli: allow discover to address discovery controller by persistent name

To support discovery (connect/connect-all) to operate against a
persistent discovery controller, let the discovery controller to
be specified by its device node name rather than new connection
attributes.

Example:
  nvme connect-all ... --device=nvme5

Also centralize extraction of controller instance from the controller
name to a common helper.

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