diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2019-09-05 16:12:39 +0530 |
---|---|---|
committer | Pranith Kumar K <pkarampu@redhat.com> | 2019-09-08 09:09:52 +0530 |
commit | ea95631ff47c8048f039faedbc0faa918c4e165a (patch) | |
tree | 5442f13643bb637dc7011617815b726362a8bc2d /tests/ec.rc | |
parent | 6bf09ecbe8203d0f8c020e6b0b55202e91e216c9 (diff) |
cluster/ec: quorum-count implementation
fixes: #721
Change-Id: I5333540e3c635ccf441cf1f4696e4c8986e38ea8
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'tests/ec.rc')
-rw-r--r-- | tests/ec.rc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ec.rc b/tests/ec.rc index 04405ecb829..f18752fc99a 100644 --- a/tests/ec.rc +++ b/tests/ec.rc @@ -7,3 +7,12 @@ function ec_up_status() local ec_id=$3 grep -E "^up =" $m/.meta/graphs/active/${v}-disperse-${ec_id}/private | cut -f2 -d'=' } + +function ec_option_value() +{ + local v=$1 + local m=$2 + local ec_id=$3 + local opt=$4 + grep -E "^$opt =" $m/.meta/graphs/active/${v}-disperse-${ec_id}/private | cut -f2 -d'='| awk '{print $1}' +} |