mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
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>
19 lines
517 B
XML
19 lines
517 B
XML
<pool type='rbd'>
|
|
<name>ceph</name>
|
|
<uuid>47c1faee-0207-e741-f5ae-d9b019b98fe2</uuid>
|
|
<capacity unit='bytes'>0</capacity>
|
|
<allocation unit='bytes'>0</allocation>
|
|
<available unit='bytes'>0</available>
|
|
<source>
|
|
<host name='localhost' port='6789'/>
|
|
<host name='localhost' port='6790'/>
|
|
<name>rbd</name>
|
|
<auth type='ceph' username='admin'>
|
|
<secret uuid='2ec115d7-3a88-3ceb-bc12-0ac909a6fd87'/>
|
|
</auth>
|
|
</source>
|
|
<refresh>
|
|
<volume allocation='capacity'/>
|
|
</refresh>
|
|
</pool>
|