]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Replace virDomainDiskSourceIsBlockType with a new helper
authorPeter Krempa <pkrempa@redhat.com>
Mon, 2 May 2016 11:42:32 +0000 (13:42 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 9 May 2016 10:36:52 +0000 (12:36 +0200)
commit3ec7bb354a94c343c3c0da8b799c24d2144e7871
tree1376ad1024f2bce91975fbb33bafb70e3bd78802
parente85d3e1bbe0b0762920f999b8bbfc127bf86d701
util: Replace virDomainDiskSourceIsBlockType with a new helper

For disks sources described by a libvirt volume we don't need to do a
complicated check since virStorageTranslateDiskSourcePool already
correctly determines the actual disk type.

Replace the checks using a new accessor that does not open-code the
whole logic.
src/libvirt_private.syms
src/lxc/lxc_cgroup.c
src/qemu/qemu_conf.c
src/util/virstoragefile.c
src/util/virstoragefile.h