]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: storagefile: Add helpers to check presence of backing store
authorPeter Krempa <pkrempa@redhat.com>
Thu, 12 Oct 2017 17:27:40 +0000 (19:27 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 17 Oct 2017 04:19:18 +0000 (06:19 +0200)
commit0a294a8e289a974ce1c0b24f55309370a85e7884
tree752d20cfcbb3a5c533825e1b7835b514d55642f0
parent8fdeefe1df9c4016b6b50bf5aa08acd5abf01d57
util: storagefile: Add helpers to check presence of backing store

Add helpers that will simplify checking if a backing file is valid or
whether it has backing store. The helper virStorageSourceIsBacking
returns true if the given virStorageSource is a valid backing store
member. virStorageSourceHasBacking returns true if the virStorageSource
has a backing store child.

Adding these functions creates a central points for further refactors.
16 files changed:
src/conf/domain_conf.c
src/conf/storage_conf.c
src/libvirt_private.syms
src/qemu/qemu_block.c
src/qemu/qemu_cgroup.c
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/security/security_dac.c
src/security/security_selinux.c
src/security/virt-aa-helper.c
src/storage/storage_backend_logical.c
src/storage/storage_source.c
src/storage/storage_util.c
src/util/virstoragefile.c
src/util/virstoragefile.h
tests/virstoragetest.c