From owner-freebsd-current@FreeBSD.ORG Mon Jun 1 15:22:57 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE0D81065673 for ; Mon, 1 Jun 2009 15:22:57 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 371158FC15 for ; Mon, 1 Jun 2009 15:22:56 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by bwz9 with SMTP id 9so7717615bwz.43 for ; Mon, 01 Jun 2009 08:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=41bInsMoqM7+ezbrbQrP5h6CJg4ona7l4OqrDH91rEc=; b=XEpZtbVfdeP+zhknwzLo8BOw/Nmcr0z4a/BAqugT02pggk2pZP1X5xP/v+YXC1KZ9m cKK88Cl0NS7S1O5++Qx2eZMSRQ3Js9cMVbzRofzBaEwjqRw4Zr//YCc/aFHMEnPEMWrJ f0+eG6BMMAygAwmCGIy4wakcCQsjB6NTQunBE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=QgYG6sgJrcnrZrc7UDJbgCM8Vm9l0B5Oasqc9HevTYOLJysYyWiy3NHk+XBa7hX+NG zOVm82RwVOZoXmfQEhQPX1PoZPsGtTuFUtQL/O5TWETx8ce0d8DCooN0SUDeGHhBMAxi QoYxYqB83IiBUCRVUPoY20OOiTpLVNFemkoMo= MIME-Version: 1.0 Received: by 10.204.54.143 with SMTP id q15mr5765261bkg.148.1243869775323; Mon, 01 Jun 2009 08:22:55 -0700 (PDT) In-Reply-To: <4A23D5A4.6020009@icyb.net.ua> References: <4A23D5A4.6020009@icyb.net.ua> Date: Mon, 1 Jun 2009 15:22:55 +0000 Message-ID: <3a142e750906010822s8538b65kdd529d2267ec7d41@mail.gmail.com> From: "Paul B. Mahol" To: Andriy Gapon Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: fsck_y_enable: use -C X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 15:22:58 -0000 On 6/1/09, Andriy Gapon 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