From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKvEY-0005jD-NR for qemu-devel@nongnu.org; Mon, 09 Feb 2015 15:47:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKvEV-0003du-HY for qemu-devel@nongnu.org; Mon, 09 Feb 2015 15:47:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKvEV-0003bs-8e for qemu-devel@nongnu.org; Mon, 09 Feb 2015 15:47:03 -0500 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 t19Kl2rd023744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 9 Feb 2015 15:47:02 -0500 Message-ID: <54D91CC4.1090602@redhat.com> Date: Mon, 09 Feb 2015 13:47:00 -0700 From: Eric Blake MIME-Version: 1.0 References: <1423501897-30410-1-git-send-email-mreitz@redhat.com> <1423501897-30410-18-git-send-email-mreitz@redhat.com> In-Reply-To: <1423501897-30410-18-git-send-email-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rR6Oa0o3MN3mswWS5SRj9GW4gnBneoIa2" Subject: Re: [Qemu-devel] [PATCH v2 17/37] block: Prepare remaining BB functions for NULL BDS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: Kevin Wolf , John Snow , Markus Armbruster , Stefan Hajnoczi This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rR6Oa0o3MN3mswWS5SRj9GW4gnBneoIa2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/09/2015 10:11 AM, Max Reitz wrote: > There are several BlockBackend functions which, in theory, cannot fail.= > This patch makes them cope with the BlockDriverState pointer being NULL= > by making them fall back to some default action like ignoring the value= > in setters and returning the default in getters. >=20 > Signed-off-by: Max Reitz > --- > block/block-backend.c | 76 ++++++++++++++++++++++++++++++++++++++++---= -------- > 1 file changed, 60 insertions(+), 16 deletions(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --rR6Oa0o3MN3mswWS5SRj9GW4gnBneoIa2 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 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJU2RzEAAoJEKeha0olJ0Nq7rIH/02xCSLlsxQlPpAzavsfISy+ YvruEpbiJocMo7LG1kD1J2R8HEZgfSVc8ZNkSWd9amedSHeIi2crJD8xBtn1c22r x0I/Gjk+dUWP1yaERghiuxrZGVMEuSUCSosjp1T9dbghO08f1VstmmG6VoEAmTqC xfvNgFHp1338aRt2bf4TtSb2LbBxUrfZ/jv22IgWM1rMKkO87/Pra69Wk9qIHMzt YJWs+6D343Lpw80Z1tE74WZsWPUu5YFvouGi9trdEJwjSWYmn7FB+cwoqWXCvmLG YuykT53ullBOGq1vv997kjikoD19L1lDWsDedAe+u4gbI3erj4KfUe8niPelrkM= =ysOG -----END PGP SIGNATURE----- --rR6Oa0o3MN3mswWS5SRj9GW4gnBneoIa2--