diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 17722342d..018baeed3 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -175,7 +175,8 @@ static const struct scst_sdbops scst_scsi_op_table[] = { SCST_EXCL_ACCESS_ALLOWED, 0, get_trans_len_none}, {0x01, " M ", "REWIND", - SCST_DATA_NONE, SCST_LONG_TIMEOUT, 0, get_trans_len_none}, + SCST_DATA_NONE, SCST_LONG_TIMEOUT|SCST_WRITE_EXCL_ALLOWED, + 0, get_trans_len_none}, {0x01, "O V OO OO ", "REZERO UNIT", SCST_DATA_NONE, SCST_WRITE_EXCL_ALLOWED, 0, get_trans_len_none}, @@ -376,7 +377,8 @@ static const struct scst_sdbops scst_scsi_op_table[] = { {0x35, "O OO O ", "SYNCHRONIZE CACHE", SCST_DATA_NONE, FLAG_NONE, 0, get_trans_len_none}, {0x36, "O OO O ", "LOCK UNLOCK CACHE", - SCST_DATA_NONE, FLAG_NONE, 0, get_trans_len_none}, + SCST_DATA_NONE, SCST_WRITE_EXCL_ALLOWED, + 0, get_trans_len_none}, {0x37, "O O ", "READ DEFECT DATA(10)", SCST_DATA_READ, SCST_WRITE_EXCL_ALLOWED, 8, get_trans_len_1}, @@ -533,7 +535,8 @@ static const struct scst_sdbops scst_scsi_op_table[] = { 10, get_trans_len_4}, {0x8F, "O OO O ", "VERIFY(16)", SCST_DATA_NONE, SCST_TRANSFER_LEN_TYPE_FIXED| - SCST_VERIFY_BYTCHK_MISMATCH_ALLOWED, + SCST_VERIFY_BYTCHK_MISMATCH_ALLOWED| + SCST_WRITE_EXCL_ALLOWED, 10, get_trans_len_4}, {0x90, "O OO O ", "PRE-FETCH(16)", SCST_DATA_NONE, SCST_WRITE_EXCL_ALLOWED,