File 0001-LVM-Default-partial_activation-to-true-in-SLE-HAE.patch of Package resource-agents

From acffcfbecd397d3bf9a2ce04c0a86b3433cbe960 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se>
Date: Thu, 23 Nov 2017 13:47:03 +0100
Subject: [PATCH] LVM: Default partial_activation to true in SLE HAE

---
 heartbeat/LVM | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/heartbeat/LVM b/heartbeat/LVM
index aa1276e1..1a15d689 100755
--- a/heartbeat/LVM
+++ b/heartbeat/LVM
@@ -29,6 +29,11 @@
 : ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat}
 . ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs
 
+
+# True by default in SLE HAE
+OCF_RESKEY_partial_activation_default=true
+: ${OCF_RESKEY_partial_activation:=${OCF_RESKEY_partial_activation_default}}
+
 #######################################################################
 
 
@@ -97,10 +102,10 @@ If "exclusive" is set on a non clustered volume group, this overrides the tag to
 <longdesc lang="en">
 If set, the volume group will be activated partially even with some
 physical volumes missing. It helps to set to true when using mirrored
-logical volumes.
+logical volumes. Enabled by default.
 </longdesc>
 <shortdesc lang="en">Activate VG partially when missing PVs</shortdesc>
-<content type="string" default="false" />
+<content type="string" default="${OCF_RESKEY_partial_activation_default}" />
 </parameter>
 
 </parameters>
-- 
2.15.0

openSUSE Build Service is sponsored by