[ENBD] Re: [removable media support approved] !!!

P.T. Breuer ptb at it.uc3m.es
Tue Feb 24 09:52:22 MST 2004


In article <1077626829.7853.32.camel at pc19> you wrote:
> On Mon, 2004-02-23 at 14:21, P.T. Breuer wrote:
> Hi some more good news
> > > Cdrom drives work well too ! as I mount it as iso9660 fs type it's quick
> > > even at mounting. And it still possible to open the drive when it is
> > > mounted that is what I needed even if it's not conventional.
> > 
> > I'm not quite sure what you mean :)! But I'm happy you're happy.
> I mean that it is possible to "physically" open the CDROM drive and remove the
> cdrom when it is browsed. But it is not a problem : if you remove it, every 

Oh, yes. That will be a consequence of the "-m" switch on the server
end, no?

I don't know of a good generic way to recognize a removable media.

> OPEN action will take you back to the mount point : no freeze no oops...
> very good !
>  
> > > I am on my way to USB storage drive but it's going to be harder because
> > > I don't now if/how it "creates" /dev/usb??? when plugging unplugging
> > > this kind of things. 
> > 
> > Make a permanent device inode somewhere else, with the right major and
> > minor. Sounds like "usb[dev]fs/devfs" is active.
> 
> No need ! It's incredible.
> With the -m option it is possible to run the enbd-server on a
> "non-existing" device (here /dev/sda1 that is created only when the usb

Uh, yes, I think that might be true. Of course, you would be very well
advised to give size and blocksize infomation to the server! (-s and
-b).

> drive is plugged in). You can also run the client and mount the
> corresponding enbd_device when the server still "export" nothing ! If
> you put the usb drive in it works like magic ! (I think you're a magic
> programmer !!!)
> 
> That's all I have to do with enbd in terms of functionality :-( 
> But a last question : how do I stop messages appearing on every tty ?

Uh, they're sent to syslog. What your syslog does with them is up to
it!

Or you could comment out from the code the messages you don't like.
Tell me what they are and I'll see what I can do.


> Be sure I'll tell you if I find something going wrong !

Oh, please don't! I would really like the code to be fixed first and
THEN I can be told quite safely :).

> Now I have to make documentation in french about how using enbd and
> supermount to grant transparent access to removable media on LTSP thin
> client. I'll mail you it a soon it's finished (I hate documentation so
> it allays takes me a lot of time...).
> 
> One of us may also contact the LTSP project team about this ?

Quite possibly. I don't really know anything about LTSP. Or TSs, to
be accurate!

> In my opinion you can start making (a lot of)"publicity" about removable
> media support on your web page !

I'm sure I saw at least one bug left, but you may not notice it. I
thught either of the server or client tended to die if left alone for a
long time and then suddenly accessed. They restart immediately, of
course, but still ... and it seems that there really can be quite a
long time in which one kernel or the other - don't know which - still
keeps returning errors even when the floppy has been put back in the
slot again. Maybe 30s.

Peter


More information about the ENBD mailing list