[ENBD] Re: problems with floppy
P.T. Breuer
ptb at it.uc3m.es
Thu Dec 25 17:41:58 MST 2003
In article <200312172331.hBHNVkX17211 at oboe.it.uc3m.es> you wrote:
> "Also sprach Patryk Lesiewicz:"
> > I'm trying to use enbd to share the floppy, and the problem is, that when I
> > run enbd-client there my floppy is continuosly busy. Even if I don't mount
> If you feel better without the floppy being tested the whole time, you
> can take out the open/close stuff at the end of the main loop (itself at
> the end of) in the main() routine in enbd-server.c
and I notice that there's a test in case of no recent activity also
generated in enbd-client and it will be treated in enbd-server.c :
// PTB len 0 reads are CHKNETs from the client
if (request->len <= 0) {
DEBUG ("read sector %Ld len %d\n", request->from >> 9, request->len);
- res = server->check (server);
+ res = 0;
} else {
Make the change above and the client's keep alive call to the server
will not result in a disk test, which would have annoyed you. (The
"server" in the above code is the fileserver object, which the
enbd-server calls down to).
This would have showed up every 30s, instead of the disk test generated
every 1-10s or so generated deliberately by the loop at the end of
enbd-server.c in main(), which I showed how to remove in my previous
reply.
I've made these changes in 2.4.32. They result in the client kernel's
remote media treatment being proxied over to the server, instead of
the server continuously polling the resource for its status.
Peter
More information about the ENBD
mailing list