Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
my $res;
my $got_lock = 0;
- # this timeout is for aquire the lock
+ # this timeout is for acquire the lock
$timeout = 10 if !$timeout;
my $filename = "$lockdir/$lockid";
$timeout_err->() if $timeout <= 0;
- print STDERR "trying to aquire cfs lock '$lockid' ...\n";
+ print STDERR "trying to acquire cfs lock '$lockid' ...\n";
utime (0, 0, $filename); # cfs unlock request
sleep(1);
}
for (int i = 10; i >= 0; i--) {
if (flock(lockfd, LOCK_EX|LOCK_NB) != 0) {
if (!i) {
- cfs_critical("unable to aquire pmxcfs lock: %s", strerror (errno));
+ cfs_critical("unable to acquire pmxcfs lock: %s", strerror (errno));
goto err;
}
if (i == 10)
- cfs_message("unable to aquire pmxcfs lock - trying again");
+ cfs_message("unable to acquire pmxcfs lock - trying again");
sleep(1);
}