summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul C S <rahulcs@redhat.com>2012-01-06 15:06:52 +0530
committerRahul C S <rahulcs@redhat.com>2012-01-06 15:11:06 +0530
commit50812e6b6d9962d19d6d63275229351f4ff9d73c (patch)
treedbb800c3ad259acef4133c1123707069c0b61d62
parent20bdd60eea85f58a61b60e62575b7ffe989fe39b (diff)
find fails with loop detected error
script tests find error due to "File system loop detected" on a nfs mount. Change-Id: I5d9e547643fd5c7ae80b5a0870287bc32dea7abb BUG: 2051 Signed-off-by: Rahul C S <rahulcs@redhat.com>
-rwxr-xr-xdvm/2051/testcase33
1 files changed, 33 insertions, 0 deletions
diff --git a/dvm/2051/testcase b/dvm/2051/testcase
new file mode 100755
index 0000000..f1071da
--- /dev/null
+++ b/dvm/2051/testcase
@@ -0,0 +1,33 @@
+#!/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;
+if [ $? -ne 0 ]; then
+ exit 22;
+fi
+
+mount_nfs $VOLNAME 2>/dev/null 1>/dev/null;
+if [ $? -ne 0 ]; then
+ exit 22;
+fi
+
+sleep 10;
+
+df -h | grep $VOLNAME 2>/dev/null 1>/dev/null;
+if [ $? -ne 0 ]; then
+ exit 22;
+fi
+
+cp -r /etc/ $NFS_MOUNT;
+
+find $NFS_MOUNT | grep "find: File system loop detected" 2>/dev/null 1>/dev/null;
+if [ $? -eq 0 ]; then
+ exit 22;
+else
+ exit 0;
+fi