From owner-freebsd-arch@FreeBSD.ORG Tue Jul 11 05:14:17 2006 Return-Path: X-Original-To: freebsd-arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC4ED16A4E1; Tue, 11 Jul 2006 05:14:17 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08A6943D46; Tue, 11 Jul 2006 05:14:16 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1G0AZa-000GIQ-Rl; Tue, 11 Jul 2006 08:14:14 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Scott Long In-reply-to: <44B2FD91.4010503@samsco.org> References: <20060708152801.GA3671@crodrigues.org> <44AFD7DF.8090002@errno.com> <20060708161719.GB3871@crodrigues.org> <20060710223845.GA47557@dragon.NUXI.org> <44B2F326.1090203@samsco.org> <44B2F94A.6020309@FreeBSD.org> <44B2FD91.4010503@samsco.org> Comments: In-reply-to Scott Long message dated "Mon, 10 Jul 2006 19:23:29 -0600." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 11 Jul 2006 08:14:14 +0300 From: Danny Braniss Message-ID: Cc: Maxim Sobolev , freebsd-current@FreeBSD.org, freebsd-arch@FreeBSD.org, Craig Rodrigues Subject: Re: [RFC] mount can figure out fstype automatically X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 05:14:17 -0000 > Maxim Sobolev wrote: > > > Scott Long wrote: > > > >> David O'Brien wrote: > >> > >>> On Sat, Jul 08, 2006 at 12:17:19PM -0400, Craig Rodrigues wrote: > >>> > >>>> I was thinking of doing something like that. You can basically > >>>> get the same info by doing something like: > >>>> file - < /dev/ad0s1e > >>>> /dev/stdin: Unix Fast File system (little-endian) > >>>> file - < /dev/ad0s4 > >>>> /dev/stdin: SGI XFS filesystem > >>>> > >>>> I leaned away from this approach in mount(8) because: > >>>> - I didn't want to tie mount(8) to file(1) > >>> > >>> > >>> > >>> Why not? We have libmagic for purposes like this. > >>> > >> > >> This is an interesting idea. However, it has the potential to > >> add a dependency on /usr to the early boot environment. Maybe it > >> could be done via rtld? > > > > > > Well, we have dynamic /sbin now, so that it's only the matter of moving > > libmagic into /lib. > > > > -Maxim > > libmagic depends on libz. Let's not go down the path of populating > /lib with every convenience under the sun. > and /usr/share/misc/magic btw, the idea of mount figuring out the nount-type has allot of merit, but using a 10 ton hammer is not the way. danny