Date: Sun, 23 Feb 2003 21:42:10 -0500 From: Hiten Pandya <hiten@unixdaemons.com> To: current@FreeBSD.ORG Subject: machdep.guessed_bootdev sysctl on i386 Message-ID: <20030224024210.GA50286@unixdaemons.com>
next in thread | raw e-mail | index | archive | help
--2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 (hiten@unixdaemons.com, hiten@uk.FreeBSD.org) http://www.unixdaemons.com/~hiten/ --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="sysctl-bootdev.patch" 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 */ --2oS5YaxWCcQjTEyO-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030224024210.GA50286>