From owner-freebsd-hackers Tue Oct 27 09:45:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA07844 for freebsd-hackers-outgoing; Tue, 27 Oct 1998 09:45:03 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from circe.bonn-online.com (circe.bonn-online.com [195.52.214.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA07837 for ; Tue, 27 Oct 1998 09:45:01 -0800 (PST) (envelope-from lederer@bonn-online.com) Received: from bonn-online.com ([194.162.223.162]) by circe.bonn-online.com (8.8.5/8.8.5) with ESMTP id SAA32369; Tue, 27 Oct 1998 18:44:04 +0100 Message-ID: <3636067E.7C2249A3@bonn-online.com> Date: Tue, 27 Oct 1998 18:44:30 +0100 From: Sebastian Lederer X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: Studded , freebsd-hackers@FreeBSD.ORG Subject: Re: Patch for src/sys/i386/isa/wd.c References: <3634F865.9755D2E7@bonn-online.com> <3635180F.BA6C6F92@gorean.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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