[RFC] mount can figure out fstype automatically

Christoph Hellwig hch at infradead.org
Mon Jul 10 20:39:57 UTC 2006


On Mon, Jul 10, 2006 at 02:30:20PM -0600, Scott Long wrote:
> >lead to all kinds of funnies.  Linux does this (iterating all filesystem
> >types in kernel) for the special case of the root filesystem where mount(8)
> >is not available, and it showeds various interesting bugs at least in the
> >fat driver.
> >
> 
> How does it resolve situations like with UDF vs iso9660, where both 
> structures can co-exist?

The kernel doesn't do anything fancy.  It just walks the list of filesystem
and the first fs that takes it gets it.  To answer the specific example
iso9660 is registered before udf so if you wanted to use a dual-fs cdrom
as root you would get iso9600 unless you specified the rootfstype=udf
boot option.


More information about the freebsd-arch mailing list