From 8967a4bb6f379509fed1f9509643cd99ccd1d2fc Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 6 Dec 2012 18:05:53 +0530 Subject: Tests: Add util function to get changelog xattr Change-Id: I3f6b79145e78b035950929e7ed8edb259525612f BUG: 864666 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/4317 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- tests/volume.rc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 0f31beb48..adb2fea61 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -74,3 +74,9 @@ function check_option_help_presence { option=$1 $CLI volume set help | grep "^Option:" | grep -w $option } + +function afr_get_changelog_xattr { + file=$1 + xkey=$2 + getfattr -n $xkey -e hex $file 2>/dev/null | grep "client-" | cut -f2 -d'=' +} -- cgit