]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Storage: Introduce shadow vol for refresh while the main vol builds.
authorPrerna Saxena <prerna@linux.vnet.ibm.com>
Fri, 26 Jun 2015 11:35:11 +0000 (17:05 +0530)
committerJán Tomko <jtomko@redhat.com>
Tue, 30 Jun 2015 12:29:38 +0000 (14:29 +0200)
commit7e7dee438991cee49008a6d8b68e2083b92c31a7
tree49a34e244be10509d40b02ca6f8c2459d221059e
parentea1c7b652b2b0c6248d03d4b2ed5b3e8afbd8c1b
Storage: Introduce shadow vol for refresh while the main vol builds.

Libvirt periodically refreshes all volumes in a storage pool, including
the volumes being cloned.
While cloning a storage volume from parent, we drop pool locks. Subsequent
volume refresh sometimes changes allocation for an ongoing copy, and leads
to corrupt images.
Fix: Introduce a shadow volume that isolates the volume object under refresh
from the base which has a copy ongoing.

Signed-off-by: Prerna Saxena <prerna@linux.vnet.ibm.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_driver.c