[ENBD] /proc/nbdinfo

Peter T. Breuer ptb at it.uc3m.es
Wed Jan 7 01:48:02 MST 2004


"Also sprach Julien Rennard:"
> when enbd-client runs it opens a device [a], [b],... then I stop it
> using the method given in the man page (kill -USR1; kill -TERM;) the
> client stops, the kernel module is no more used, but /proc/nbdinfo still
> show that device [a],... are open is it normal ? 

Yes - I think so. The structures are still allocated internally.
The status line show show that it's not being used. It's still
there, and waiting for connections to be reestablished.

> The only way I found to "close" them is to unload/reload the kernel
> module. Is there an other way ?(echo 1/0 > /proc/nbdinfo don't work)
> thanks 

The question is why you should want to. The reason that springs to mind
is that you want to now reuse the same device for a different dataset.

Is that it? (I think there is a "reset" command or something like it -
I'll look it up).

Peter


More information about the ENBD mailing list