diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2012-12-06 18:05:53 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-12-17 18:06:05 -0800 |
commit | 8967a4bb6f379509fed1f9509643cd99ccd1d2fc (patch) | |
tree | 37c720da3709213d104122472c558bf4ee8f3c9f | |
parent | 4854e57edb1d17c8c924ad8c72e6c0e20788afa8 (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>
-rw-r--r-- | tests/volume.rc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc index 0f31beb4802..adb2fea61d8 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'=' +} |