On Tue, Dec 10, 2019 at 17:25:39 +0100, Pavel Mores wrote: > When blockcommit finishes successfully, one of the > qemuBlockJobProcessEventCompletedCommit() and > qemuBlockJobProcessEventCompletedActiveCommit() event handlers is called. > This is where the delete flag (stored in qemuBlockJobCommitData since the > previous commit) can actually be used to delete the committed snapshot > images if requested. > > We use virFileRemove() instead of a simple unlink() to cover the case where > the image to be removed is on an NFS volume. > > Signed-off-by: Pavel Mores <[email protected]> > --- > src/qemu/qemu_blockjob.c | 46 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 46 insertions(+)
Reviewed-by: Peter Krempa <[email protected]> -- libvir-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/libvir-list
