On 05/26/2015 01:10 PM, Alberto Garcia wrote: > On Tue 26 May 2015 08:52:41 PM CEST, Eric Blake <ebl...@redhat.com> wrote: > >>> +# @cache-clean-interval: #optional clean unused entries in the L2 and >>> 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. > > That's a good suggestion, thanks. > > 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. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature