From owner-freebsd-fs Thu Sep 28 10: 6:53 2000 Delivered-To: freebsd-fs@freebsd.org Received: from squishycow.goldenterrace.com.au (squishycow.goldenterrace.com.au [203.41.110.130]) by hub.freebsd.org (Postfix) with ESMTP id 4BAEA37B424; Thu, 28 Sep 2000 10:06:43 -0700 (PDT) Received: from roaming.cacheboy.net (unknown [203.41.110.145]) by squishycow.goldenterrace.com.au (Postfix) with ESMTP id DA15319D1A; Fri, 29 Sep 2000 04:06:28 +1100 (EST) Received: (from adrian@localhost) by roaming.cacheboy.net (8.11.0/8.11.0) id e8S5vmL01766; Thu, 28 Sep 2000 07:57:48 +0200 (CEST) (envelope-from adrian) Date: Thu, 28 Sep 2000 07:57:47 +0200 From: Adrian Chadd To: Bruce Evans Cc: freebsd-current@freebsd.org, freebsd-fs@freebsd.org Subject: Re: Fsck wrappers, revisited Message-ID: <20000928075747.B1740@roaming.cacheboy.net> References: <20000923114434.A4419@roaming.cacheboy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from bde@zeta.org.au on Tue, Sep 26, 2000 at 03:51:51AM +1100 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Sep 26, 2000, Bruce Evans wrote: > > Well, if you have any suggestions, I'm all for it. :-) > > I don't understand the problem. You get the filesystem type name > (fstypename) from fs_vfstype in struct fstab or from f_fstypename in > struct statfs. You attempt to execute strcat("/sbin/fsck_", fstypename) > to see if fsck is supported on filesystems of type fstypename. You don't try to auto-detect and fsck a mounted FS. If its mounted and you are doing it during bootup, it'll generally be in fstab which the current wrapper code looks in. So, the question is: how do you take the raw disk device and figure out which FS type it is, and then which fsck program to run? Adrian -- Adrian Chadd "The main reason Santa is so jolly is because he knows where all the bad girls live." -- Random IRC quote To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message