[issue1538] mountroot should probe file systems
    Alex Hornung (via DragonFly issue tracker) 
    sinknull at leaf.dragonflybsd.org
       
    Wed Nov 24 00:09:23 PST 2010
    
    
  
Alex Hornung <ahornung at gmail.com> added the comment:
Doing this is easy enough, and we only support three FS as root anyways (?) 
(hammer, ffs/ufs, cd9660). I'd suggest adding a method to vfsops called vfs_probe 
that will probe a given device name just to see if the filesystem on it matches 
the vfs.
We already have vfsconf_each() which could then be used in sys/kern/vfs_conf.c to 
iterate through all available filesystems and call their respective vfs_probe() 
method until one of them returns no error.
To minimize the impact this might have on the boot time this should only be done 
if no fs is specified in the vfs.root.mountfrom.
Any thoughts?
Cheers,
Alex Hornung
----------
status: unread -> chatting
_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1538>
_____________________________________________________
    
    
More information about the Bugs
mailing list