A small patch to fix command "Send cue sheet" transfer length.
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 15 Nov 2006 12:13:57 +0000 (12:13 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 15 Nov 2006 12:13:57 +0000 (12:13 +0000)
In mmc5, it is from cdb 6-8.

Signed-Off-By Ming Zhang

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@35 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/scst_lib.c

index a926e64..5411551 100644 (file)
@@ -1438,8 +1438,7 @@ int scst_get_cdb_info(const uint8_t *cdb_p, int dev_type,
                        info_p->transfer_len = (*(cdb_p + 8));
 
                        /* opcode = READ-WRITE UPDATED BLOCK */
                        info_p->transfer_len = (*(cdb_p + 8));
 
                        /* opcode = READ-WRITE UPDATED BLOCK */
-                       if ((ptr->ops == 0x5d) ||
-                           (ptr->ops == UPDATE_BLOCK) ||
+                       if ((ptr->ops == UPDATE_BLOCK) ||
                            (ptr->ops == WRITE_SAME)) {
                                /* the opcode always returns 1 block */
                                info_p->flags |= SCST_TRANSFER_LEN_TYPE_FIXED;
                            (ptr->ops == WRITE_SAME)) {
                                /* the opcode always returns 1 block */
                                info_p->flags |= SCST_TRANSFER_LEN_TYPE_FIXED;