From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVhzX-0005QX-0R for qemu-devel@nongnu.org; Sat, 29 Aug 2015 11:24:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVhzW-0007i2-7Y for qemu-devel@nongnu.org; Sat, 29 Aug 2015 11:24:27 -0400 References: <1440671441-7978-1-git-send-email-pl@kamp.de> From: Max Reitz Message-ID: <55E1CE9D.1040803@redhat.com> Date: Sat, 29 Aug 2015 17:24:13 +0200 MIME-Version: 1.0 In-Reply-To: <1440671441-7978-1-git-send-email-pl@kamp.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5CAmnEofp9vt9xPgHkSwEpExm1NAucwNI" Subject: Re: [Qemu-devel] [Qemu-block] [PATCH V3] block/nfs: cache allocated filesize for read-only files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven , qemu-devel@nongnu.org, qemu-block@nongnu.org Cc: kwolf@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5CAmnEofp9vt9xPgHkSwEpExm1NAucwNI Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 27.08.2015 12:30, Peter Lieven wrote: > If the file is readonly its not expected to grow so > save the blocking call to nfs_fstat_async and use > the value saved at connection time. Also important > the monitor (and thus the main loop) will not hang > if block device info is queried and the NFS share > is unresponsive. >=20 > Signed-off-by: Peter Lieven > --- > v1->v2: update cache on reopen_prepare [Max] > v2->v3: use cache only if cache.direct=3Doff [Max] >=20 > block/nfs.c | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) Reviewed-by: Max Reitz --5CAmnEofp9vt9xPgHkSwEpExm1NAucwNI 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 iQEcBAEBCAAGBQJV4c6dAAoJEDuxQgLoOKytqh8H/j/67RaYUdIU7UkBa/h7K8Lq 9i3nJVOTf3uHpIyNioPhFelkoS6UxhuOBdDhYKg1UgYgP2aXJpGMB6mgJ751j3gF m5MJ5peACF2jrlw/ZpJYgxtvfVjVv3Ppu5ZJQ9yCUXPhCOMlHmb3+m3pnQ00aYwy OAeWRH0U3XNwAxKr1Gh6wLWUVqOOknAHcKtDeWULUIXuQhv2/1+3o4ELCdAgJAYz XlmBagCA2Yd/YWKOmNxQaY5f6KhajKop+H1nNR2mWutECKcJfAJGXEn+HsdGA+Nj tuFNtyRn8DC1NYsHnKMlepsWZ9l9gE70l3PROUOvNJ/vX1oJ0OH6UtHitySFmIs= =kFAc -----END PGP SIGNATURE----- --5CAmnEofp9vt9xPgHkSwEpExm1NAucwNI--