Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Apr 2006 10:13:18 +0800
From:      Xin LI <delphij@delphij.net>
To:        Sergey Matveychuk <sem@FreeBSD.org>
Cc:        freebsd-rc@FreeBSD.org
Subject:   Re: fsck
Message-ID:  <1146363198.939.2.camel@spirit>
In-Reply-To: <4453DA55.2020706@FreeBSD.org>
References:  <4453DA55.2020706@FreeBSD.org>

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

--=-OHrd5ej6y66fx8B0zErO
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,

=E5=9C=A8 2006-04-30=E6=97=A5=E7=9A=84 01:27 +0400=EF=BC=8CSergey Matveychu=
k=E5=86=99=E9=81=93=EF=BC=9A
> Could you explain me please why we have the lines in /etc/rc.d/fsck scrip=
t?
>=20
>                 echo "Starting file system checks:"
>                 if checkyesno background_fsck; then
>                         fsck -F -p
>                 else
>                         fsck -p
>                 fi
>=20
> I don't understand a "-F" magic here.

Sometimes, if there is some inconsistency that background fsck can not
fix properly, it would mark the file system as "can not fsck in
background".  On the next boot, a fsck -Fp would check it in foreground
and fix the problems.  Therefore, we have to do a "fsck -F -p" when
background fsck is enabled, if all file systems can be checked in
background then it is essentially a no-op.

Cheers,
--=20
Xin LI <delphij delphij net>    http://www.delphij.net/

--=-OHrd5ej6y66fx8B0zErO
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=BF=A1=E4=BB=B6=E7=9A=84=E6=95=B0?=
	=?UTF-8?Q?=E5=AD=97=E7=AD=BE=E5=90=8D=E9=83=A8=E5=88=86?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQBEVB0+hcUczkLqiksRAuhTAJ9ykY+tjp1iVXE1W/GB1kkh77tipACgre1l
dYVUdFDNmoAH/JfxtJel+XI=
=z2Np
-----END PGP SIGNATURE-----

--=-OHrd5ej6y66fx8B0zErO--




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