From c6af50247dad9d2007da7ffc093303579ccb131d Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 1 Nov 2010 19:21:56 +0000 Subject: [PATCH] Merge of the trunk's r2567: Fixing PRs related flags for some commands as reported by Aleksey Kondratov git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2568 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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,