In the root fs search use the correct unit number when checking for
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 31 May 2004 17:38:08 +0000 (17:38 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 31 May 2004 17:38:08 +0000 (17:38 +0000)
commit3281b7bd1cd63c155cd5a8031bdacd4327277484
tree40fcaef68f617a95693717db15a8f06fe8f2e673
parentefaea464cd147d81e0e3169f1944873a47db2867
In the root fs search use the correct unit number when checking for
device existinance.  The new device infrastructure often registers disk
unist separately, so looking up unit 0 when only unit N exists will not
succeed.  We might want to later augment this with the slice and partition
number (which are 0 at the time the search is made prior to the real lookup),
but this should work for now.

Submitted-by: Hiroki Sato <hrs@allbsd.org>
sys/kern/vfs_conf.c