Hello gang. Nothing big, but important... Can someone tell me if the machdep.guessed_bootdev sysctl is helpful at all? I think it's a waste, and it's pretty limited and only available on the i386.
It currently guesses 'wd' instead of 'ad' for the dev. nodes, .e.g: hiten:~/> sysctl machdep.gussed_bootdev machdep.guessed_bootdev: /dev/wd0s1a SCSI drives are shown right (da) but ATA drives mess up, i.e. it is still thinking we have the 'wd' system. It's either that we nuke this sysctl or apply the attached patch to sysctl, which has been reviewed and tested by people on IRC with positive results. Comments / objections appreciated. Cheers. -- Hiten Pandya ([EMAIL PROTECTED], [EMAIL PROTECTED]) http://www.unixdaemons.com/~hiten/
Index: src/sbin/sysctl/sysctl.c =================================================================== RCS file: /home/ncvs/src/sbin/sysctl/sysctl.c,v retrieving revision 1.51 diff -u -r1.51 sysctl.c --- src/sbin/sysctl/sysctl.c 22 Jan 2003 00:34:22 -0000 1.51 +++ src/sbin/sysctl/sysctl.c 22 Feb 2003 14:21:13 -0000 @@ -460,9 +460,7 @@ int majdev; char *name; } maj2name[] = { - 30, "ad", - 0, "wd", - 1, "wfd", + 0, "ad", 2, "fd", 4, "da", -1, NULL /* terminator */