From owner-freebsd-questions@FreeBSD.ORG Tue Jun 10 21:56:37 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9403A106566B for ; Tue, 10 Jun 2008 21:56:37 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from a.cs.okstate.edu (a.cs.okstate.edu [139.78.113.1]) by mx1.freebsd.org (Postfix) with ESMTP id 6DC8C8FC1B for ; Tue, 10 Jun 2008 21:56:37 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from [127.0.0.1] (localhost [127.0.0.1]) by a.cs.okstate.edu (Postfix) with ESMTP id 61A31154C30; Tue, 10 Jun 2008 16:56:36 -0500 (CDT) Message-ID: <484EF892.3060603@cs.okstate.edu> Date: Tue, 10 Jun 2008 16:56:34 -0500 From: Reid Linnemann User-Agent: Thunderbird 2.0.0.6 (X11/20070926) MIME-Version: 1.0 To: Pietro Cerutti References: <20080610211551.GA79421@cons.org> <484EF79B.5080603@FreeBSD.org> In-Reply-To: <484EF79B.5080603@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Remind me which filesystems exactly can be background fscked? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2008 21:56:37 -0000 Written by Pietro Cerutti on 06/10/08 16:52>> > Martin Cracauer wrote: > | I'll have to repartition my 6.3 notebook anyway. Can you remind me > | which filesystems I can have background fsck on? My current single > | filesystem install checks it in foreground. > | > | If I have a separate /boot, would / be background fscked? > | > | Or is the root filesystem always foreground checked? > > AFAIK, UFS supports background checks as long as the fstab entries don't > include the async option. > fsck_ffs(8): To be eligible for background cleaning it must have been running with soft updates, not have been marked as needing a foreground check, and be mounted and writable when the background check is to be done. If these conditions are met, then fsck_ffs exits with a zero exit status. Otherwise it exits with a non-zero exit status. If the file system is clean, it will exit with a non- zero exit status so that the clean status of the file system can be verified and reported during the foreground checks.