Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Sep 1998 21:29:24 -0600 (MDT)
From:      "Kenneth D. Merry" <ken@plutotech.com>
To:        mjacob@feral.com
Cc:        scsi@FreeBSD.ORG
Subject:   Re: right return message for CAM sa driver?
Message-ID:  <199809080329.VAA19256@panzer.plutotech.com>
In-Reply-To: <Pine.LNX.4.02.9809071653400.3993-100000@feral-gw> from Matthew Jacob at "Sep 7, 98 04:55:17 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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



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