From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Pokorný Date: Mon, 9 Dec 2013 15:12:35 +0100 Subject: [Cluster-devel] [PATCHv3 3/6] rgmanager: ra2rng.xsl: common params: prevent misleading combination In-Reply-To: <1386263590-18108-1-git-send-email-jpokorny@redhat.com> References: <1386263590-18108-1-git-send-email-jpokorny@redhat.com> Message-ID: <1386598355-14369-1-git-send-email-jpokorny@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ...both @__max_restarts and @__restart_expire_time have "nonzero" values, otherwise, otherwise if either of the parameter is present, it has to have "zero" value. Every other occurrence of these two interconnected parameters for particular resource is a configuration defect, as it could lead to false assumption that one will take effect even without the other defined and nonzero. Reference: > if (restart_expire_time == 0 || max_restarts == 0) > return; > goto out_assign; [https://git.fedorahosted.org/cgit/cluster.git/tree/rgmanager/src/daemons/restree.c?h=RHEL64#n538] Signed-off-by: Jan Pokorn? --- rgmanager/src/resources/ra2rng.xsl | 45 +++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/rgmanager/src/resources/ra2rng.xsl b/rgmanager/src/resources/ra2rng.xsl index 27105a0..2579952 100644 --- a/rgmanager/src/resources/ra2rng.xsl +++ b/rgmanager/src/resources/ra2rng.xsl @@ -26,12 +26,45 @@ - - - - - - + + + + + + 0 + + + + + .*[1-9][0-9]*([SsMmHhDdWwYy].*|) + + + + + + + + 0 + + + + + + + + .*[1-9][0-9]*([SsMmHhDdWwYy].*|) + + + + + + + -- 1.8.1.4