summaryrefslogtreecommitdiffstats
path: root/tests/ec.rc
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2018-07-02 10:39:56 +0530
committerRavishankar N <ravishankar@redhat.com>2018-07-03 12:48:56 +0000
commitce69fb659657a6d7ca9f5b44bab282533e3bfd26 (patch)
tree7e00b6489769d832add364953c17dc4926d594e8 /tests/ec.rc
parenta585425aad5f07a406da26ba38c59fa0e5ad3036 (diff)
afr,ec: Print if the subvolume is up in statedump
fixes bz#1597156 Change-Id: I323eb9190e40b12df216698dcdba74a6d336beeb Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'tests/ec.rc')
-rw-r--r--tests/ec.rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ec.rc b/tests/ec.rc
new file mode 100644
index 00000000000..04405ecb829
--- /dev/null
+++ b/tests/ec.rc
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+function ec_up_status()
+{
+ local v=$1
+ local m=$2
+ local ec_id=$3
+ grep -E "^up =" $m/.meta/graphs/active/${v}-disperse-${ec_id}/private | cut -f2 -d'='
+}