[Libvirt-cim] [PATCH 2 of 2] Make SnapshotService delete the snapshot image on resume
Dan Smith
danms at us.ibm.com
Wed Jul 30 17:45:28 UTC 2008
# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1217439908 25200
# Node ID 993c30cca30c370e1be4e146d26443c7949737cc
# Parent e348d263e884ba9d0a2116f1e1b1ae706b654850
Make SnapshotService delete the snapshot image on resume
Signed-off-by: Dan Smith <danms at us.ibm.com>
diff -r e348d263e884 -r 993c30cca30c src/Virt_VirtualSystemSnapshotService.c
--- a/src/Virt_VirtualSystemSnapshotService.c Wed Jul 30 10:45:03 2008 -0700
+++ b/src/Virt_VirtualSystemSnapshotService.c Wed Jul 30 10:45:08 2008 -0700
@@ -195,6 +195,9 @@
snap_job_set_status(ctx,
CIM_JOBSTATE_RUNNING,
"Restore finished");
+
+ if (!ctx->save)
+ vsss_delete_snapshot(virDomainGetName(dom));
}
CU_DEBUG("Snapshot (%s/%s) completed",
More information about the Libvirt-cim
mailing list