]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: skip '/dev/' prefix on disconnect
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)
commit61e5c0b660e09bc1a98c90d1f42df00f30b16cd6
treed7a1a5b1af7dccef3f36adeb600dff97970a3f30
parente749eaf3b0a05e5c348a8383b96f1dafe2dac448
fabrics: skip '/dev/' prefix on disconnect

When calling 'nvme disconnect -d' 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 disconnect.

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