From owner-freebsd-rc@FreeBSD.ORG Sun Apr 30 02:13:30 2006 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52FCD16A401; Sun, 30 Apr 2006 02:13:30 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id C806C43D46; Sun, 30 Apr 2006 02:13:29 +0000 (GMT) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 3439AEB216E; Sun, 30 Apr 2006 10:13:25 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id DNS1ZdsXdNk9; Sun, 30 Apr 2006 10:13:22 +0800 (CST) Received: from [10.217.12.81] (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id CF833EB1555; Sun, 30 Apr 2006 10:13:21 +0800 (CST) From: Xin LI To: Sergey Matveychuk In-Reply-To: <4453DA55.2020706@FreeBSD.org> References: <4453DA55.2020706@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-OHrd5ej6y66fx8B0zErO" Organization: The FreeBSD Project Date: Sun, 30 Apr 2006 10:13:18 +0800 Message-Id: <1146363198.939.2.camel@spirit> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Cc: freebsd-rc@FreeBSD.org Subject: Re: fsck X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 02:13:30 -0000 --=-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 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--