Skip to content
Browse files

ssc: saved mode pages are not implemented

Adjust ssc_mode_select to reflect that saved mode pages are not implemented.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Mark Harvey <markh794@gmail.com>
  • Loading branch information...
1 parent 0fdb846 commit b84f4b5fdbcaaa6f6f1627c9c6a73b226d4e2eaa Sebastian Herbszt committed with Apr 3, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 usr/ssc.c
View
9 usr/ssc.c
@@ -836,10 +836,11 @@ uint8_t ssc_mode_select(struct scsi_cmd *cmd)
memcpy(modeBlockDescriptor, bdb, block_descriptor_sz);
}
- /* Ignore mode pages if 'save pages' bit not set */
- if (!save_pages) {
- MHVTL_DBG(1, " Save pages bit not set. Ignoring page data");
- return SAM_STAT_GOOD;
+ /* Saved mode pages are not implemented */
+ if (save_pages) {
+ mkSenseBuf(ILLEGAL_REQUEST, E_INVALID_FIELD_IN_CDB, sam_stat);
+ MHVTL_DBG(1, " Saved mode pages are not implemented.");
+ return SAM_STAT_CHECK_CONDITION;
}
if (!page_format) { /* Page Format: 1 - SPC, 0 - vendor uniq */

0 comments on commit b84f4b5

Please sign in to comment.
Something went wrong with that request. Please try again.