Date: Sat, 8 Jul 2006 23:32:23 -0400 (EDT) From: Wesley Morgan <morganw@chemikals.org> To: Craig Rodrigues <rodrigc@crodrigues.org> Cc: freebsd-current@freebsd.org Subject: Re: [RFC] mount can figure out fstype automatically Message-ID: <20060708232731.T31266@volatile.chemikals.org> In-Reply-To: <20060708152801.GA3671@crodrigues.org> References: <20060708152801.GA3671@crodrigues.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 8 Jul 2006, Craig Rodrigues wrote: > Hi, > > One of the pet peeves I have with FreeBSD is that > if I have a device with a local filesystem that I want to mount, > I need to explicitly know what type of filesystem is on the > device in order to mount it from the command-line. > > For example, > > mount -t cd9660 > mount -t udf > mount -t ext2fs > mount -t msdosfs > > Where this is particularly annoying is if I have multiple > USB thumb drives with different filesystems on them. How ironic. I was toying around with this idea enough this week to look over the mount source code. However, I was thinking along a completely different line. A better path seemed, to me, to be to try to use GEOM label as your data source. If the device path was "/dev/msdosfs/USBKEY", infer that it should use the appropriate driver. The only major requirement would be that everyone label their filesystems, or perhaps the geom label class could be expanded to include label-less filesystems in a sequential manner like "/dev/ufs/nolabel1". This method seemed to be the simplest and pretty much required no extra kernel interfaces, just a solid geom label class. -- This .signature sanitized for your protection
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060708232731.T31266>