From joelh@gnu.org  Sat Nov  7 20:54:45 1998
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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <detlev!joelh@mail.camalott.com>
Reply-To: joelh@gnu.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: fdisk uses obsolete "sd0" instead of "da0" [patch]
X-Send-Pr-Version: 3.2

>Number:         8597
>Category:       i386
>Synopsis:       fdisk uses obsolete "sd0" instead of "da0" [patch]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov  7 21:00:02 PST 1998
>Closed-Date:    Tue Dec 1 10:11:38 PST 1998
>Last-Modified:  Tue Dec  1 10:13:18 PST 1998
>Originator:     Joel Ray Holveck
>Release:        FreeBSD 3.0-BETA i386
>Organization:
None
>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 -----

>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: detlev!joelh@mail.camalott.com, FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  Subject: Re: i386/8597: fdisk uses obsolete "sd0" instead of "da0" [patch]
Date: Sun, 8 Nov 1998 17:51:15 +1100

 >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
 
 fdisk should abort if the disk is not specified on the command line.
 
 Bruce
State-Changed-From-To: open->closed 
State-Changed-By: rnordier 
State-Changed-When: Tue Dec 1 10:11:38 PST 1998 
State-Changed-Why:  
Fixed by joerg: fdisk.c 1.27 fdisk.8 1.11 
>Unformatted:
