From owner-freebsd-bugs Wed Sep 16 01:50:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA04397 for freebsd-bugs-outgoing; Wed, 16 Sep 1998 01:50:21 -0700 (PDT) (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 BAA04386 for ; Wed, 16 Sep 1998 01:50:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id BAA23175; Wed, 16 Sep 1998 01:50:00 -0700 (PDT) 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 X-Send-Pr-Version: www-1.0 Subject: misc/7946: ccdconfig gives confusing error when given nonexistant disks Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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