]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Add helper to compare logical pool def against pvs output
authorJohn Ferlan <jferlan@redhat.com>
Mon, 7 Dec 2015 20:06:17 +0000 (15:06 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 15 Dec 2015 19:33:05 +0000 (14:33 -0500)
commit71b803ac9a9cadacf6eaca2028bbcebd05050a77
tree8b2e9b620ef09e5ff4e91c73a967a43e9bd46b40
parentae5519f7f88d59707e5f3f2cb50c8b0dbce07cee
storage: Add helper to compare logical pool def against pvs output

https://bugzilla.redhat.com/show_bug.cgi?id=1025230

Add a new helper virStorageBackendLogicalMatchPoolSource to compare the
pool's source name against the output from a 'pvs' command to list all
volume group physical volume data on the host.  In addition, compare the
pool's source device list against the particular volume group's device
list to ensure the source device(s) listed for the pool match what the
was listed for the volume group.

Then for pool startup or check API's we need to call this new API in
order to ensure that the pool we're about to start or declare active
during checkPool has a valid definition vs. the running host.
src/storage/storage_backend_logical.c