From owner-freebsd-hackers Tue Oct 27 11:34:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA16660 for freebsd-hackers-outgoing; Tue, 27 Oct 1998 11:34:31 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA16655 for ; Tue, 27 Oct 1998 11:34:29 -0800 (PST) (envelope-from Studded@gorean.org) Received: from gorean.org (Studded@localhost [127.0.0.1]) by dt053nb4.san.rr.com (8.8.8/8.8.8) with ESMTP id LAA09120; Tue, 27 Oct 1998 11:33:38 -0800 (PST) (envelope-from Studded@gorean.org) Message-ID: <36362011.1235F2E1@gorean.org> Date: Tue, 27 Oct 1998 11:33:37 -0800 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.7-STABLE-1026 i386) X-Accept-Language: en MIME-Version: 1.0 To: Sebastian Lederer CC: freebsd-hackers@FreeBSD.ORG Subject: Re: Patch for src/sys/i386/isa/wd.c References: <3634F865.9755D2E7@bonn-online.com> <3635180F.BA6C6F92@gorean.org> <3636067E.7C2249A3@bonn-online.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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