*BSD News Article 16250


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!gatech!news.byu.edu!cwis.isu.edu!fcom.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: fsck summary info bad after every shutdown
Message-ID: <1993May18.200645.11191@fcom.cc.utah.edu>
Sender: news@fcom.cc.utah.edu
Organization: Weber State University  (Ogden, UT)
References: <root.737640955@gimli>
Date: Tue, 18 May 93 20:06:45 GMT
Lines: 49

In article <root.737640955@gimli> root@gimli.cs.uct.ac.za (Sandi Donno) writes:
>Has anyone had the following problem, or can anyone point me at the
>likely cause:
>
>I have installed 386bsd on 4 identical 486's with 120MB IDE hard drives, and 
>patchkit 0.2.3. Whether I use /sbin/shutdown, /usr/distbin/shutdown or reboot,
>fsck always finds the summary information bad after rebooting; the system
>is rebooted and the next time fsck finds no errors.

I find the fscking on boot rather annoying too, but I think your problem
is either that you aren't waiting for the sync before resetting or you
are having a cache consistancy problem.

To fix the fsck-on-every-reboot problem:

1)	Modify the volume header to include a bit defined as the "clean"
	bit.

2)	Modify "newfs" to set this bit on newly created file systems
	just before device close.

3)	Modify fsck to check for this bit:

	a)	If set, perform abbreviated fsck, something like
		printing the message "File system clean; skipping
		check".

	b)	If the bit is not set, do the fsck and set the bit
		before device close.

4)	A successful "mount" unsets the bit.

5)	A successful "umount" sets the bit.

No more nasty fsck's!

I will post my patches when I get around to them, but I'm awfully busy
just this instant, and probably will continue to be too busy for the next
several weeks if not an entire month.


					Terry Lambert
					terry@icarus.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me