diff options
Diffstat (limited to 'tests/afr.rc')
-rw-r--r-- | tests/afr.rc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/afr.rc b/tests/afr.rc new file mode 100644 index 00000000000..60ea1b7f123 --- /dev/null +++ b/tests/afr.rc @@ -0,0 +1,15 @@ +#!/bin/bash + +#count the number of entries marked for self-heal +#in brick $1's index + +function count_sh_entries() +{ + val1=0 + for g in `ls $1/.glusterfs/indices/xattrop` + do + val1=$(( val1 + 1 )) + done + + echo $val1; +} |