NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/46732: setroot(9) is called twice after "MI root on wedges" changes



The following reply was made to PR kern/46732; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: mlelstv%NetBSD.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: kern/46732: setroot(9) is called twice after "MI root on wedges"
         changes
Date: Mon, 23 Jul 2012 00:15:24 +0900

 >  I see three possible solutions.
 >  
 >  Drop setroot calls in MD code and adjust documentation (cpu_rootconf(9)).
 >  cpu_rootconf is then only a hook that lets MD code set the variables
 >  booted_device, booted_partition, booted_startblk, booted_blks.
 
 I like this one.
 
 >  Drop MI rootconf() and push detection of wedge 'aliases' into setroot().
 >  Adjust setroot() signature to also pass in booted_startblk and booted_blks.
 >  
 >  Change setroot() to only remember the root specification and make rootconf()
 >  do the actual work with printing and RB_ASKNAME dance.
 
 setroot(9) is also called after vfs_mountroot() fails,
 so I'm afraid changing setroot() requires more adjustments.
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index