On Fri, 28 Mar 2008 11:00:54 -0700 (PDT)
Andrew Ryan <[EMAIL PROTECTED]> wrote:

> You'd probably need 2 processes ; one to drive and another process to
> go off and stat the mount point. The driver would invoke the
> stat'ers, and if the stat doesn't come back in some seconds, declare
> the mount hung. Because if the mount really is hung, the stat process
> is going to hang forever too, so you don't want your driver process
> to get hung too.

Why not implement this as a heartbeat trap---you have a process that
just stats the mount point every however often, and sends a trap to
mon.  If it freezes because the mount freezes, it won't send the trap
and mon will alert.

Seems a lot cleaner, IMHO.

Mike.

_______________________________________________
mon mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to