Show NBD devices above a numbering gap in vitastor-nbd ls #193

Closed
koolkhel wants to merge 1 commits from koolkhel/vitastor:nbd-ls-gap into master

1 Commits

Author SHA1 Message Date
a911d896d1 Show NBD devices above a numbering gap in vitastor-nbd ls
ls counted /sys/block/nbd0, nbd1, ... and stopped at the first missing
number. netlink-map can create a device above nbds_max, and a device
mapped with --nbd_destroy_on_disconnect disappears on unmap, so devices
after such a gap were never listed. Read the nbd entries of /sys/block
instead.
2026-11-26 04:26:35 +03:00