- Fix for memory allocation for scst_user and locally handled commands
[mirror/scst/.git] / scst / src / scst_cdbprobe.h
index 39034c1..eae7103 100644 (file)
@@ -122,7 +122,7 @@ static const struct scst_sdbops scst_scsi_op_table[] = {
        {0x02, "VVVVVV  V       ", "REQUEST BLOCK ADDR",
         SCST_DATA_NONE, SCST_SMALL_TIMEOUT, 0, get_trans_len_none},
        {0x03, "MMMMMMMMMMMMMMMM", "REQUEST SENSE",
-        SCST_DATA_READ, SCST_SMALL_TIMEOUT|SCST_SKIP_UA|SCST_LOCAL_EXEC_NEEDED,
+        SCST_DATA_READ, SCST_SMALL_TIMEOUT|SCST_SKIP_UA|SCST_LOCAL_CMD,
         4, get_trans_len_1},
        {0x04, "M    O O        ", "FORMAT UNIT",
         SCST_DATA_WRITE, SCST_LONG_TIMEOUT|SCST_UNKNOWN_LENGTH|SCST_WRITE_MEDIUM,
@@ -190,12 +190,12 @@ static const struct scst_sdbops scst_scsi_op_table[] = {
        {0x14, "VOOVVV          ", "RECOVER BUFFERED DATA",
         SCST_DATA_READ, SCST_TRANSFER_LEN_TYPE_FIXED, 2, get_trans_len_3},
        {0x15, "OMOOOOOOOOOOOOOO", "MODE SELECT(6)",
-        SCST_DATA_WRITE, SCST_LOCAL_EXEC_NEEDED, 4, get_trans_len_1},
+        SCST_DATA_WRITE, SCST_LOCAL_CMD, 4, get_trans_len_1},
        {0x16, "MMMMMMMMMMMMMMMM", "RESERVE",
-        SCST_DATA_NONE, SCST_SMALL_TIMEOUT|SCST_LOCAL_EXEC_NEEDED,
+        SCST_DATA_NONE, SCST_SMALL_TIMEOUT|SCST_LOCAL_CMD,
         0, get_trans_len_none},
        {0x17, "MMMMMMMMMMMMMMMM", "RELEASE",
-        SCST_DATA_NONE, SCST_SMALL_TIMEOUT|SCST_LOCAL_EXEC_NEEDED,
+        SCST_DATA_NONE, SCST_SMALL_TIMEOUT|SCST_LOCAL_CMD,
         0, get_trans_len_none},
        {0x18, "OOOOOOOO        ", "COPY",
         SCST_DATA_WRITE, SCST_LONG_TIMEOUT, 2, get_trans_len_3},
@@ -352,12 +352,12 @@ static const struct scst_sdbops scst_scsi_op_table[] = {
        {0x54, "     O          ", "SEND OPC INFORMATION",
         SCST_DATA_WRITE, FLAG_NONE, 7, get_trans_len_2},
        {0x55, "OOOOOOOOOOOOOOOO", "MODE SELECT(10)",
-        SCST_DATA_WRITE, SCST_LOCAL_EXEC_NEEDED, 7, get_trans_len_2},
+        SCST_DATA_WRITE, SCST_LOCAL_CMD, 7, get_trans_len_2},
        {0x56, "OOOOOOOOOOOOOOOO", "RESERVE(10)",
-        SCST_DATA_NONE, SCST_SMALL_TIMEOUT|SCST_LOCAL_EXEC_NEEDED,
+        SCST_DATA_NONE, SCST_SMALL_TIMEOUT|SCST_LOCAL_CMD,
         0, get_trans_len_none},
        {0x57, "OOOOOOOOOOOOOOOO", "RELEASE(10)",
-        SCST_DATA_NONE, SCST_SMALL_TIMEOUT|SCST_LOCAL_EXEC_NEEDED,
+        SCST_DATA_NONE, SCST_SMALL_TIMEOUT|SCST_LOCAL_CMD,
         0, get_trans_len_none},
        {0x58, "     O          ", "REPAIR TRACK",
         SCST_DATA_NONE, SCST_WRITE_MEDIUM, 0, get_trans_len_none},
@@ -431,7 +431,7 @@ static const struct scst_sdbops scst_scsi_op_table[] = {
        /* 12-bytes length CDB */
        {0xA0, "VVVVVVVVVV  M   ", "REPORT LUNS",
         SCST_DATA_READ, SCST_SMALL_TIMEOUT|SCST_IMPLICIT_HQ|SCST_SKIP_UA|
-                        SCST_LOCAL_CMD|SCST_LOCAL_EXEC_NEEDED,
+                        SCST_FULLY_LOCAL_CMD|SCST_LOCAL_CMD,
         6, get_trans_len_4},
        {0xA1, "     O          ", "BLANK",
         SCST_DATA_NONE, SCST_LONG_TIMEOUT, 0, get_trans_len_none},