]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
storage: Track successful creation of LV for removal
authorJohn Ferlan <jferlan@redhat.com>
Thu, 8 Oct 2015 21:26:01 +0000 (17:26 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 13 Oct 2015 22:03:55 +0000 (18:03 -0400)
commitc4dd2a1fafe564d72b50c6e6d2c76a37edfae108
tree0dd0af03b2e5a5e1757b2ed0359e3276f14894cf
parent27d2d99fe75299cccaf121db140b2913dc630b96
storage: Track successful creation of LV for removal

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

Track when the logical volume was successfully created in order to
properly handle the call to virStorageBackendLogicalDeleteVol. It's
possible that the failure to create was because someone created an
LV in the pool outside of libvirt's knowledge. In this case, we don't
want to delete that LV.  A subsequent or future refresh of the pool
will find the volume and cause an earlier failure

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_backend_logical.c