summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheshadri Vasudevan <Sheshadri.Vasudevan@Sun.COM>2009-12-08 08:44:19 +0530
committerSheshadri Vasudevan <Sheshadri.Vasudevan@Sun.COM>2009-12-08 08:44:19 +0530
commit9038fe482b62b8716036690f47ef5d0156443906 (patch)
treefaf0c0376935f35682b1cc2207d524dc397e2633
parent0d166b18feda26f6f45f5be1c0c8c5e539b90e6c (diff)
downloadillumos-gate-9038fe482b62b8716036690f47ef5d0156443906.tar.gz
6748376 DAT-72 mt -f /dev/rmt/x offline do only a rewind but sometime do not eject tape.
-rw-r--r--usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c b/usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
index a58893b80d..26eaad84c7 100644
--- a/usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
+++ b/usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c
@@ -3064,7 +3064,7 @@ scsa2usb_check_bulkonly_blacklist_attrs(scsa2usb_state_t *scsa2usbp,
return (SCSA2USB_JUST_ACCEPT);
- case SCMD_START_STOP:
+ case SCMD_START_STOP: /* SCMD_LOAD for sequential devices */
/*
* these devices don't have mechanics that spin the
* media up and down. So, it doesn't make much sense
@@ -3077,6 +3077,13 @@ scsa2usb_check_bulkonly_blacklist_attrs(scsa2usb_state_t *scsa2usbp,
return (SCSA2USB_JUST_ACCEPT);
+ } else if (inq->inq_dtype == DTYPE_SEQUENTIAL) {
+ /*
+ * In case of USB tape device, we need to send the
+ * command to the device to unload the media.
+ */
+ break;
+
} else if (cmd->cmd_pkt->pkt_cdbp[4] & LOEJECT) {
/*
* if the device is really a removable then