summaryrefslogtreecommitdiffstats
path: root/dvm/2059/testcase
diff options
context:
space:
mode:
Diffstat (limited to 'dvm/2059/testcase')
-rwxr-xr-xdvm/2059/testcase28
1 files changed, 28 insertions, 0 deletions
diff --git a/dvm/2059/testcase b/dvm/2059/testcase
new file mode 100755
index 0000000..14b83e4
--- /dev/null
+++ b/dvm/2059/testcase
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+source $cwd/regression_helpers
+
+VOLNAME="vol$global_bug_id";
+
+$GLUSTERFSDIR/gluster volume create $VOLNAME $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 2>/dev/null 1>/dev/null;
+
+$GLUSTERFSDIR/gluster volume start $VOLNAME 2>/dev/null 1>/dev/null;
+
+$GLUSTERFSDIR/glusterfs -s $(hostname) -p /tmp/client.pid -l /tmp/regr.log --volfile-id=$VOLNAME $FUSE_MOUNT;
+
+FUSE_PID=`cat /tmp/client.pid`
+
+sleep 5
+
+kill -USR1 $FUSE_PID
+
+OUT=`grep 'xlator.mount.fuse.entry_timeout=1.000000' /tmp/glusterdump.$FUSE_PID | wc -l`
+
+if [ "$OUT" -eq "0" ]; then
+ RET="1";
+else
+ RET="0";
+fi
+
+rm -f /tmp/glusterdump.$FUSE_PID
+exit $RET;