Date: Fri, 22 Sep 2000 21:55:55 +0200 From: Adrian Chadd <adrian@FreeBSD.ORG> To: Bruce Evans <bde@zeta.org.au> Cc: freebsd-fs@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: Fsck wrappers, revisited Message-ID: <20000922215555.A449@roaming.cacheboy.net> In-Reply-To: <Pine.BSF.4.21.0009230253400.7090-100000@besplex.bde.org>; from bde@zeta.org.au on Sat, Sep 23, 2000 at 03:00:11AM %2B1100 References: <20001223112038.A37548@roaming.cacheboy.net> <Pine.BSF.4.21.0009230253400.7090-100000@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 23, 2000, Bruce Evans wrote: > On Sat, 23 Dec 2000, Adrian Chadd wrote: > > > Here's the patch: > > > > --- fsck.c.orig Sat Dec 23 11:13:30 2000 > > +++ fsck.c Sat Dec 23 11:13:34 2000 > > @@ -501,7 +501,7 @@ > > errx(1, "partition `%s' is not of a legal vfstype", > > str); > > - if ((vfstype = dktypenames[t]) == NULL) > > + if ((vfstype = fstypenames[t]) == NULL) > > errx(1, "vfstype `%s' on partition `%s' is not supported", > > fstypenames[t], str); > > > > > > So now is a problem which I'm sure the NetBSD people came up against. > > The fstypenames are names like 4.2BSD, vinum, ISO9660, etc. NetBSD fixed > > this by creating a new list 'mountnames[]', which maps the fs type to > > a string. > > fs typenames are already strings in FreeBSD (the kernel's vfc_index is an > implementation detail which should not be visible in applications). > > > http://cvsweb.netbsd.org/bsdweb.cgi/syssrc/sys/sys/disklabel.h.diff?r1=1.60&r2=1.61 > > > > What do people think about doing this as well? It would certainly make things > > a little tidier, but every time a new fs comes in the magic autodetection code > > will need to be updated (if appropriate, of course.) > > This would be a bug. So what would your suggestion here be? This is only used if a -t isn't given or you don't have an entry in /etc/fstab, so I personally don't think its a big issue. Adrian -- Adrian Chadd "The main reason Santa is so jolly is <adrian@freebsd.org> because he knows where all the bad girls live." -- Random IRC quote To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000922215555.A449>