Reset disks list

So it dumps the correct disks when you backup several VM in one run
Patch by Diego Rondini <diego.rondini@kynetics.it>
This commit is contained in:
Daniel Berteaud 2015-02-17 18:30:27 +01:00
parent c596ec15db
commit 9eb10f07d0

View File

@ -287,6 +287,9 @@ sub prepare_backup{
# Stop here if the lock file is present, another dump might be running
die "Another backup is running\n" if ( -e "$lockdir/$vm.lock" );
# Reset disks list
@disks = ();
# Lock VM: Create a lock file so only one dump process can run
lock_vm();