blob: 60ea1b7f1234d2d98bd9c9c2ab1bff90d48e24b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}
|