From 6181fda851b2a91c0f41bc526ce00e603bbb611f Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 8 Oct 2008 17:59:11 +0000 Subject: [PATCH] Fixes SAM violation, noticed by Sudhakar . Plus, Windows requires it to automatically support LUNs >8, see http://support.microsoft.com/kb/310072/en-us git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@520 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 +- usr/fileio/common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 4d9e3a141..a248c22ae 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -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 */ diff --git a/usr/fileio/common.c b/usr/fileio/common.c index 2cf7be0b8..50d0e9bdf 100644 --- a/usr/fileio/common.c +++ b/usr/fileio/common.c @@ -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 */