]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Fix check for partition type for disk backing volumes
authorJohn Ferlan <jferlan@redhat.com>
Thu, 22 Jan 2015 13:30:36 +0000 (08:30 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 28 Jan 2015 22:28:03 +0000 (17:28 -0500)
commita0d88ed4e70a034dfcf7201bff8692af5b4effad
tree64714247dd6e01e2aba9fa26940b90a7286f6dd5
parent290ffcfbbce4ade0335f4192f400aef70301ef95
storage: Fix check for partition type for disk backing volumes

While checking the existing partitions in virStorageBackendDiskPartFormat,
the code would erroneously compare the volume target format type (eg, the
virStoragePartedFsType) rather than the source partition type (eg, the
virStorageVolTypeDisk) which is set during virStorageBackendDiskReadPartitions.
src/storage/storage_backend_disk.c