C (135/414)

From:Francis G. Loch
Date:08 Jun 2000 at 12:08:26
Subject:Re: Suspending disk activity...

Hi Charlie,

--- Charlie <charlie@amigaforever.free-online.co.uk>
wrote: >
> ----- Original Message -----
> From: Alastair M. Robinson
> <blackfive@fakenhamweb.co.uk>
> To: <amiga-c@egroups.com>
> Sent: Wednesday, June 07, 2000 4:53 PM
> Subject: [amiga-c] 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.)
> >
>
> But isnt he trying to wait till all disk activity is
> finishes rather than
> stop all disk activity?

I am indeed.

On reflection though, suspending all disk activity
could come in handy if the user wanted to force a
reboot while disk activity was still going on to try
and prevent validation errors.

Kind regards,

Francis.

=====
e-mail:- fgloch@yahoo.com
web-site:- http://www.geocities.com/fgloch
Member of GAUG
Glasgow Amiga Users Group
*-Join our mailing list-*
gaug-subscribe@egroups.com

__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

------------------------------------------------------------------------
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/_/960462508/
------------------------------------------------------------------------