summaryrefslogtreecommitdiffstats
path: root/dvm/764829
diff options
context:
space:
mode:
authorshylesh <shmohan@redhat.com>2012-01-07 16:05:17 +0530
committershylesh <shmohan@redhat.com>2012-01-07 16:10:48 +0530
commit3b6ab9a690fdb7de7f6d645a9fa28a518c5a1e14 (patch)
tree05af9a1e2251319f4c7ef9c17ffb554e75b8dd20 /dvm/764829
parent93b51950c5e0e1bbc5064a4f83779ec4ef19fde8 (diff)
Check whether .. entry exists on the fuse mount point
Change-Id: I0fffa6410e611b6cd0a869dd3ea87cbb5edae530 BUG: 764829 Signed-off-by: shylesh <shmohan@redhat.com>
Diffstat (limited to 'dvm/764829')
-rw-r--r--dvm/764829/testcase27
1 files changed, 27 insertions, 0 deletions
diff --git a/dvm/764829/testcase b/dvm/764829/testcase
new file mode 100644
index 0000000..bf1d67f
--- /dev/null
+++ b/dvm/764829/testcase
@@ -0,0 +1,27 @@
+#!/bin/bash
+# Bug 764829 ".." entry in mount point missing
+
+source $cwd/regression_helpers
+
+$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/brick1 2>/dev/null 1>/dev/nul
+
+
+
+$GLUSTERFSDIR/gluster volume start $global_bug_id 2>/dev/null 1>/dev/null
+sleep 5
+
+mount_glusterfs $global_bug_id
+cd $FUSE_MOUNT
+
+# Check whether ".." entry exists
+
+ls -a | grep '\.\.' 1>/dev/null 2>/dev/null
+
+ret=$?
+
+if [ $ret -ne 0 ]; then
+ exit 1
+else
+ exit 0
+fi
+