From owner-freebsd-hackers Sun May 5 08:21:18 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA22227 for hackers-outgoing; Sun, 5 May 1996 08:21:18 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA22212 for ; Sun, 5 May 1996 08:21:14 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id RAA16581; Sun, 5 May 1996 17:20:35 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id RAA24104; Sun, 5 May 1996 17:20:35 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id RAA28990; Sun, 5 May 1996 17:01:37 +0200 (MET DST) From: J Wunsch Message-Id: <199605051501.RAA28990@uriah.heep.sax.de> Subject: Re: dosfsck anyone? To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Sun, 5 May 1996 17:01:35 +0200 (MET DST) Cc: rnordier@iafrica.com (Robert Nordier) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199605051335.PAA00347@eac.iafrica.com> from Robert Nordier at "May 5, 96 03:35:17 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL15 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Robert Nordier wrote: > A preen option is a Good Thing. 'fsck' itself has code to parse > /etc/fstab, skipping non-ufs filesystems. One solution would be > to incorporate equivalent code in 'dosfsck'. Possibly a more > elegant approach (which may be what you had in mind) would be to > handle the /etc/fstab parsing in a generic front-end. I rather thought of it the other way round: similar to mount(8), keep fsck(8) being the generic front-end that does the fstab parsing and dispatching. Much like mount(8), it could have builtin knowledge about some file system types (a builtin ufs checker, and the wisdom that procfs, swap, and cd9660 don't require checking at all), while it will call {/usr/sbin,/sbin}/fsck_${fstype} for all other file system types. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)