Blame SOURCES/lvm2-2_03_10-Fix-scripts-lvmlocks.service.in-using-nonexistent-lock-opt-autowait.patch

d617b2
From 48105f492f7f8c157ba714217ae55c6fb50e76c0 Mon Sep 17 00:00:00 2001
d617b2
From: Maxim Plotnikov <wgh@torlan.ru>
d617b2
Date: Wed, 22 Apr 2020 00:16:29 +0300
d617b2
Subject: [PATCH] Fix scripts/lvmlocks.service.in using nonexistent --lock-opt
d617b2
 autowait
d617b2
d617b2
The --lock-opt autowait was dropped back in 9ab6bdce01,
d617b2
and attempting to specify it has quite an opposite effect:
d617b2
no waiting is done, which makes the unit almost useless.
d617b2
d617b2
(cherry picked from commit a509776588a5c0c0bfc2394e4d1ed717531b0257)
d617b2
---
d617b2
 scripts/lvmlocks.service.in | 2 +-
d617b2
 1 file changed, 1 insertion(+), 1 deletion(-)
d617b2
d617b2
diff --git a/scripts/lvmlocks.service.in b/scripts/lvmlocks.service.in
d617b2
index f6a951f..a3d0bd4 100644
d617b2
--- a/scripts/lvmlocks.service.in
d617b2
+++ b/scripts/lvmlocks.service.in
d617b2
@@ -8,7 +8,7 @@ Type=oneshot
d617b2
 RemainAfterExit=yes
d617b2
 
d617b2
 # start lockspaces and wait for them to finish starting
d617b2
-ExecStart=@SBINDIR@/lvm vgchange --lock-start --lock-opt autowait
d617b2
+ExecStart=@SBINDIR@/lvm vgchange --lock-start --lock-opt auto
d617b2
 
d617b2
 # stop lockspaces and wait for them to finish stopping
d617b2
 ExecStop=@SBINDIR@/lvmlockctl --stop-lockspaces --wait 1
d617b2
-- 
d617b2
1.8.3.1
d617b2