From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNSrW-0000KV-Ga for qemu-devel@nongnu.org; Fri, 29 Aug 2014 16:33:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNSrP-0002ro-QQ for qemu-devel@nongnu.org; Fri, 29 Aug 2014 16:33:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNSrP-0002rh-Ht for qemu-devel@nongnu.org; Fri, 29 Aug 2014 16:33:27 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7TKXQUG018057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 29 Aug 2014 16:33:27 -0400 Message-ID: <5400E396.8030302@redhat.com> Date: Fri, 29 Aug 2014 14:33:26 -0600 From: Eric Blake MIME-Version: 1.0 References: <20140829160727.69f66ecd@redhat.com> In-Reply-To: <20140829160727.69f66ecd@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MBnB5GGFU1DIPELlGMBWXdua64IkqONbq" Subject: Re: [Qemu-devel] [PATCH] block: extend BLOCK_IO_ERROR event with nospace indicator List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino , qemu-devel@nongnu.org Cc: kwolf@redhat.com, fromani@redhat.com, armbru@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MBnB5GGFU1DIPELlGMBWXdua64IkqONbq Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/29/2014 02:07 PM, Luiz Capitulino wrote: > Management software, such as RHEV's vdsm, want to be able to allocate > disk space on demand. The basic use case is to start a VM with a small > disk and then the disk is enlarged when QEMU hits a ENOSPC condition. >=20 > To this end, the management software has to be notified when QEMU > encounters ENOSPC. The solution implemented by this commit is simple: > it extends the BLOCK_IO_ERROR with a 'nospace' key, which is true > when QEMU is stopped due to ENOSPC. >=20 > Note that support for querying this event is already present in > query-block by means of the 'io-status' key. Also, the new 'nospace' > BLOCK_IO_ERROR field shares the same semantics with 'io-status', > which basically means that werror=3D has to be set to either > 'stop' or 'enospc' to enable 'nospace'. >=20 > Finally, this commit also updates the 'io-status' key doc in the > schema with a list of supported device models. >=20 > Signed-off-by: Luiz Capitulino > --- Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --MBnB5GGFU1DIPELlGMBWXdua64IkqONbq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJUAOOWAAoJEKeha0olJ0Nq8pwH/2oJAPSMtj6oecpbAPFt31Lo yhoR+CXzOrm3GrpjU7ONVQtFl/zMKPQWysWjde3zRnQn8/bwo06IKyFHE8UFFfUg vi3Xcojs1Hf69CPmp49m+FI+qMDBgqy2mxBXg67LeVQOyYCip9Sw7l8LetxB28vQ w1BA3aAaFpykkFkBiltqvTRahK+g/wieSdrbHdBXAqswZYCtXCbc/QTPY0YrKdL5 CvR0V8SJZ9SAnqQPtlYW8JZfmE+LfXOet7fdjao93W9K4Nl6j4Z8L4AZoR+FWteb dESK1vGz8fmvr4Qy8jHS2dBLGhKT0ESAgE1C/dpesoSxBuo2gElKJ1vid8L/UoQ= =zVoB -----END PGP SIGNATURE----- --MBnB5GGFU1DIPELlGMBWXdua64IkqONbq--