From owner-freebsd-current@FreeBSD.ORG Sat Jul 8 17:46:16 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 A917816A4DA; Sat, 8 Jul 2006 17:46:16 +0000 (UTC) (envelope-from SRS0+45c17c628dd323489a6d+1049+infradead.org+hch@pentafluge.srs.infradead.org) Received: from pentafluge.infradead.org (pentafluge.infradead.org [213.146.154.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4953443D46; Sat, 8 Jul 2006 17:46:15 +0000 (GMT) (envelope-from SRS0+45c17c628dd323489a6d+1049+infradead.org+hch@pentafluge.srs.infradead.org) Received: from hch by pentafluge.infradead.org with local (Exim 4.62 #1 (Red Hat Linux)) id 1FzGsY-0007nh-8M; Sat, 08 Jul 2006 18:46:06 +0100 Date: Sat, 8 Jul 2006 18:46:06 +0100 From: Christoph Hellwig To: Sam Leffler Message-ID: <20060708174606.GA29602@infradead.org> References: <20060708152801.GA3671@crodrigues.org> <44AFD7DF.8090002@errno.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44AFD7DF.8090002@errno.com> User-Agent: Mutt/1.4.2.1i X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html X-Mailman-Approved-At: Mon, 10 Jul 2006 11:58:20 +0000 Cc: Craig Rodrigues , freebsd-current@freebsd.org, freebsd-arch@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: Sat, 08 Jul 2006 17:46:16 -0000 On Sat, Jul 08, 2006 at 09:05:51AM -0700, Sam Leffler wrote: > Linux has -t auto; haven't looked at how it works. It's implemented in mount(8). It has a table of magic numbers and offsets and tries all of them in a well defined order. If everything fails it tries a few heuristics whether the filesystems might be a FAT filesystem as thos don't have magic numbers.