libvirt/tests/storagepoolxml2xmlout/pool-dir-cow.xml
Daniel P. Berrangé bb8ccb050d conf: add control over COW for storage pool directories
The storage pool code now attempts to disable COW by default on btrfs,
but management applications may wish to override this behaviour. Thus we
introduce a concept of storage pool features:

  <features>
    <cow state='yes|no'/>
  </features>

If the <cow> feature policy is set, it will be enforced. It will always
return an hard error if COW cannot be explicitly set or unset.

Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-07-23 16:18:09 +01:00

16 lines
360 B
XML

<pool type='dir'>
<name>vms</name>
<uuid>751f8e7e-d2e9-463d-8ffe-d38f5e13a19b</uuid>
<capacity unit='bytes'>0</capacity>
<allocation unit='bytes'>0</allocation>
<available unit='bytes'>0</available>
<features>
<cow state='yes'/>
</features>
<source>
</source>
<target>
<path>/i/cant/believe/its/not/btrfs</path>
</target>
</pool>