fsck

Xin LI delphij at delphij.net
Sun Apr 30 02:13:30 UTC 2006


Hi,

在 2006-04-30日的 01:27 +0400,Sergey Matveychuk写道:
> Could you explain me please why we have the lines in /etc/rc.d/fsck script?
> 
>                 echo "Starting file system checks:"
>                 if checkyesno background_fsck; then
>                         fsck -F -p
>                 else
>                         fsck -p
>                 fi
> 
> 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,
-- 
Xin LI <delphij delphij net>    http://www.delphij.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: =?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?=
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20060430/a7b3bd41/attachment.pgp


More information about the freebsd-rc mailing list