summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2012-12-06 18:05:53 +0530
committerAnand Avati <avati@redhat.com>2012-12-17 18:06:05 -0800
commit8967a4bb6f379509fed1f9509643cd99ccd1d2fc (patch)
tree37c720da3709213d104122472c558bf4ee8f3c9f /tests/volume.rc
parent4854e57edb1d17c8c924ad8c72e6c0e20788afa8 (diff)
Tests: Add util function to get changelog xattr
Change-Id: I3f6b79145e78b035950929e7ed8edb259525612f BUG: 864666 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/4317 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc6
1 files changed, 6 insertions, 0 deletions
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'='
+}