Date: Sat, 8 Jul 2006 18:46:06 +0100 From: Christoph Hellwig <hch@infradead.org> To: Sam Leffler <sam@errno.com> Cc: Craig Rodrigues <rodrigc@crodrigues.org>, freebsd-current@freebsd.org, freebsd-arch@freebsd.org Subject: Re: [RFC] mount can figure out fstype automatically Message-ID: <20060708174606.GA29602@infradead.org> In-Reply-To: <44AFD7DF.8090002@errno.com> References: <20060708152801.GA3671@crodrigues.org> <44AFD7DF.8090002@errno.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060708174606.GA29602>