blob: 8564c7e5beabd5a50c23321bc4e57e6a2eb5973e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
description="# (313) rename is broken"
comments="#when try to rename a file using mv it fails"
source ../../init
start_glusterfs
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
cleanup_glusterfs
|