Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Oct 1998 11:33:37 -0800
From:      Studded <Studded@gorean.org>
To:        Sebastian Lederer <lederer@bonn-online.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Patch for src/sys/i386/isa/wd.c
Message-ID:  <36362011.1235F2E1@gorean.org>
References:  <3634F865.9755D2E7@bonn-online.com> <3635180F.BA6C6F92@gorean.org> <3636067E.7C2249A3@bonn-online.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Sebastian Lederer wrote:
> 
> 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".

	Ok, tried that and the "label: " slot is blank. I have a WD Caviar 1.6G
EIDE drive that's about 2 years old if that helps you any. 

> > 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?

	Mine prints out:  wd0: 1549MB (3173184 sectors), 3148 cyls, 16 heads,
63 S/T, 512 B/S
As opposed to: 
(ahc0:0:0): "IBM DCAS-34330W S65A" type 0 fixed SCSI 2
sd0(ahc0:0:0): Direct-Access 4134MB (8467200 512 byte sectors)

For my scsi disk. Users like to see information in the boot probes, and
providing something they recognize adds a level of comfort to the
complex and confusing boot probes. It's just an idea. :)

Doug
-- 
***           Chief Operations Officer, DALnet IRC network          ***

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?36362011.1235F2E1>