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>
d = cfg.device;
while ((p = strsep(&d, ",")) != NULL) {
+ if (!strncmp(p, "/dev/", 5))
+ p += 5;
c = nvme_scan_ctrl(r, p);
if (!c) {
nvme_msg(LOG_ERR,