From owner-freebsd-arch Mon Oct 23 4: 2:31 2000 Delivered-To: freebsd-arch@freebsd.org Received: from aes.thinksec.com (unknown [193.212.248.16]) by hub.freebsd.org (Postfix) with ESMTP id EA9A737B479 for ; Mon, 23 Oct 2000 04:02:28 -0700 (PDT) Received: (from des@localhost) by aes.thinksec.com (8.11.0/8.11.0) id e9MIRr346827; Sun, 22 Oct 2000 20:27:53 +0200 (CEST) (envelope-from des@thinksec.com) X-Authentication-Warning: aes.thinksec.com: des set sender to des@thinksec.com using -f X-URL: http://www.ofug.org/~des/ To: Marius Bendiksen Cc: arch@freebsd.org Subject: Re: Ideas concerning fsck References: From: Dag-Erling Smorgrav Date: 22 Oct 2000 20:27:52 +0200 In-Reply-To: Marius Bendiksen's message of "Sun, 22 Oct 2000 19:37:10 +0200 (CEST)" Message-ID: Lines: 36 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Marius Bendiksen writes: > > 2) if the mountpoint is "none", skip this entry. >=20 > Please don't. =3D) >=20 > It is entirely sensible to be able to fsck a filesystem upon boot without > actually mounting it. That's what noauto is for. The "none" mountpoint denotes a swap partition. > > 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. > Why this distinction ? Because you may want to treat some systems specially (e.g. don't do anything for cd9660), so you only try to run fsck_${fstype} if you don't know of anything else to do. > I would think you'd either want to go entirely with the approach in (4), > or add a new file in /etc, say "fstypes" or "fscktab". Yes, that might be a good idea. > The logic to avoid thrashing would be a must. Currently, this can be > avoided by logic on the part of the admin, by using pass 1 where > neccessary. As to doing / first, why? Doing anything at all before you know you can trust your root partition (where fsck itself is stored) is not a very good idea. DES --=20 Dag-Erling Sm=F8rgrav - des@thinksec.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message