]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: prevent 'nvme connect' to well-known discovery NQN
authorMartin George <marting@netapp.com>
Mon, 29 May 2023 07:40:33 +0000 (13:10 +0530)
committerDaniel Wagner <wagi@monom.org>
Thu, 1 Jun 2023 17:47:34 +0000 (19:47 +0200)
commit9077d042c04af1f845efbdad0351f87c45b12345
treef72bd8dde2f0dff35a74597ef9cba6846d1a6585
parentafee40b155d6fd337b94e6c29e7c37bc08656ab9
fabrics: prevent 'nvme connect' to well-known discovery NQN

Using 'nvme connect' to connect to the well-known discovery NQN
could result in a few problems with the current implementation:

1) It does not explicitly disconnect from the discovery subsystem
after usage, thereby leading to a spurious discovery controller
on the host.

2) Multiple 'nvme connect' invocations to the well-known discovery
NQN would result in duplicate discovery controllers on the host.

All this is already handled in 'nvme discover'. So it would be
better to avoid using 'nvme connect' to connect to the well-known
discovery NQN in the first place, and use 'nvme discover' instead
for the same.

Signed-off-by: Martin George <marting@netapp.com>
fabrics.c