From: Jan Pokorný <jpokorny@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 3/3] rgmanager: ra2rng.xsl: lvm-*: datatype/restrict the params
Date: Mon, 9 Dec 2013 22:03:00 +0100 [thread overview]
Message-ID: <1386622980-18460-4-git-send-email-jpokorny@redhat.com> (raw)
In-Reply-To: <1386622980-18460-1-git-send-email-jpokorny@redhat.com>
Signed-off-by: Jan Pokorn? <jpokorny@redhat.com>
---
rgmanager/src/resources/ra2rng.xsl | 48 +++++++++++++++++++++++++++-----------
1 file changed, 35 insertions(+), 13 deletions(-)
diff --git a/rgmanager/src/resources/ra2rng.xsl b/rgmanager/src/resources/ra2rng.xsl
index 748d3a1..98de4a5 100644
--- a/rgmanager/src/resources/ra2rng.xsl
+++ b/rgmanager/src/resources/ra2rng.xsl
@@ -26,6 +26,19 @@
<value type="string">yes</value>
</choice>
</int:parameter>
+ <int:parameter name="self_fence">
+ <choice>
+ <!-- note: a bit stricter than what the code enforces -->
+ <value type="token">0</value>
+ <value type="token">1</value>
+ <value type="token">no</value>
+ <value type="token">yes</value>
+ <value type="token">false</value>
+ <value type="token">true</value>
+ <value type="token">off</value>
+ <value type="token">on</value>
+ </choice>
+ </int:parameter>
<int:parameter name="shutdown_wait">
<data type="int">
<param name="minInclusive">0</param>
@@ -112,19 +125,7 @@
<value type="string">1</value>
</choice>
</int:parameter>
- <int:parameter name="self_fence">
- <choice>
- <!-- note: a bit stricter than what the code enforces -->
- <value type="token">0</value>
- <value type="token">1</value>
- <value type="token">no</value>
- <value type="token">yes</value>
- <value type="token">false</value>
- <value type="token">true</value>
- <value type="token">off</value>
- <value type="token">on</value>
- </choice>
- </int:parameter>
+ <!-- self_fence: see WILDCARD -->
<!-- nfslock: see WILDCARD -->
<int:parameter name="nfsrestart">
<choice>
@@ -229,6 +230,27 @@
</data>
</int:parameter>
</int:agent>
+ <!-- LVM -->
+ <int:agent name="lvm">
+ <!-- int:parameter name="name"/ -->
+ <int:parameter name="vg_name">
+ <data type="string">
+ <!-- would be "token" unless single(?) use that breaks it -->
+ <!-- https://bugzilla.redhat.com/show_bug.cgi?id=747278#c6 -->
+ <param name="pattern">[\p{IsBasicLatin}\p{IsLatin-1Supplement}]+</param>
+ <param name="maxLength">63</param>
+ </data>
+ </int:parameter>
+ <int:parameter name="lv_name">
+ <data type="string">
+ <!-- https://bugzilla.redhat.com/show_bug.cgi?id=747278#c6 -->
+ <param name="pattern">[\p{IsBasicLatin}\p{IsLatin-1Supplement}]+</param>
+ <param name="maxLength">63</param>
+ </data>
+ </int:parameter>
+ <!-- self_fence: see WILDCARD -->
+ <!-- nfslock: see WILDCARD -->
+ </int:agent>
<!-- SCRIPT -->
<int:agent name="script">
<int:parameter name="file">
--
1.8.1.4
prev parent reply other threads:[~2013-12-09 21:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-09 21:02 [Cluster-devel] [resource-agents][PATCH 0/3] rgmanager: ra2rng.xsl: MYSQL+APACHE+LVM params datatyping Jan Pokorný
2013-12-09 21:02 ` [Cluster-devel] [PATCH 1/3] rgmanager: ra2rng.xsl: mysql-*: datatype/restrict the params Jan Pokorný
2013-12-09 21:02 ` [Cluster-devel] [PATCH 2/3] rgmanager: ra2rng.xsl: apache-*: " Jan Pokorný
2013-12-09 21:03 ` Jan Pokorný [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1386622980-18460-4-git-send-email-jpokorny@redhat.com \
--to=jpokorny@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).