From owner-cvs-all Wed Apr 25 0:18:31 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1A89937B422; Wed, 25 Apr 2001 00:18:24 -0700 (PDT) (envelope-from mckusick@FreeBSD.org) Received: (from mckusick@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3P7IM398026; Wed, 25 Apr 2001 00:18:22 -0700 (PDT) (envelope-from mckusick) Message-Id: <200104250718.f3P7IM398026@freefall.freebsd.org> From: Kirk McKusick Date: Wed, 25 Apr 2001 00:18:22 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/fsck fsck.8 fsck.c fsutil.c fsutil.h preen.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG mckusick 2001/04/25 00:18:22 PDT Modified files: sbin/fsck fsck.8 fsck.c fsutil.c fsutil.h preen.c Log: Add support for running foreground (-F) and background (-B) checks. Traditionally, fsck is invoked before the filesystems are mounted and all checks are done to completion at that time. If background checking is available, fsck is invoked twice. It is first invoked at the traditional time, before the filesystems are mounted, with the -F flag to do checking on all the filesystems that cannot do background checking. It is then invoked a second time, after the system has completed going multiuser, with the -B flag to do checking on all the filesystems that can do background checking. Unlike the foreground checking, the background checking is started asynchonously so that other system activity can proceed even on the filesystems that are being checked. At the moment, only the fast filesystem supports background checking. To be able to do background checking, a filesystem 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 (i.e., not listed as `noauto' in /etc/fstab). These changes are the final piece needed to support background filesystem checking. They will not have any effect until you update your /etc/rc to invoke fsck in its new mode of operation. I am still playing around with exactly what those changes should be and should be committing them later this week. Revision Changes Path 1.24 +61 -4 src/sbin/fsck/fsck.8 1.5 +94 -21 src/sbin/fsck/fsck.c 1.2 +45 -2 src/sbin/fsck/fsutil.c 1.3 +9 -6 src/sbin/fsck/fsutil.h 1.24 +15 -21 src/sbin/fsck/preen.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message