]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Fill in 'type' field for virStorageSource in storage driver
authorPeter Krempa <pkrempa@redhat.com>
Thu, 12 Oct 2017 18:31:33 +0000 (20:31 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 17 Oct 2017 04:19:18 +0000 (06:19 +0200)
commitee4d2df87d5a1d9a914d4f9c24d1b6c8a377c6aa
tree7d287674dc55d478760ac2e8d7212c1bf7720536
parente3fb414e77c23a0c454678185516d718ab7044bb
storage: Fill in 'type' field for virStorageSource in storage driver

Storage driver uses virStorageSource only partially to store it's
configuration but fully when parsing backing files of storage volumes.
This patch sets the 'type' field to a value other than
VIR_STORAGE_TYPE_NONE so that further patches can add a terminator
element to backing chains without breaking iteration.
src/conf/storage_conf.c
src/storage/storage_backend_gluster.c
src/storage/storage_backend_logical.c