From owner-freebsd-current@FreeBSD.ORG Sat Jul 8 16:38:35 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 F407116A4E0; Sat, 8 Jul 2006 16:38:34 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BA4143D5E; Sat, 8 Jul 2006 16:38:24 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.14] (imini.samsco.home [192.168.254.14]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k68GcAx3034638; Sat, 8 Jul 2006 10:38:15 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <44AFDF38.3030707@samsco.org> Date: Sat, 08 Jul 2006 10:37:12 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050416 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Craig Rodrigues References: <20060708152801.GA3671@crodrigues.org> <86ac7krtu1.fsf@xps.des.no> <20060708160931.GA3871@crodrigues.org> In-Reply-To: <20060708160931.GA3871@crodrigues.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org Cc: freebsd-current@freebsd.org, freebsd-arch@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: Sat, 08 Jul 2006 16:38:35 -0000 Craig Rodrigues wrote: > On Sat, Jul 08, 2006 at 05:37:26PM +0200, Dag-Erling Smrgrav wrote: > >>What about cases where there may be several matching file systems? >>For instance, a clean ext3 file system is also a valid ext2 file >>system (and vice versa). > > > Currently, FreeBSD can only mount ext2 with mount -t ext2fs. > > A better example would probably be udf and cd9660 filesystems. > > Right now the logic is to iterate over the list of known local > filesystems (always starting with "ufs"), skipping over "synthetic" > and "network" filesystems, > i.e. similar to the list produced by lsvfs: > > Filesystem Refs Flags > -------------------------------- ----- --------------- > ufs 8 > reiserfs 0 read-only > nfs4 0 network > ext2fs 0 > ntfs 0 > cd9660 0 read-only > procfs 1 synthetic > msdosfs 0 > xfs 0 > devfs 1 synthetic > nfs 0 network > > > > The first matching filesystem wins....not perfect, but > maybe good enough for a lot of cases. > > mount -t always works if you want to specify the fstype. > Where is udf in the list? Btw, it's not that udf and cd9660 are compatible, they aren't by any means. It's that the can co-exist on the same media, and often times a UDF filesystem has cd9660 structures available for compatibility. If you added udf to your list above with a higher priority than cd9660, everything should 'just work', and you'd still be able to override it manually. Scott