Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2009 15:22:55 +0000
From:      "Paul B. Mahol" <onemda@gmail.com>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-current@freebsd.org
Subject:   Re: fsck_y_enable: use -C
Message-ID:  <3a142e750906010822s8538b65kdd529d2267ec7d41@mail.gmail.com>
In-Reply-To: <4A23D5A4.6020009@icyb.net.ua>
References:  <4A23D5A4.6020009@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/1/09, Andriy Gapon <avg@icyb.net.ua> wrote:
>
> What about the following patch?
> I believe that the idea behind fsck_y_enable is to try to make unattended
> systems
> with rw filesystems as recoverable as possible at the cost of potential
> damage to
> the data. The new "-C" option should not interfere with this goal, but
> should
> reduce recovery time, because currently fsck -y checks *all* filesystems
> from
> fstab, even those that are ro or clean:
>
> -C      Check if the =93clean=94 flag is set in the superblock and skip f=
ile
>         system checks if file system was properly dismounted and marked
>         clean.
>
>
> diff --git a/etc/rc.d/fsck b/etc/rc.d/fsck
> index bf51089..c0cb359 100755
> --- a/etc/rc.d/fsck
> +++ b/etc/rc.d/fsck
> @@ -45,7 +45,7 @@ fsck_start()
>  		8)
>  			if checkyesno fsck_y_enable; then
>  				echo "File system preen failed, trying fsck -y."
> -				fsck -y
> +				fsck -y -C
>  				case $? in
>  				0)
>  					;;
>
> --
> Andriy Gapon
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org=
"
>

+1

--=20
Paul



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