From efe33340f24dd1139ecb64ae6eb9ed2037e50d0f Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 17 Dec 2010 14:40:16 +0000 Subject: [PATCH] Merge of the trunk's r3121: Fix minor issue when generating INQUIRY responses for not existing LUNs. git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3122 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 7bb25fc31..b8f6199c6 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -950,6 +950,7 @@ go: memset(buf, 0, len); buf[0] = 0x7F; /* Peripheral qualifier 011b, Peripheral device type 1Fh */ + buf[4] = len - 4; TRACE_BUFFER("INQUIRY for not supported LUN set", buf, len);