From: | Alastair M. Robinson |
Date: | 08 Jun 2000 at 00:53:16 |
Subject: | Suspending disk activity... |
Hi Francis,
> The problem is that I'm writing a reboot utility and I
> want make it wait for all disk activity to stop before
> it reboots the machine. As far as I'm aware this is
> 'impossible' to do (why?).
Just a thought, but you could try getting an exclusive lock on all drives on
the system (or maybe send them all an ACTION_INHIBIT packet). If this
succeeds, it would be rather hard for any further disk activity to occur ;-)
(If this fails, you'd probably better release all locks and try again after
a short interval - otherwise you might cause deadlocks.)
All the best,
Witches use brooms because nature abhors a vacuum.
------------------------------------------------------------------------
Take your development to new heights. Work with clients like Dell and
pcOrder. Submit your resume to jobs@liaison.com. Visit us at
http://click.egroups.com/1/4358/1/_/451227/_/960418617/
------------------------------------------------------------------------