summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2013-12-26 11:31:49 +0530
committerVijay Bellur <vbellur@redhat.com>2014-01-27 09:17:38 -0800
commitcc1728766620e13ccfe2cd0b162cbc848b20e422 (patch)
tree8bb38fe14b21b796a1eb86cffa5ed1929080517d /tests/volume.rc
parent0c80a202d475a4abb8a5738f144739234d7557c6 (diff)
cluster/afr: Treat ESTALE on nameless lookup as ENOENT
Change-Id: I635fc0fa955b33590f1c5b4dfec22d591ea8575c BUG: 1032894 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/6593 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 98712242020..5fee3f4caab 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -177,6 +177,11 @@ function afr_get_pending_heal_count {
gluster volume heal $vol info | grep "Number of entries" | awk '{ sum+=$4} END {print sum}'
}
+function afr_get_index_count {
+ local brick=$1
+ ls $1/.glusterfs/indices/xattrop | grep -v xattrop | wc -l
+}
+
function afr_get_index_path {
local brick_path=$1
echo "$brick_path/.glusterfs/indices/xattrop"