From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2qOc-0005d2-E9 for qemu-devel@nongnu.org; Tue, 27 Oct 2009 14:03:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2qOY-0005bJ-Pj for qemu-devel@nongnu.org; Tue, 27 Oct 2009 14:03:50 -0400 Received: from [199.232.76.173] (port=49722 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2qOY-0005bB-KI for qemu-devel@nongnu.org; Tue, 27 Oct 2009 14:03:46 -0400 Received: from qw-out-1920.google.com ([74.125.92.146]:12604) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2qOY-00072o-5I for qemu-devel@nongnu.org; Tue, 27 Oct 2009 14:03:46 -0400 Received: by qw-out-1920.google.com with SMTP id 5so170757qwc.4 for ; Tue, 27 Oct 2009 11:03:45 -0700 (PDT) Message-ID: <4AE735FE.3080806@codemonkey.ws> Date: Tue, 27 Oct 2009 13:03:42 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] scsi-disk: Inquiry with allocation length of CDB < 36 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Artyom Tarasenko Cc: Blue Swirl , qemu-devel 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. Regards, Anthony Liguori