Received: from [140.186.70.92] (port=33662 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Op0nW-0003Ul-JA for qemu-devel@nongnu.org; Fri, 27 Aug 2010 11:24:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Op0nR-0001Ex-Kt for qemu-devel@nongnu.org; Fri, 27 Aug 2010 11:24:54 -0400 Received: from demumfd002.nsn-inter.net ([93.183.12.31]:13956) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Op0nR-0001BV-8m for qemu-devel@nongnu.org; Fri, 27 Aug 2010 11:24:49 -0400 Message-ID: <4C77D8B8.8080104@nsn.com> Date: Fri, 27 Aug 2010 17:24:40 +0200 From: Bernhard Kohl MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/4] scsi-disk: fix the mode data header returned by the MODE SENSE(10) command References: <1280763089-11829-1-git-send-email-bernhard.kohl@nsn.com> <1280763089-11829-3-git-send-email-bernhard.kohl@nsn.com> <4C696F25.707@redhat.com> In-Reply-To: <4C696F25.707@redhat.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ext Kevin Wolf Cc: qemu-devel@nongnu.org Am 16.08.2010 19:02, schrieb ext Kevin Wolf: > > > + if (bdrv_get_type_hint(s->bs) == BDRV_TYPE_CDROM || > > + bdrv_is_read_only(s->bs)) { > > This looks like a mismerge. The check for CDROMs was removed when they > became read-only by definition. Please don't reintroduce it. > OK, I will remove that check in v2. > > > + if (req->cmd.buf[0] == MODE_SENSE) > > + outbuf[3] = 8; /* Block descriptor length */ > > + else /* MODE_SENSE_10 */ > > + outbuf[7] = 8; /* Block descriptor length */ > > Please add curly braces here (see CODING_STYLE). > OK, I will add curly braces in v2. Bernhard