summaryrefslogtreecommitdiffstats
path: root/28/regr/testcase
diff options
context:
space:
mode:
Diffstat (limited to '28/regr/testcase')
-rwxr-xr-x28/regr/testcase25
1 files changed, 25 insertions, 0 deletions
diff --git a/28/regr/testcase b/28/regr/testcase
new file mode 100755
index 0000000..8a86c88
--- /dev/null
+++ b/28/regr/testcase
@@ -0,0 +1,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