From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0FjV-0005yN-2S for qemu-devel@nongnu.org; Wed, 03 Jun 2015 16:57:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0FjU-0003QK-At for qemu-devel@nongnu.org; Wed, 03 Jun 2015 16:57:53 -0400 Message-ID: <556F6A4A.4000808@redhat.com> Date: Wed, 03 Jun 2015 14:57:46 -0600 From: Eric Blake MIME-Version: 1.0 References: <1433360659-1915-1-git-send-email-mreitz@redhat.com> <1433360659-1915-19-git-send-email-mreitz@redhat.com> In-Reply-To: <1433360659-1915-19-git-send-email-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="I9hb1rhu8U6Iwpj8bEGROtRuGxJ4jjpWl" Subject: Re: [Qemu-devel] [PATCH v3 18/38] block: Fail requests to empty BlockBackend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , John Snow , qemu-devel@nongnu.org, Stefan Hajnoczi , Markus Armbruster This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --I9hb1rhu8U6Iwpj8bEGROtRuGxJ4jjpWl Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 06/03/2015 01:43 PM, Max Reitz wrote: > If there is no BlockDriverState in a BlockBackend or if the tray of the= > guest device is open, fail all requests (where that is possible) with > -ENOMEDIUM. >=20 > The reason the status of the guest device is taken into account is > because once the guest device's tray is opened, any request on the same= > BlockBackend as the guest uses should fail. If the BDS tree is supposed= > to be usable even after ejecting it from the guest, a different > BlockBackend must be used. >=20 > Signed-off-by: Max Reitz > --- > block/block-backend.c | 55 +++++++++++++++++++++++++++++++++++++++++++= +++++++- > 1 file changed, 54 insertions(+), 1 deletion(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --I9hb1rhu8U6Iwpj8bEGROtRuGxJ4jjpWl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVb2pKAAoJEKeha0olJ0NqvKwH/0geYr+ablGxvp0H4trVx1hp ssoOnRlXvSm4JCX/J/60WDR51KDoPas/mw8OQDMlEhIkrI9D+G8nRoNhqkoh2uf3 HHli3nyc0WLlBtrDgEbRSftNQUHpDL110T1v/8jwKtAHpg6b3pg15tWGZjIlWftV BvxO81fwl+cWCVd8wTlGnAyeH8auCnd4WiX5fcawfZCNAwtw7A0OhgVd84w9Nd+J ulk+HC38JsrOix6jcOl9wD17xdMkIh/cA7XiyJOc+FamN9Ho20UnWcrvZa6QQfoD jPWF2Ad4bNbCXnokjq0lHUJwqSTE0Esom3gsI0TWZQ/VWzE24h4dE6xHn5wgwYo= =4mjp -----END PGP SIGNATURE----- --I9hb1rhu8U6Iwpj8bEGROtRuGxJ4jjpWl--