[ENBD] /proc/nbdinfo

Julien Rennard jrennard at cri74.org
Wed Jan 7 02:06:33 MST 2004


On Wed, 2004-01-07 at 09:48, Peter T. Breuer wrote:
> "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.
Ok
> > 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.
Exactly, I want to use it for a different thinclient floppy/CDrom drive 
for exemple...And I have made a script that use this file to "see" which 
nbd device is usable. 
> Is that it? (I think there is a "reset" command or something like it -
> I'll look it up).
Thanks
> Peter
> _______________________________________________
> ENBD mailing list
> ENBD at lists.community.tummy.com
> http://lists.community.tummy.com/mailman/listinfo/enbd
> 



More information about the ENBD mailing list