From ce69fb659657a6d7ca9f5b44bab282533e3bfd26 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Mon, 2 Jul 2018 10:39:56 +0530 Subject: afr,ec: Print if the subvolume is up in statedump fixes bz#1597156 Change-Id: I323eb9190e40b12df216698dcdba74a6d336beeb Signed-off-by: Pranith Kumar K --- tests/ec.rc | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/ec.rc (limited to 'tests/ec.rc') 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'=' +} -- cgit