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

description="# (28) Deleting a backend export directory in an AFR setup can cause a segfault while trying to self heal"
comments="# If the backend export directory is deleted, self heal tries to mkdir and while doing so accesses loc->parent which is NULL and segfaults."

source ../../init

start_glusterfs

sleep 5

rmdir $EXPORTDIR/export1
for var in `seq 1 100`; do
	ls $MOUNTDIR/client1 2> tmpfile
	if [ $(grep "Transport endpoint is not connected" tmpfile | wc -l) -ne 0 ];then
                not_ok $description
                comment $comments
                break
        fi
done
rm tmpfile

[ $var -eq 100 ] && ok $description

cleanup_glusterfs