From owner-freebsd-bugs Sat Nov 7 21:00:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA28652 for freebsd-bugs-outgoing; Sat, 7 Nov 1998 21:00:03 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA28627 for ; Sat, 7 Nov 1998 21:00:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id VAA12370; Sat, 7 Nov 1998 21:00:03 -0800 (PST) Received: from mail.camalott.com (mail.camalott.com [208.203.140.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA27641 for ; Sat, 7 Nov 1998 20:54:44 -0800 (PST) (envelope-from joelh@gnu.org) Received: from detlev.UUCP (165.camalott.com [208.203.140.165]) by mail.camalott.com (8.8.7/8.8.7) with ESMTP id WAA04981 for ; Sat, 7 Nov 1998 22:54:57 -0600 Received: (from joelh@localhost) by detlev.UUCP (8.9.1/8.9.1) id WAA29336; Sat, 7 Nov 1998 22:54:29 -0600 (CST) (envelope-from joelh) Message-Id: <199811080454.WAA29336@detlev.UUCP> Date: Sat, 7 Nov 1998 22:54:29 -0600 (CST) From: Joel Ray Holveck Reply-To: joelh@gnu.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: i386/8597: fdisk uses obsolete "sd0" instead of "da0" [patch] Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8597 >Category: i386 >Synopsis: fdisk uses obsolete "sd0" instead of "da0" [patch] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 7 21:00:02 PST 1998 >Last-Modified: >Originator: Joel Ray Holveck >Organization: None >Release: FreeBSD 3.0-BETA i386 >Environment: Any CAMified -current i386 system >Description: Unless a disk is specified on the command line, fdisk tries to access wd0, then sd0, then od0. sd0 is an obsolete name and may confuse users. Additionally, on a newly created -current system, it appears that the sd0 device does not exist. (This has only been done by examining MAKEDEV, not experimentally.) Unless there is a reason to keep this default, I propose it be changed to da0. >How-To-Repeat: On a system with no wd0, run fdisk with no parameters. The message ******* Working on device /dev/rsd0 ******* will be emitted. >Fix: ----- cut here ----- *** fdisk.c.orig Sat Nov 7 22:44:35 1998 --- fdisk.c Sat Nov 7 22:45:31 1998 *************** *** 68,72 **** const char *disks[] = { ! "/dev/rwd0", "/dev/rsd0", "/dev/rod0", 0 }; --- 68,72 ---- const char *disks[] = { ! "/dev/rwd0", "/dev/rda0", "/dev/rod0", 0 }; ----- cut here ----- >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message