Date: Tue, 27 Oct 1998 18:44:30 +0100 From: Sebastian Lederer <lederer@bonn-online.com> To: Studded <Studded@gorean.org>, freebsd-hackers@FreeBSD.ORG Subject: Re: Patch for src/sys/i386/isa/wd.c Message-ID: <3636067E.7C2249A3@bonn-online.com> References: <3634F865.9755D2E7@bonn-online.com> <3635180F.BA6C6F92@gorean.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Studded wrote: > Sebastian Lederer wrote: > > > > Hi, > > > > How about the following patch to src/sys/i386/isa/wd.c ? It fills in the > > disk model name (and disk type) when reading the in-core disk label via > > the DIOCGDINFO ioctl(), if it has not already been set. Tested and > > working on a couple of machines. It's just a simple way for userland > > programs to identify IDE disks by name (which is what I need for a > > FreeBSD installation program). > > This compiles and runs fine on -stable, any chance you could supply > code that would show me the label? I think this is a fine idea, and I'd You can use disklabel(8) on the raw disk device, e.g. "disklabel /dev/rwd0", or maybe"disklabel /dev/rwd0 | grep label". > even like to see it in the boot message. More information provided to > the user is always a good thing. Why in the boot message? The kernel already prints the model name when probing the disks, if that's what you mean? Best regards, Sebastian Lederer -- Sebastian Lederer lederer@bonn-online.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3636067E.7C2249A3>