From owner-freebsd-arch@FreeBSD.ORG Tue Jul 11 00:39:43 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 2328016A4DA; Tue, 11 Jul 2006 00:39:43 +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 0C0F043D46; Tue, 11 Jul 2006 00:39:39 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.201] ([192.168.254.201]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k6B0dN16049742; Mon, 10 Jul 2006 18:39:28 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <44B2F326.1090203@samsco.org> Date: Mon, 10 Jul 2006 18:39:02 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org, freebsd-arch@freebsd.org References: <20060708152801.GA3671@crodrigues.org> <44AFD7DF.8090002@errno.com> <20060708161719.GB3871@crodrigues.org> <20060710223845.GA47557@dragon.NUXI.org> In-Reply-To: <20060710223845.GA47557@dragon.NUXI.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: 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 00:39:43 -0000 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? Scott