From 50812e6b6d9962d19d6d63275229351f4ff9d73c Mon Sep 17 00:00:00 2001 From: Rahul C S Date: Fri, 6 Jan 2012 15:06:52 +0530 Subject: 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 --- dvm/2051/testcase | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 dvm/2051/testcase 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 -- cgit