blob: 96ec5313a937ef1469ee166442bc2dedf68d2a00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#!/bin/bash
description="# (313) rename is broken"
comments="#when try to rename a file using mv it fails"
version=$1
bugid=$(pwd | cut -d '/' -f 4)
exportdir=/jbod/regr/$bugid
mountdir=/mnt/regr/$bugid/$version
function ok () {
desc=$@
echo "ok - $desc"
}
function not_ok () {
desc=$@
echo "not ok - $desc"
}
function comment () {
desc=$@
echo "$desc"
}
[ $# -ne 1 ] && {
not_ok "#<Usage: $(basename $0) <glusterfs_version>"
exit
}
/opt/qa/regr/setup $version $bugid
sleep 10;
touch $mountdir/client1/tmp1.txt
mv $mountdir/client1/tmp1.txt $mountdir/client1/tmp2.txt 2> tmpfile
if [ $(grep "Structure needs cleaning" tmpfile | wc -l) -ne 0 ];then
not_ok $description
comment $comments
else
ok $description
fi
rm tmpfile
/opt/qa/regr/cleanup $version $bugid
|