From owner-freebsd-arch@FreeBSD.ORG Tue Jul 11 01:05:47 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 10A7216A4DD; Tue, 11 Jul 2006 01:05:47 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from sippysoft.com (gk.360sip.com [72.236.70.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9447743D53; Tue, 11 Jul 2006 01:05:46 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from [192.168.0.92] ([204.244.149.125]) (authenticated bits=0) by sippysoft.com (8.13.6/8.13.6) with ESMTP id k6B15apt043483 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Jul 2006 18:05:38 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Message-ID: <44B2F94A.6020309@FreeBSD.org> Date: Mon, 10 Jul 2006 18:05:14 -0700 From: Maxim Sobolev Organization: Sippy Software, Inc. User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Scott Long References: <20060708152801.GA3671@crodrigues.org> <44AFD7DF.8090002@errno.com> <20060708161719.GB3871@crodrigues.org> <20060710223845.GA47557@dragon.NUXI.org> <44B2F326.1090203@samsco.org> In-Reply-To: <44B2F326.1090203@samsco.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Craig Rodrigues , freebsd-current@FreeBSD.org, freebsd-arch@FreeBSD.org 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 01:05:47 -0000 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