[PATCH 3/5] conf: Introduce <metadata_cache> subelement of <disk><driver>
Daniel P. Berrangé
berrange at redhat.com
Fri Jan 8 13:13:30 UTC 2021
On Thu, Jan 07, 2021 at 03:59:36PM +0100, Peter Krempa wrote:
> In certain specific cases it might be beneficial to be able to control
> the metadata caching of storage image format drivers of a hypervisor.
>
> Introduce XML machinery to set the maximum size of the metadata cache
> which will be used by qemu's qcow2 driver.
>
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
> docs/formatdomain.rst | 43 ++++++++++++++
> docs/schemas/domaincommon.rng | 20 ++++++-
> src/conf/domain_conf.c | 51 ++++++++++++++--
> src/util/virstoragefile.c | 1 +
> src/util/virstoragefile.h | 2 +
> .../qemuxml2argvdata/disk-metadata-cache.xml | 46 +++++++++++++++
> .../disk-metadata-cache.x86_64-latest.xml | 58 +++++++++++++++++++
> tests/qemuxml2xmltest.c | 1 +
> 8 files changed, 216 insertions(+), 6 deletions(-)
> create mode 100644 tests/qemuxml2argvdata/disk-metadata-cache.xml
> create mode 100644 tests/qemuxml2xmloutdata/disk-metadata-cache.x86_64-latest.xml
> + <disk type='file' device='disk'>
> + <driver name='qemu' type='qcow2' cache='none'/>
> + <source file='/tmp/QEMUGuest2.img'/>
> + <backingStore type='file'>
> + <format type='qcow2'>
> + <metadata_cache>
> + <max_size unit='kiB'>1024</max_size>
> + </metadata_cache>
I only wonder if this is uneccessarily verbose XML nesting ?
Not a blocker though.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list