]> xenbits.xensource.com Git - libvirt.git/commit
storage: Clean up stateFile if refreshPool fails
authorJohn Ferlan <jferlan@redhat.com>
Wed, 12 Sep 2018 12:29:32 +0000 (08:29 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 20 Sep 2018 11:49:19 +0000 (07:49 -0400)
commit49c322145b1096652b08b6e6bbd53e68f7ceab21
tree198db266ad317551e69338fe862b27cca9d073c9
parent9e52c6496650d1412662a9e6cf98301141fbbbca
storage: Clean up stateFile if refreshPool fails

If the virStoragePoolRefresh fails and we call stopPool, the
code neglected to clean up the state file leading to the next
libvirtd restart attempting to start the pool. For a transient
pool this could make it unexpectedly reappear.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/storage/storage_driver.c