Source-Changes-D archive

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

re: CVS commit: src/sys/dev/raidframe

On Apr 2,  2:10pm, (matthew green) wrote:
-- Subject: re: CVS commit: src/sys/dev/raidframe

| > Module Name:        src
| > Committed By:       christos
| > Date:               Wed Apr  2 02:17:01 UTC 2014
| > 
| > Modified Files:
| >     src/sys/dev/raidframe: rf_netbsdkintf.c
| > 
| > Log Message:
| > If we are autoconfiguring root, then only change the booted_device if
| > we booted from one of the components of the root raid set. This allows
| > us to boot from other media, without forcing the found raid to always
| > be root. Allow the old behavior with RAIDFRAME_FORCE_ROOT.
| > XXX: cpu_rootconf() is called twice now, which prints the booted device
| > message twice. Perhaps we can remember that cpu_rootconf has been called
| > and avoid calling it twice to avoid that.
| i like this.. i think.
| i wonder if this will break my system that boot from a different
| device to the raid root device.

I think it will.

| eg, ultra10 whose prom can't talk to my sata disk, and boots from
| a cf/ide fob with just ofwboot and netbsd (and attaches as wd0),
| and mountroots from the raidframe on wd1+wd2.

Well, there are different options here:
1. is there a way to pass the root from ofwboot to netbsd?
2. since netbsd knows it boots normally from raid, you can put a 
        "root on raidx" statement in your kernel.
3. you can compile the kernel with RAIDCTL_FORCE_ROOT
4. we can add an option to mark the raid as force root.


Home | Main Index | Thread Index | Old Index