Never fall back to /dev/nbd0 in vitastor-nbd unmap and revive #120

Merged
vitalif merged 1 commits from koolkhel/vitastor:nbd-unmap-dev-num into master 2026-11-22 15:12:03 +03:00

1 Commits

Author SHA1 Message Date
7ecbab8977 Never fall back to /dev/nbd0 in vitastor-nbd unmap and revive
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.
2026-11-21 10:22:34 +03:00