From owner-freebsd-current@FreeBSD.ORG Mon Jul 10 19:30:12 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 988C916A4E0; Mon, 10 Jul 2006 19:30:12 +0000 (UTC) (envelope-from rodrigc@crodrigues.org) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7A7343D45; Mon, 10 Jul 2006 19:30:11 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from c-71-233-168-2.hsd1.ma.comcast.net ([71.233.168.2]) by comcast.net (rwcrmhc12) with ESMTP id <20060710193010m12000a1n8e>; Mon, 10 Jul 2006 19:30:10 +0000 Received: from c-71-233-168-2.hsd1.ma.comcast.net (localhost [127.0.0.1]) by c-71-233-168-2.hsd1.ma.comcast.net (8.13.6/8.13.1) with ESMTP id k6AJU6kF034337; Mon, 10 Jul 2006 15:30:12 -0400 (EDT) (envelope-from rodrigc@c-71-233-168-2.hsd1.ma.comcast.net) Received: (from rodrigc@localhost) by c-71-233-168-2.hsd1.ma.comcast.net (8.13.6/8.13.1/Submit) id k6AJU6cj034336; Mon, 10 Jul 2006 15:30:06 -0400 (EDT) (envelope-from rodrigc) Date: Mon, 10 Jul 2006 15:30:05 -0400 From: Craig Rodrigues To: freebsd-arch@freebsd.org Message-ID: <20060710193005.GA34287@crodrigues.org> References: <20060708152801.GA3671@crodrigues.org> <44AFD7DF.8090002@errno.com> <20060708174606.GA29602@infradead.org> <44B2A51A.4040103@samsco.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44B2A51A.4040103@samsco.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@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: Mon, 10 Jul 2006 19:30:12 -0000 On Mon, Jul 10, 2006 at 01:06:02PM -0600, Scott Long wrote: > So in your opinion and experience, what are the pros and cons of > maintaining a table of magic numbers? One con: every time you add a new filesystem, you need to update mount(8). Not a big deal, but it is something. For Linux, the mount program usually is part of the util-linux package which is separate from the kernel. util-linux and kernel are maintained by separate groups in Linux....it is the responsibility of the Linux distribution to bundle together versions of util-linux and kernel that work together. For FreeBSD, the direction I have been going is to try to make mount(8) as simple and generic as possible, and push all the stuff for doing filesystem specific things into the kernel, i.e. into vfs_mount.c for generic stuff, and into each specific filesystem for fs-specific stuff. -- Craig Rodrigues rodrigc@crodrigues.org