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

Peter Billson enbd@lists.community.tummy.com
Wed, 21 May 2003 02:38:22 -0400


Mark,
  I didn't see that line in enbd-server.c but it was in file.c.
Commenting those two lines didn't seem to change the behavior but
commenting out the file sync 'if' statement at the bottom of
enbd-server.c does stop the constant running.

  Getting close. Now it just syncs every 6 to 10 seconds or so... I'm
guessing when the kernel flushes it's buffers. I've been trying to break
it by yanking disks out during syncs, swapping disks, etc. and so far
the best I've been able to do is get the server slave to die causing the
clients mount program to take a while to return but it does return
successfully.

  I'm going to keep poking around in my very inept way... thank the Net
gods for well commented code! Please keep sending suggestions and
thoughts.

Pete

"Travis, Mark" wrote:
> 
> In enbd-server.c there's a line that says:
>         // is floppy, make us sync
> 
> Comment out the next 2 lines and rebuild to see what it does...
> 
> Peter?