From nobody  Wed Sep 16 01:40:52 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id BAA03156;
          Wed, 16 Sep 1998 01:40:52 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199809160840.BAA03156@hub.freebsd.org>
Date: Wed, 16 Sep 1998 01:40:52 -0700 (PDT)
From: ben@ben.com
To: freebsd-gnats-submit@freebsd.org
Subject: ccdconfig gives confusing error when given nonexistant disks
X-Send-Pr-Version: www-1.0

>Number:         7946
>Category:       bin
>Synopsis:       ccdconfig gives confusing error when given nonexistant disks
>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:   Wed Sep 16 01:50:00 PDT 1998
>Closed-Date:    Thu Jul 15 11:03:58 GMT 2004
>Last-Modified:  Thu Jul 15 11:03:58 GMT 2004
>Originator:     Ben Jackson
>Release:        2.2.7
>Organization:
>Environment:
FreeBSD pulsar.ben.com 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Sun Sep 13 04:49:04 PDT 1998     bj@pulsar.ben.com:/usr/src/sys/compile/PULSAR  i386

>Description:
ccdconfig gets ENXIO for BOTH unconfigured ccd device AND unconfigured
disks.  The errno and the way it is printed leads you to believe that
the ccd pseudo isn't available when actually it's the disk you're trying
to put in the ccd (I had name slippage when moving scsi disks around).
>How-To-Repeat:
# # ccd4 is MAKEDEVd but not in kernel:
# ccdconfig ccd4 128 0 /dev/sd3a
ccdconfig: open: /dev/ccd4c: Device not configured
# # ccd3 IS configured by sd3 is not
# ccdconfig ccd3 128 0 /dev/sd3a
ccdconfig: ioctl (CCDIOCSET): /dev/ccd3c: Device not configured

>Fix:
ccdconfig.c do_io should distinguish between the open fail and the ioctl
fail with ENXIO and make it clear what it applies to.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->asami 
Responsible-Changed-By: dirk 
Responsible-Changed-When: Fri Nov 10 05:59:26 PST 2000 
Responsible-Changed-Why:  
Over to Mr. ccd. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=7946 
Responsible-Changed-From-To: asami->freebsd-bugs 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 12 22:30:43 PDT 2003 
Responsible-Changed-Why:  
Asami is no longer active 

http://www.freebsd.org/cgi/query-pr.cgi?pr=7946 
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Fri Oct 10 23:49:32 PDT 2003 
State-Changed-Why:  
Is this still an issue with more recent versions of FreeBSD? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=7946 
State-Changed-From-To: feedback->closed 
State-Changed-By: johan 
State-Changed-When: Thu Jul 15 11:03:05 GMT 2004 
State-Changed-Why:  
Feedback asked for in October 2003, still no reply. 
Feedback timed out.	 

http://www.freebsd.org/cgi/query-pr.cgi?pr=7946 
>Unformatted:
