Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2006 13:06:02 -0600
From:      Scott Long <scottl@samsco.org>
To:        Christoph Hellwig <hch@infradead.org>
Cc:        freebsd-arch@freebsd.org, freebsd-current@freebsd.org, Craig Rodrigues <rodrigc@crodrigues.org>
Subject:   Re: [RFC] mount can figure out fstype automatically
Message-ID:  <44B2A51A.4040103@samsco.org>
In-Reply-To: <20060708174606.GA29602@infradead.org>
References:  <20060708152801.GA3671@crodrigues.org> <44AFD7DF.8090002@errno.com> <20060708174606.GA29602@infradead.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Christoph Hellwig wrote:
> 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.
> 

So in your opinion and experience, what are the pros and cons of 
maintaining a table of magic numbers?

Scott



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44B2A51A.4040103>