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/afr.rc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/afr.rc') diff --git a/tests/afr.rc b/tests/afr.rc index bdf4075a233..12cbd974cd7 100644 --- a/tests/afr.rc +++ b/tests/afr.rc @@ -89,3 +89,11 @@ function count_index_entries() { ls $1/.glusterfs/indices/xattrop | wc -l } + +function afr_up_status() +{ + local v=$1 + local m=$2 + local replica_id=$3 + grep -E "^up = " $m/.meta/graphs/active/${v}-replicate-${replica_id}/private | cut -f2 -d'=' +} -- cgit