From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxKKI-0007Fz-9v for qemu-devel@nongnu.org; Tue, 26 May 2015 15:15:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxKKG-0002U7-SU for qemu-devel@nongnu.org; Tue, 26 May 2015 15:15:46 -0400 Message-ID: <5564C658.1070406@redhat.com> Date: Tue, 26 May 2015 13:15:36 -0600 From: Eric Blake MIME-Version: 1.0 References: <1ef4a987b5f35c70a1bb5f16039d1ddc36e68a99.1432660103.git.berto@igalia.com> <5564C0F9.3000208@redhat.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="v8KWaonKTSEp9er8XU30L0CwltHJ2qKiM" Subject: Re: [Qemu-devel] [PATCH 2/3] qcow2: add option to clean unused cache entries after some time List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia , qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, Stefan Hajnoczi , Max Reitz This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --v8KWaonKTSEp9er8XU30L0CwltHJ2qKiM Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 05/26/2015 01:10 PM, Alberto Garcia wrote: > On Tue 26 May 2015 08:52:41 PM CEST, Eric Blake wro= te: >=20 >>> +# @cache-clean-interval: #optional clean unused entries in the L2 a= nd refcount >>> +# caches. The interval is in seconds (since = 2.4) >>> +# >>> # Since: 1.7 >> >> Is there any QMP command that can query the current interval? I'm not= >> a big fan of write-only interfaces. >=20 > That's a good suggestion, thanks. >=20 > Do we have any API where we could add this? I would rather not have a > separate command just for this option, if possible. I agree that a new command is not necessary, and that the best is to modify an existing command. It looks like ImageInfoSpecificQCow2 is the corresponding struct to edit, at which point ImageInfo (part of query-block) will automatically expose it. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --v8KWaonKTSEp9er8XU30L0CwltHJ2qKiM 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/ iQEcBAEBCAAGBQJVZMZYAAoJEKeha0olJ0NqVKsIAKeqEbhPuafmBkDHfEhdjOqS neUj+3w0SHEq2ZqO5Jhc1FPZNVzRui1NztAT2cQMcs84bzLH28xQDMGPERB4LB8V xxkSHb3dz27le/rAYTFkIm+O6yXHXv2IpxR5WTHx0rKKbqAaieyIaJgUUNVZAPHB hdj2N7Lel8mUbTQIi7ijM8jvVQt9UHrV5pNmPshcSpi7ogTmfUZuz3ZYtzpfgz3o TRNx4e55Bp/SxSzbEK4iq1sO8ePueS+wubgx3m2JCJSj5N6XmEZVmvMAgP24JCcX G9TM+KDSJq4ePLRKYG30QR+VinnUvpcoWbTfIc4gY4B589MFsu1lR7tnfHMjqRU= =bqOp -----END PGP SIGNATURE----- --v8KWaonKTSEp9er8XU30L0CwltHJ2qKiM--