Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 1998 01:40:52 -0700 (PDT)
From:      ben@ben.com
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   misc/7946: ccdconfig gives confusing error when given nonexistant disks
Message-ID:  <199809160840.BAA03156@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         7946
>Category:       misc
>Synopsis:       ccdconfig gives confusing error when given nonexistant disks
>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:   Wed Sep 16 01:50:00 PDT 1998
>Last-Modified:
>Originator:     Ben Jackson
>Organization:
>Release:        2.2.7
>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.
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809160840.BAA03156>