From owner-freebsd-current@FreeBSD.ORG Sun Jul 9 03:32:33 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B451516A4DA for ; Sun, 9 Jul 2006 03:32:33 +0000 (UTC) (envelope-from morganw@chemikals.org) Received: from ms-smtp-03.southeast.rr.com (ms-smtp-03.southeast.rr.com [24.25.9.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4901C43D49 for ; Sun, 9 Jul 2006 03:32:33 +0000 (GMT) (envelope-from morganw@chemikals.org) Received: from volatile.chemikals.org (cpe-024-211-118-154.sc.res.rr.com [24.211.118.154]) by ms-smtp-03.southeast.rr.com (8.13.6/8.13.6) with ESMTP id k693WNo1006243; Sat, 8 Jul 2006 23:32:24 -0400 (EDT) Received: from localhost (morganw@localhost [127.0.0.1]) by volatile.chemikals.org (8.13.6/8.13.6) with ESMTP id k693WNLU052845; Sat, 8 Jul 2006 23:32:23 -0400 (EDT) (envelope-from morganw@chemikals.org) Date: Sat, 8 Jul 2006 23:32:23 -0400 (EDT) From: Wesley Morgan To: Craig Rodrigues In-Reply-To: <20060708152801.GA3671@crodrigues.org> Message-ID: <20060708232731.T31266@volatile.chemikals.org> References: <20060708152801.GA3671@crodrigues.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: freebsd-current@freebsd.org Subject: Re: [RFC] mount can figure out fstype automatically X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jul 2006 03:32:33 -0000 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