5.1-R-p11 unable to "sync disks" when shutting down
Brooks Davis
brooks at one-eyed-alien.net
Wed Dec 31 16:11:03 PST 2003
On Wed, Dec 31, 2003 at 04:02:27PM -0800, Tim Kientzle wrote:
> David Gilbert wrote:
> >>>>>>"Tim" == Tim Kientzle <kientzle at acm.org> writes:
> >
> >Tim> What's needed is some way for fsck to mark a filesystem as
> >Tim> having a bgfsck in progress. Then fsck -F can check for that marker.
> >
> >Hrm. Isn't this done? Isn't there a 'special' snapshot created by
> >the bgfsck process? Or does this snapshot evaporate (have no links)?
>
> You've exceeded my expertise with that one. Also, using the
> snapshot as a flag wouldn't be robust against errors in the snapshot
> code itself.
>
> I note that fsck_ffs sets a flag "needs foreground check"
> if the background check fails. It might suffice to change the
> logic just a bit:
> * Set this flag when bg check starts
> * Clear the flag when bg check succeeds
>
> That would ensure that a foreground check
> gets done if the system rebooted during the bg
> check or if the bg check crashed for any reason.
If this is done, it should be optional. There are plenty of reasons
why I might not finish a bgfsck where a fgfsck isn't necessicary
including simply rebooting to test a new kernel after a panic of the
previous one.
-- Brooks
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20031231/a6479a95/attachment.bin
More information about the freebsd-current
mailing list