Fixes SAM violation, noticed by Sudhakar <ssudhakarp@gmail.com>. Plus, Windows requir...
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 8 Oct 2008 17:59:11 +0000 (17:59 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 8 Oct 2008 17:59:11 +0000 (17:59 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@520 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/dev_handlers/scst_vdisk.c
usr/fileio/common.c

index 4d9e3a1..a248c22 100644 (file)
@@ -1209,7 +1209,7 @@ static void vdisk_exec_inquiry(struct scst_cmd *cmd)
                }
 
                buf[2] = 4;             /* Device complies to this standard - SPC-2  */
-               buf[3] = 2;             /* data in format specified in this standard */
+               buf[3] = 0x12;          /* HiSup + data in format specified in SPC-2 */
                buf[4] = 31;            /* n - 4 = 35 - 4 = 31 for full 36 byte data */
                buf[6] = 0; buf[7] = 2; /* BQue = 0, CMDQUE = 1 commands queuing supported */
 
index 2cf7be0..50d0e9b 100644 (file)
@@ -944,7 +944,7 @@ static void exec_inquiry(struct vdisk_cmd *vcmd)
                }
 
                buf[2] = 4;             /* Device complies to this standard - SPC-2  */
-               buf[3] = 2;             /* data in format specified in this standard */
+               buf[3] = 0x12;          /* HiSup + data in format specified in SPC-2 */
                buf[4] = 31;            /* n - 4 = 35 - 4 = 31 for full 36 byte data */
                buf[6] = 0; buf[7] = 2; /* BQue = 0, CMDQUE = 1 commands queuing supported */