From owner-freebsd-arch Mon Oct 23 10:25:36 2000 Delivered-To: freebsd-arch@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 8069037B479 for ; Mon, 23 Oct 2000 10:25:33 -0700 (PDT) Received: from [212.238.54.101] (helo=freebie.demon.nl) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 13nlLk-0006of-00; Mon, 23 Oct 2000 17:25:30 +0000 Received: (from wkb@localhost) by freebie.demon.nl (8.11.0/8.11.0) id e9NHRx601135; Mon, 23 Oct 2000 19:27:59 +0200 (CEST) (envelope-from wkb) Date: Mon, 23 Oct 2000 19:27:59 +0200 From: Wilko Bulte To: Kirk McKusick Cc: Dag-Erling Smorgrav , arch@freebsd.org Subject: Re: Ideas concerning fsck Message-ID: <20001023192759.A1077@freebie.demon.nl> References: <200010222322.QAA06345@beastie.mckusick.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200010222322.QAA06345@beastie.mckusick.com>; from mckusick@mckusick.com on Sun, Oct 22, 2000 at 04:22:53PM -0700 X-OS: FreeBSD 4.1-STABLE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Oct 22, 2000 at 04:22:53PM -0700, Kirk McKusick wrote: > From: Dag-Erling Smorgrav > Date: 22 Oct 2000 01:42:50 +0200 > > What do people think about dispensing with the Pass# argument in fstab > and instead using the following algorithm for 'fsck -p': > > 1) if the device does not begin with a slash, assume this is a > pseudo-filesystem, and skip this entry. > > 2) if the mountpoint is "none", skip this entry. > > 3) if the fs type is known, run the appropriate command (which can > be null, e.g. for cd9660), and skip to the next entry. > > 4) if the fs type is unknown, but fsck_${fstype} exists, run it and > skip to the next entry. > > 5) print a big fat "Unknown file system type" warning and skip to > the next entry. > > As for which order to fsck file systems in, do / first, and everything > else in parallell afterwards (possibly with additional logic to try to > identify file systems that are on the same device and fsck them > sequentially to avoid thrashing) > > I'm willing to write the code if people think it's a good idea. > > DES > -- > Dag-Erling Smrgrav - des@thinksec.com > > The current suggested use of the pass # is to set the root filesystem > to pass 1, and everything else that you want checked with pass 2. Fsck > has a heuristic to decide which filesystems are on the same drive and > will run them serially (see fsck/preen.c); filesystems on different > spindles will be run in parallel. Running the root separately and by I could imagine that for multiple filesystems sharing one (hardware) RAID volume one might want to be able to override this heuristic. The inherent parallelism allowed by RAID would allow checking of multiple filesystems on the (apparantly) same spindle without speed degradation/trashing. W/ -- Wilko Bulte Arnhem, the Netherlands wilko@freebsd.org http://www.freebsd.org http://www.nlfug.nl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message