From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VF8FU-0004Mu-Rk for qemu-devel@nongnu.org; Thu, 29 Aug 2013 15:51:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VF8FP-0003rA-1X for qemu-devel@nongnu.org; Thu, 29 Aug 2013 15:51:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VF8FO-0003qz-Gr for qemu-devel@nongnu.org; Thu, 29 Aug 2013 15:51:14 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r7TJpDeb028328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 29 Aug 2013 15:51:13 -0400 Message-ID: <521FA630.2030005@redhat.com> Date: Thu, 29 Aug 2013 13:51:12 -0600 From: Eric Blake MIME-Version: 1.0 References: <1377784821-29561-1-git-send-email-pbonzini@redhat.com> <1377784821-29561-5-git-send-email-pbonzini@redhat.com> In-Reply-To: <1377784821-29561-5-git-send-email-pbonzini@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qrahdXhF5TvdCkHCrlsODHtmpqaa7ii9O" Subject: Re: [Qemu-devel] [PATCH v4 04/21] block: keep bs->total_sectors up to date even for growable block devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qrahdXhF5TvdCkHCrlsODHtmpqaa7ii9O Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/29/2013 08:00 AM, Paolo Bonzini wrote: > If a BlockDriverState is growable, after every write we need to > check if bs->total_sectors might have changed. With this change, > bdrv_getlength does not need anymore a system call. >=20 > Signed-off-by: Paolo Bonzini > --- > v4: use cache in bdrv_getlength > block.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --qrahdXhF5TvdCkHCrlsODHtmpqaa7ii9O 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.4.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJSH6YwAAoJEKeha0olJ0NqspYH/RvkpGTGrj6hkRFGUGiG4pts HUDDroYrjpk1/j6aICztWgDfw13U5PXeVArl3TQ30f4B0hEm0gFvu5Af3uVcgAFs b/vT7yLyj/Yjjets8lWMqKnfxLqw7icS7hlyp3HISI9hyUQKh+lt6UpS64sN37BS 96+7eWw7Xe7jTGcGlHv9RJZwzy+/mbo1TQ87S+denvQXqHu4Ve8XN5AAoIe4zwao r052Fe+uH32GZeHEuQv423ENVoGsnjDH/gNRr1N2U7zzg4i9E0b84Yv0QSYa2C3W uFrbjJSlcmGeNfmwIvwqlXKFGgvUHS8a7ZTW9VCi2+iCJU2wtQYqcBtxyNYk2Qo= =SBuO -----END PGP SIGNATURE----- --qrahdXhF5TvdCkHCrlsODHtmpqaa7ii9O--