]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
storage: Revert volume obj list updating after volume creation (4749d82a)
authorErik Skultety <eskultet@redhat.com>
Thu, 9 Jul 2015 09:17:12 +0000 (11:17 +0200)
committerErik Skultety <eskultet@redhat.com>
Thu, 9 Jul 2015 11:23:27 +0000 (13:23 +0200)
commitb5637871920c88d88a32343a13c6c1476062a6bb
treecc7b3beed55d2fb52960c689f20368d66cb62bd8
parent69b850fe2a19d0c32ae2f209e8d8463df6ead665
storage: Revert volume obj list updating after volume creation (4749d82a)

This patch reverts commit 4749d82a which tried to tweak the logic in
volume creation. We did realloc and update our object list before we executed
volume building within a specific storage backend. If that failed, we
had to update (again) our object list to the original state as it was before the
build and delete the volume from the pool (even though it didn't exist - this
truly depends on the backend).
I misunderstood the base idea to be able to poll the status of the volume
creation using vol-info. After commit 4749d82a this wasn't possible
anymore, although no BZ has been reported yet.

Commit 4749d82a also claimed to fix
https://bugzilla.redhat.com/show_bug.cgi?id=1223177, but commit c8be606b of the
same series as 4749d82ad (which was more of a refactor than a fix)
fixes the same issue so the revert should be pretty straightforward.
Further more, BZ https://bugzilla.redhat.com/show_bug.cgi?id=1241454 can be
fixed with this revert.
src/storage/storage_driver.c