Received: from [140.186.70.92] (port=42897 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVoVb-0002H8-F7 for qemu-devel@nongnu.org; Mon, 05 Jul 2010 12:27:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OVoVa-0002Un-3e for qemu-devel@nongnu.org; Mon, 05 Jul 2010 12:27:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63503) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVoVZ-0002UR-TG for qemu-devel@nongnu.org; Mon, 05 Jul 2010 12:27:02 -0400 From: Markus Armbruster References: <1277898942-6501-1-git-send-email-armbru@redhat.com> <1277898942-6501-5-git-send-email-armbru@redhat.com> <4C31FCB2.8050207@redhat.com> Date: Mon, 05 Jul 2010 18:26:53 +0200 In-Reply-To: <4C31FCB2.8050207@redhat.com> (Kevin Wolf's message of "Mon, 05 Jul 2010 17:39:30 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 04/11] scsi: Reject unimplemented error actions List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: hch@lst.de, qemu-devel@nongnu.org, kraxel@redhat.com Kevin Wolf writes: > Am 30.06.2010 13:55, schrieb Markus Armbruster: >> drive_init() doesn't permit rerror for if=scsi, but that's worthless: >> we get it via if=none and -device. >> >> Moreover, scsi-generic doesn't support werror. Since drive_init() >> doesn't catch that, option werror was silently ignored even with >> if=scsi. >> >> Signed-off-by: Markus Armbruster > > It's still not entirely right, of course. You can explicitly request > werror=enospc and the VM will start successfully, but silently ignore > ENOSPC errors. Yes, I took a shortcut here :) Obvious fix is a separate default action. Drivers supporting werror interpret it as "enospc". Drivers not supporting werror interpret it as "do nothing", and reject any other option. Similar for rerror. > Anyway, it's better than before.