From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxVor-0003mg-Q1 for qemu-devel@nongnu.org; Thu, 19 Jun 2014 02:27:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxVoj-00052a-LL for qemu-devel@nongnu.org; Thu, 19 Jun 2014 02:27:33 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:41796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxVoj-00051w-EH for qemu-devel@nongnu.org; Thu, 19 Jun 2014 02:27:25 -0400 Received: by mail-wi0-f171.google.com with SMTP id n15so8737491wiw.16 for ; Wed, 18 Jun 2014 23:27:24 -0700 (PDT) Date: Thu, 19 Jun 2014 14:27:15 +0800 From: Stefan Hajnoczi Message-ID: <20140619062715.GI21236@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VkVuOCYP9O7H3CXI" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v6 for 2.1 02/10] block: add helper function to determine if a BDS is in a chain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Cody Cc: kwolf@redhat.com, benoit.canet@irqsave.net, pkrempa@redhat.com, famz@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com --VkVuOCYP9O7H3CXI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 17, 2014 at 05:53:50PM -0400, Jeff Cody wrote: > This is a small helper function, to determine if 'base' is in the > chain of BlockDriverState 'top'. It returns true if it is in the chain, > and false otherwise. >=20 > If either argument is NULL, it will also return false. >=20 > Reviewed-by: Benoit Canet > Reviewed-by: Eric Blake > Signed-off-by: Jeff Cody > --- > block.c | 11 +++++++++++ > include/block/block.h | 1 + > 2 files changed, 12 insertions(+) Reviewed-by: Stefan Hajnoczi --VkVuOCYP9O7H3CXI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJTooLDAAoJEJykq7OBq3PIyk8IALQikNzFlyV/9lnM9vn6VelE ROALuryW0tYp/ZHhHzB+MY3Yi/PX6uxjVSoNNI/aryfi1TNqxkJMj4uboGXGkK1a Q/dFhkr+H6wWzZYVkvRK1MtoSRQdK3wMAWMYnbp2Lo3u9kqINWhpK6Hsf/ArGy6V xh1mTSU9BYsZ3PnWymvS4Xr/UoLe/sYg2TpE9E7YTlA+I6e5pOcLRFDBqbhejZEt l6IuUdaglWZpeGrXphjLLUAH87lY7WSCXCShz3A2ux1SMETaqv6QPbEvfBzg/TxX rCfQ1hgQds/64/AtLc8LAfuq3YglkQS7jfkD5Ttoc0mxKqPrkDhcXo2qqO5n9/k= =7Ep0 -----END PGP SIGNATURE----- --VkVuOCYP9O7H3CXI--