Received: from [140.186.70.92] (port=39847 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJVmD-0000hU-6L for qemu-devel@nongnu.org; Fri, 19 Nov 2010 13:33:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJVmB-000661-VI for qemu-devel@nongnu.org; Fri, 19 Nov 2010 13:33:36 -0500 Received: from verein.lst.de ([213.95.11.210]:39332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJVmB-00065t-J3 for qemu-devel@nongnu.org; Fri, 19 Nov 2010 13:33:35 -0500 Date: Fri, 19 Nov 2010 19:33:32 +0100 From: Christoph Hellwig Subject: Re: [Qemu-devel] [PATCH 03/16] scsi: Return SAM status codes Message-ID: <20101119183332.GD32461@lst.de> References: <20101118144632.390C5F90AB@ochil.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101118144632.390C5F90AB@ochil.suse.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hannes Reinecke Cc: stefanha@gmail.com, qemu-devel@nongnu.org, nab@linux-iscsi.org, kraxel@redhat.com On Thu, Nov 18, 2010 at 03:46:32PM +0100, Hannes Reinecke wrote: > > The SCSI emulation is supposed to return status codes as defined > by SAM, not the linux ones which are shifted by one. When just looking at the patch the description is rather confusing as all places touched were already returning the correct value by doing the opencoded shift. Only a little grepping reveals that there are lots of other incorrect uses, too. You might consider mentioning this in the patch description.