From owner-freebsd-scsi Mon Sep 7 20:29:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA22424 for freebsd-scsi-outgoing; Mon, 7 Sep 1998 20:29:35 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA22419 for ; Mon, 7 Sep 1998 20:29:33 -0700 (PDT) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.1/8.8.5) id VAA19256; Mon, 7 Sep 1998 21:29:24 -0600 (MDT) From: "Kenneth D. Merry" Message-Id: <199809080329.VAA19256@panzer.plutotech.com> Subject: Re: right return message for CAM sa driver? In-Reply-To: from Matthew Jacob at "Sep 7, 98 04:55:17 pm" To: mjacob@feral.com Date: Mon, 7 Sep 1998 21:29:24 -0600 (MDT) Cc: scsi@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28s (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Matthew Jacob wrote... > > A mt rewind on a device that's there but with no tape returns: > > quarm.feral.com > root mt -f /dev/rsa0 rewind > mt: /dev/rsa0: rewind: Device not configured > > > Is that really the right errno we want? It's set in scsi_all.c: /* DTL WRSOM */{SST(0x3A, 0x00, SS_NEDEF|ENXIO, "Medium not present") }, /* DT WR OM */{SST(0x3A, 0x01, SS_NEDEF|ENXIO, "Medium not present - tray closed") }, /* DT WR OM */{SST(0x3A, 0x02, SS_NEDEF|ENXIO, "Medium not present - tray open") }, What would you suggest as an alternative? I'm certainly open to suggestions. ENXIO gets returned for basically any type of medium not present error. If you want something just for tape drives, we can easily stick a tape-drive-only error code in the sense code quirk table. [ ... ] > quarm.feral.com > dmesg | tail -30 > (sa0:isp0:0:4:0): REWIND. CDB: 1 0 0 0 0 0 > (sa0:isp0:0:4:0): NOT READY asc:3a,0 > (sa0:isp0:0:4:0): Medium not present > (sa0:isp0:0:4:0): REWIND. CDB: 1 0 0 0 0 0 > (sa0:isp0:0:4:0): NOT READY asc:3a,0 > (sa0:isp0:0:4:0): Medium not present [ ... ] Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message