Permalink
Browse files

Solaris 11.1 st mode select

HP LTO Ultrium tape drives
technical reference manual
Volume 3: Host interface guide
LTO 4 drives
Edition 1, June 2007

Mode Select 15/55, page 94:
PF Page Format
0 The MODE SELECT parameter data is not SCSI-2 mode page compatible. Only
the parameter header and block descriptor may be sent.
1 The parameter data is SCSI-2 mode-page compatible.

Signed-off-by: Mark Harvey <markh794@gmail.com>
  • Loading branch information...
1 parent 78f9c2f commit 48c3156fa251c3e6cfa2382ffe5cd5ef88347621 David Major committed with Mar 27, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 usr/ssc.c
View
@@ -803,11 +803,6 @@ uint8_t ssc_mode_select(struct scsi_cmd *cmd)
MHVTL_DBG(1, "MODE SELECT (%ld) **", (long)cmd->dbuf_p->serialNo);
MHVTL_DBG(1, " Save Pages: %d, Page Format: %d", save_pages, page_format);
- if (!page_format) { /* Page Format: 1 - SPC, 0 - vendor uniq */
- mkSenseBuf(ILLEGAL_REQUEST, E_INVALID_FIELD_IN_CDB, sam_stat);
- return SAM_STAT_CHECK_CONDITION;
- }
-
switch (cmd->scb[0]) {
case MODE_SELECT:
block_descriptor_sz = buf[3];
@@ -844,6 +839,11 @@ uint8_t ssc_mode_select(struct scsi_cmd *cmd)
return SAM_STAT_GOOD;
}
+ if (!page_format) { /* Page Format: 1 - SPC, 0 - vendor uniq */
+ mkSenseBuf(ILLEGAL_REQUEST, E_INVALID_FIELD_IN_CDB, sam_stat);
+ return SAM_STAT_CHECK_CONDITION;
+ }
+
#ifdef MHVTL_DEBUG
if (debug)
hex_dump(buf, cmd->dbuf_p->sz);

0 comments on commit 48c3156

Please sign in to comment.