Received: from eggs.gnu.org ([2001:4830:134:3::10]:58354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W87SB-0002E7-Mu for qemu-devel@nongnu.org; Tue, 28 Jan 2014 07:07:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W87S3-00071B-9s for qemu-devel@nongnu.org; Tue, 28 Jan 2014 07:07:43 -0500 Received: from mail-ee0-x234.google.com ([2a00:1450:4013:c00::234]:55083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W87S3-000713-3Y for qemu-devel@nongnu.org; Tue, 28 Jan 2014 07:07:35 -0500 Received: by mail-ee0-f52.google.com with SMTP id e53so182410eek.39 for ; Tue, 28 Jan 2014 04:07:34 -0800 (PST) Date: Tue, 28 Jan 2014 13:07:30 +0100 From: Stefan Hajnoczi Message-ID: <20140128120730.GE16709@stefanha-thinkpad.redhat.com> References: <1390828136-1720-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1390828136-1720-1-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH] scsi: report thin provisioning errors with werror=report List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On Mon, Jan 27, 2014 at 02:08:56PM +0100, Paolo Bonzini wrote: > SCSI defines a status code for when a thin-provisioned LUNs would > exceed the allocated space, map ENOSPC to it. > > Signed-off-by: Paolo Bonzini > --- > hw/scsi/scsi-bus.c | 5 +++++ > hw/scsi/scsi-disk.c | 3 +++ > include/hw/scsi/scsi.h | 2 ++ > 3 files changed, 10 insertions(+) The SBC confirms that SPACE ALLOCATION WRITE PROTECT is used when there is no space. Reviewed-by: Stefan Hajnoczi