summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_ch.c
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1998-12-12 23:52:46 +0000
committergibbs <gibbs@FreeBSD.org>1998-12-12 23:52:46 +0000
commit2b1b55401189f2d9aa79d72c43df5dbc776ae56b (patch)
treee38315b57b3cb56715db92d1350939eacb940661 /sys/cam/scsi/scsi_ch.c
parent1f652fa610ca3388ed53f623e9211c2d102fba77 (diff)
downloadFreeBSD-src-2b1b55401189f2d9aa79d72c43df5dbc776ae56b.zip
FreeBSD-src-2b1b55401189f2d9aa79d72c43df5dbc776ae56b.tar.gz
Return ENODEV instead of EINVAL when a particular exchange or move
operation exceeds the capabilities of the changer device.
Diffstat (limited to 'sys/cam/scsi/scsi_ch.c')
-rw-r--r--sys/cam/scsi/scsi_ch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cam/scsi/scsi_ch.c b/sys/cam/scsi/scsi_ch.c
index 2d0290e..346bdbf 100644
--- a/sys/cam/scsi/scsi_ch.c
+++ b/sys/cam/scsi/scsi_ch.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scsi_ch.c,v 1.6 1998/11/22 23:44:47 ken Exp $
+ * $Id: scsi_ch.c,v 1.7 1998/12/04 22:54:43 archie Exp $
*/
/*
* Derived from the NetBSD SCSI changer driver.
@@ -851,7 +851,7 @@ chmove(struct cam_periph *periph, struct changer_move *cm)
* Check the request against the changer's capabilities.
*/
if ((softc->sc_movemask[cm->cm_fromtype] & (1 << cm->cm_totype)) == 0)
- return (EINVAL);
+ return (ENODEV);
/*
* Calculate the source and destination elements.
@@ -909,7 +909,7 @@ chexchange(struct cam_periph *periph, struct changer_exchange *ce)
(1 << ce->ce_fdsttype)) == 0) ||
((softc->sc_exchangemask[ce->ce_fdsttype] &
(1 << ce->ce_sdsttype)) == 0))
- return (EINVAL);
+ return (ENODEV);
/*
* Calculate the source and destination elements.
OpenPOWER on IntegriCloud