[ENBD] How do I *stop* serving a floppy?

Peter Billson enbd@lists.community.tummy.com
Tue, 20 May 2003 23:56:17 -0400


Hello *,
  I have had good success with using ENBD with /dev/fd0 (many thanks to the developers!) but I have hit a snag when it comes to *not* using the floppy! :-)

On the server I run:
  enbd-server 9000 /dev/fd0 with or without a floppy in the drive and all is well.

On the client I run:
  enbd-client SERVER:9000 /dev/nda

The floppy drive light comes on, but it stays on (drive motor stays running).

I can mount /dev/nda as I should, write to it, read from it and umount it no problem. The data is actually written to disk.

Then I can't seem to get the ENBD server to give up. I have tried, on the client, "kill -USR1 CLIENTPID; kill -TERM CLIENTPID"  The clients will die but the server keeps the drive in use (running, light on).

I have to kill the master server process and the slave that is serving the floppy to get it to stop using the floppy. Just killing the slave causes it to restart a new slave and keep on truckin'

I'm running  2.4.19 kernel (under Debian) using ENBD 2.4.30

Help?

Pete