]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add control over COW for storage pool directories
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 17 Jul 2020 18:32:18 +0000 (19:32 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 23 Jul 2020 15:18:09 +0000 (16:18 +0100)
commitbb8ccb050d17e6068a02a6e3c356391ba50269d7
tree0c077ea18752c8960a3c89b04cb0da9181125613
parentf12b2838978d5a199229a5b15375d73fb76664ed
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>
docs/formatstorage.html.in
docs/schemas/storagepool.rng
src/conf/storage_conf.c
src/conf/storage_conf.h
src/storage/storage_util.c
tests/storagepoolxml2xmlin/pool-dir-cow.xml [new file with mode: 0644]
tests/storagepoolxml2xmlout/pool-dir-cow.xml [new file with mode: 0644]
tests/storagepoolxml2xmltest.c