diff options
-rwxr-xr-x | dvm/808017/testcase | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dvm/808017/testcase b/dvm/808017/testcase new file mode 100755 index 0000000..2a0a033 --- /dev/null +++ b/dvm/808017/testcase @@ -0,0 +1,27 @@ +#!/bin/bash + +source $cwd/regression_helpers + +$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/brick1 2>/dev/null 1>/dev/null; + +$GLUSTERFSDIR/gluster volume start $global_bug_id 2>/dev/null 1>/dev/null; + +mount_glusterfs $global_bug_id; + +touch $FUSE_MOUNT/dot; + +ln $FUSE_MOUNT/dot $FUSE_MOUNT/dot2; + +sleep 2; + +rm -rf $FUSE_MOUNT/dot; + +cat $FUSE_MOUNT/dot2 2>/dev/null 1>/dev/null; + +ret=$? + +if [ $ret -eq 0 ]; then + exit 0; +else + exit 1; +fi
\ No newline at end of file |