nbd icon indicating copy to clipboard operation
nbd copied to clipboard

<Ctrl-C> of `nbd lo` does not destroy the NBD device

Open Merovius opened this issue 5 years ago • 3 comments

When connecting with lo and killing the process (via SIGINT or SIGTERM) it doesn't clean up the nbd-node, even though it could.

Merovius avatar Dec 02 '18 07:12 Merovius

Should the device in /dev be removed?

prologic avatar May 03 '19 06:05 prologic

In general, no. The nbd driver has a fixed number of devices and pre-allocates the nodes in /dev. In general, they shouldn't be touched. When I say "destroy the device", I really mean "disconnect" - free up the used device number.

Merovius avatar May 03 '19 07:05 Merovius

I see thanks for the explanation. I'll see if I can hack a PR for this.

prologic avatar May 03 '19 08:05 prologic