]> xenbits.xensource.com Git - libvirt.git/commit
storage: optional 'refresh' elemement on pool
authorJason Dillaman <dillaman@redhat.com>
Tue, 19 Mar 2019 13:42:17 +0000 (09:42 -0400)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 19 Mar 2019 15:46:21 +0000 (16:46 +0100)
commit669018bc9cb1ce01c49659b8fe8864a2f25adfb5
tree069462f1305d747db6c9cdbc0ef96768a1d6ba4e
parent21deeaf02fdf216b08210fc899579736973ca81d
storage: optional 'refresh' elemement on pool

The new 'refresh' element can override the default refresh operations
for a storage pool. The only currently supported override is to set
the volume allocation size to the volume capacity. This can be specified
by adding the following snippet:

<pool>
...
  <refresh>
    <volume allocation='capacity'/>
  </refresh>
...
</pool>

This is useful for certain backends where computing the actual allocation
of a volume might be an expensive operation.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatstorage.html.in
docs/schemas/storagecommon.rng
docs/schemas/storagepool.rng
src/conf/storage_conf.c
src/conf/storage_conf.h
src/libvirt_private.syms
tests/storagepoolxml2xmlin/pool-rbd-refresh-volume-allocation.xml [new file with mode: 0644]
tests/storagepoolxml2xmlout/pool-rbd-refresh-volume-allocation.xml [new file with mode: 0644]
tests/storagepoolxml2xmltest.c