Nicolas Williams writes:
> On Tue, Jun 03, 2008 at 12:12:49PM -0700, Jordan Brown wrote:
> > One could imagine having a system call that did the final sync and set 
> > the file systems read-only, or something like that, so that we could 
> > have additional user-space involvement between the sync and the actual 
> > final shutdown, but we don't have that.
> 
> Is there no way to do that now?  (sync and remount -o ro, that is)

I don't think so.

> Jim,
> 
> Asking that UPS vendors provide a way to delay poweroff seems
> unrealistic (unless they already provide it).  As unrealistic as putting
> these hooks in the kernel seems to you.  No, I don't use a UPS at home
> (other than my laptop battery :)

It seems somewhat reasonable to me, given the alternatives.  All of
the UPSes I've used have a "shutdown delay" variable, and the software
should support this.

You're right that we could be safer here if we were able to go from a
read/write mount of / down to a read-only mount (as do many other
OSes), but we've never done that.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to