|
|
@ -250,7 +250,7 @@ my $locker = LockFile::Simple->make( |
|
|
|
my $glock = undef; |
|
|
|
my $glock = undef; |
|
|
|
if ($opts{action} =~ m/^dump|convert|chunkmount$/){ |
|
|
|
if ($opts{action} =~ m/^dump|convert|chunkmount$/){ |
|
|
|
print "Trying to acquire an exclusive lock\n" if ($opts{debug}); |
|
|
|
print "Trying to acquire an exclusive lock\n" if ($opts{debug}); |
|
|
|
my $glock = $locker->lock($opts{lockdir} . '/virt-backup') || die "Can't acquire exclusive lock\n"; |
|
|
|
$glock = $locker->lock($opts{lockdir} . '/virt-backup') || die "Can't acquire exclusive lock\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
foreach our $vm (@vms){ |
|
|
|
foreach our $vm (@vms){ |
|
|
|