]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: do not clear vols before volume upload
authorJán Tomko <jtomko@redhat.com>
Fri, 20 May 2016 09:42:56 +0000 (11:42 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 23 May 2016 08:47:32 +0000 (10:47 +0200)
commit21fdb4fe707c8cccba8225fc82c189b9f5130153
treedf7ed6fb855855c29d64a8a522163118c5eac6d1
parent71cfa668ebf33dedeebcfc824f337ddec98ac9c7
storage: do not clear vols before volume upload

Commit 5e54361c added virStoragePoolObjClearVols before refreshPool
to prevent duplicate volume entries.

However it is not needed here because we're not refreshing the pool yet,
just checking for the existence of the refresh callback.

The actual refresh is done via virStorageVolFDStreamCloseCb
in virStorageVolPoolRefreshThread, which already calls
virStoragePoolObjClearVols.
src/storage/storage_driver.c