]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests: allow deeper symlink recursion in 005
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Apr 2011 18:20:37 +0000 (11:20 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Apr 2011 18:20:37 +0000 (11:20 -0700)
Recent kernels allow more than 40 nested symlinks, so up the limit
to still reproduce a failure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
005

diff --git a/005 b/005
index 205256cfdd9481197c4e24f052c9f781877f7257..40b8b2e5aa1b4287d7a0119ea1aa306e297193ad 100755 (executable)
--- a/005
+++ b/005
@@ -45,7 +45,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _cleanup()
 {
     cd $testdir
-    rm -f symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9} symlink_self empty_file
+    rm -f symlink_{0,1,2,3,4}{0,1,2,3,4,5,6,7,8,9} symlink_self empty_file
     cd /
     _cleanup_testdir
 }
@@ -82,7 +82,7 @@ cd $testdir
 
 o=empty_file
 touch $o
-for f in symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
+for f in symlink_{0,1,2,3,4}{0,1,2,3,4,5,6,7,8,9}
 do
     ln -s $o $f
     o=$f
@@ -92,7 +92,7 @@ ln -s symlink_self symlink_self
 
 echo "*** touch deep symlinks"
 echo ""
-_touch symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
+_touch symlink_{0,1,2,3,4}{0,1,2,3,4,5,6,7,8,9}
 echo ""
 echo "*** touch recusive symlinks"
 echo ""