Skip to contentSkip to conversation

xfstests: allow deeper symlink recursion in 005

PATCH In review Christoph Hellwig 3 participants 3 messages Apr 10, 2011 – Apr 13, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfstests: allow deeper symlink recursion in 005

Recent kernels allow more than 40 nested symlinks, so up the limit to still reproduce a failure.

005 +3 -3
Index: xfstests-dev/005
===================================================================
@@ -45,7 +45,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 1
 _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 ""

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

Reviewed-by on v1 1/1
#2 lore raw
In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

Recent kernels allow more than 40 nested symlinks, so up the limit to still reproduce a failure.

Looks good, and I confirm it fixes the output mismatch on 005.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs