summaryrefslogtreecommitdiffstats
path: root/250/regr/testcase
blob: ef078723638938bd7e70cd22527a52760da16f66 (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
#!/bin/bash

description="# Crash in replicate getxattr "
comments="# When setfattr and getfattr on a set of files are being done simultaneously then whenever getfattr is done on a file not present then the client crashes "

source ../../init

start_glusterfs 

sleep 5


cd $MOUNTDIR/client1

$SPECDIR/ss.sh 2> $SPECDIR/tmpfile
if [ $(grep "Transport endpoint is not connected" $SPECDIR/tmpfile | wc -l) -ne 0  ]; then
    not_ok $description
    comment $comments
else
    ok $description
    comment $comments
fi

cd -

rm $SPECDIR/tmpfile

cleanup_glusterfs

if [ $(mount | grep "$MOUNTDIR/client1" | wc -l) -ne 0 ]; then
    umount $MOUNTDIR/client1
    rm -r $MOUNTDIR
fi