Skip to content

Commit

Permalink
Solaris 11.1 st mode select
Browse files Browse the repository at this point in the history
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
David Major authored and markh794 committed Mar 28, 2013
1 parent 78f9c2f commit 48c3156
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions usr/ssc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 48c3156

Please sign in to comment.