From owner-freebsd-current@FreeBSD.ORG Fri Jan 19 05:48:38 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1398416A415; Fri, 19 Jan 2007 05:48:38 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id C05C213C457; Fri, 19 Jan 2007 05:48:37 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id l0J5jnQ2004773; Thu, 18 Jan 2007 22:45:50 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 18 Jan 2007 22:46:09 -0700 (MST) Message-Id: <20070118.224609.709403207.imp@bsdimp.com> To: rodrigc@crodrigues.org From: "M. Warner Losh" In-Reply-To: <20070119023709.GA1524@crodrigues.org> References: <20070118134936.GA7391@crodrigues.org> <20070118221749.3be589d9.rosti.bsd@gmail.com> <20070119023709.GA1524@crodrigues.org> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 18 Jan 2007 22:45:50 -0700 (MST) Cc: freebsd-current@freebsd.org, freebsd-arch@freebsd.org Subject: Re: [RFC] mount(8) can figure out fstype 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: Fri, 19 Jan 2007 05:48:38 -0000 In message: <20070119023709.GA1524@crodrigues.org> Craig Rodrigues writes: : This approach relies heavily on disklabels, and correct information : being stored in disklabels. : : For FreeBSD, I do not like the idea of introducing a new dependency : between mount(8) and BSD disklabels. It's worse than you might think. On OpenBSD, the line between partition and slice that we have in FreeBSD doesn't exist. Everything is a partition, and they create the necessary labeling when the label is read. Since FreeBSD lacks that feature, for the most part, you are going to have to implement some kind of 'file'-like magic number recognition for filesystems if you want to use a similar approach. Warner