From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2qUH-0008GC-AX for qemu-devel@nongnu.org; Tue, 27 Oct 2009 14:09:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2qUC-0008D4-ED for qemu-devel@nongnu.org; Tue, 27 Oct 2009 14:09:40 -0400 Received: from [199.232.76.173] (port=56227 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2qUC-0008Cy-62 for qemu-devel@nongnu.org; Tue, 27 Oct 2009 14:09:36 -0400 Received: from mail-yx0-f188.google.com ([209.85.210.188]:62595) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2qUB-0007p7-TQ for qemu-devel@nongnu.org; Tue, 27 Oct 2009 14:09:36 -0400 Received: by yxe26 with SMTP id 26so358618yxe.4 for ; Tue, 27 Oct 2009 11:09:35 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4AE735FE.3080806@codemonkey.ws> References: <4AE735FE.3080806@codemonkey.ws> From: Artyom Tarasenko Date: Tue, 27 Oct 2009 19:09:15 +0100 Message-ID: Subject: Re: [Qemu-devel] [PATCH] scsi-disk: Inquiry with allocation length of CDB < 36 Content-Type: text/plain; charset=ISO-8859-1 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , qemu-devel 2009/10/27 Anthony Liguori : > Artyom Tarasenko wrote: >> >> According to SCSI-2 specification, >> http://ldkelley.com/SCSI2/SCSI2/SCSI2/SCSI2-08.html#8.2.5 , >> "if the allocation length of the command descriptor block (CDB) is too >> small to transfer >> all of the parameters, the additional length shall not be adjusted to >> reflect the truncation." >> The 36 mandatory bytes of response are written to outbuf, and then >> only the length requested >> in CDB is transferred. >> >> Signed-off-by: Artyom Tarasenko >> > > This patch is whitespace damaged. Also the attached one? I tried to keep the original identation: used tabs where the tabs originally were.