Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Dec 2003 16:10:48 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Tim Kientzle <kientzle@acm.org>
Cc:        David Gilbert <dgilbert@dclg.ca>
Subject:   Re: 5.1-R-p11 unable to "sync disks" when shutting down
Message-ID:  <20040101001048.GA2212@Odin.AC.HMC.Edu>
In-Reply-To: <3FF36393.6000109@acm.org>
References:  <20031229164130.GA797@pp.htv.fi> <16370.20382.81302.449649@canoe.dclg.ca> <16371.20373.212950.533985@canoe.dclg.ca> <20031231152453.G1441@bo.vpnaa.bet> <3FF35F60.1070803@acm.org> <16371.24594.660308.151100@canoe.dclg.ca> <3FF36393.6000109@acm.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 31, 2003 at 04:02:27PM -0800, Tim Kientzle wrote:
> David Gilbert wrote:
> >>>>>>"Tim" =3D=3D Tim Kientzle <kientzle@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 marke=
r.
> >
> >Hrm.  Isn't this done?  Isn't there a 'special' snapshot created by
> >the bgfsck process?  Or does this snapshot evaporate (have no links)?
>=20
> 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.
>=20
> 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
>=20
> 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

--=20
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

--gKMricLos+KVdGMg
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/82WHXY6L6fI4GtQRAuG6AJ4tkF9cuegDFx4wprRTwE4ik9NR3QCdH76e
OQAB0ZfHOaQdivHK6zp7s78=
=LOqb
-----END PGP SIGNATURE-----

--gKMricLos+KVdGMg--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040101001048.GA2212>