From 5412c63410e72581079490d6544280534e8cc882 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 13 Nov 2010 09:27:23 +0000 Subject: [PATCH] scst: fake_aca support does now work (merged revisions 2677,2680 and 2681 from the ibmvstgt-port branch). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2682 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 2993a8b84..0e2b8a531 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -1632,6 +1632,8 @@ static void vdisk_exec_inquiry(struct scst_cmd *cmd) buf[2] = 5; /* Device complies to SPC-3 */ buf[3] = 0x12; /* HiSup + data in format specified in SPC */ + if (cmd->tgtt->fake_aca) + buf[3] |= 0x20; buf[4] = 31;/* n - 4 = 35 - 4 = 31 for full 36 byte data */ buf[6] = 1; /* MultiP 1 */ buf[7] = 2; /* CMDQUE 1, BQue 0 => commands queuing supported */