Re: 5.1-R-p11 unable to "sync disks" when shutting down

From: Tim Kientzle <kientzle_at_acm.org>
Date: Wed, 31 Dec 2003 15:44:32 -0800
Doug Barton wrote:
> On Wed, 31 Dec 2003, David Gilbert wrote:
>>I'd like to see:
>>
>>crash -> boot -> defer for bgfsck (but mark disk as having tried)
>>      -> multiuser -> bgfsck -> crash -> boot -> fsck in foreground
>>      -> multiuser
>>
>>... but I believe this would require fsck support unless the startup
>>scripts were writing to the filesystem to indicate no bgfsck.
> 
> 
> What you propose would also be really complicated for other reasons
> related to the way rcNG works.

I agree that it would be tricky to handle within the startup
scripts.

But it doesn't seem like it should be hard to handle within
fsck itself.

The first time fsck gets invoked by rcNG, it is given the -F
flag which, according to fsck(8) does a foreground check on
"all the file systems that cannot do background checking."

I think that "system rebooted during a bg fsck" could qualify
that FS as being unable to do background checking.  What's
needed is some way for fsck to mark a filesystem as having
a bgfsck in progress.  Then fsck -F can check for that marker.

Tim
Received on Wed Dec 31 2003 - 14:44:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:36 UTC