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
[-- Attachment #1 --] 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/ [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEVB0+hcUczkLqiksRAuhTAJ9ykY+tjp1iVXE1W/GB1kkh77tipACgre1l dYVUdFDNmoAH/JfxtJel+XI= =z2Np -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1146363198.939.2.camel>
