koolkhel/vitastor:nbd-unmap-dev-num
master
netlink-unmap read the device with uint64_value(), so a missing or mistyped device argument (nbd3, /dev/nbd3x) disconnected /dev/nbd0 instead. Parse N and /dev/nbdN in one place and reject anything else in every command that takes a device.