]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: skip '/dev/' prefix for persistent discovery controllers
authorHannes Reinecke <hare@suse.de>
Thu, 12 Aug 2021 08:19:53 +0000 (10:19 +0200)
committerKeith Busch <kbusch@kernel.org>
Thu, 12 Aug 2021 15:47:09 +0000 (09:47 -0600)
commit6324f8df43906298ac93fb90a19d6ec25c508471
treeca76e24364e52fea3e957be11f212a29cc68e030
parent61e5c0b660e09bc1a98c90d1f42df00f30b16cd6
fabrics: skip '/dev/' prefix for persistent discovery controllers

When calling 'nvme discover --device' one has to remember to strip the
'/dev/' prefix from the nvme controller device name, which is
quite cumbersome and pointless, as we might as well do it internally.
So be a bit more lenient and accept full device node names on discover.

Signed-off-by: Hannes Reinecke <hare@suse.de>
fabrics.c