4 # Test symlinks & ELOOP
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 # Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane,
24 # Mountain View, CA 94043, USA, or: http://www.sgi.com
25 #-----------------------------------------------------------------------
31 # note ELOOP limit used to be 32 but changed to 8. Who knows what
36 echo "QA output created by $seq"
40 status=0 # success is the default!
41 trap "_cleanup; exit \$status" 0 1 2 3 15
46 rm -f symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9} symlink_self empty_file
54 -e "s/creating \`//g" \
55 -e "s/setting times of \`//g" \
56 -e "s/cannot touch \`//g" \
60 # get standard environment, filters and checks
64 # link correct .out file
65 _link_out_file $seq.out
67 # real QA test starts here
68 _supported_fs xfs udf nfs
70 # IRIX UDF does not support symlinks
71 if [ $FSTYP == 'udf' ]; then
74 _supported_os Linux IRIX
83 for f in symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
89 ln -s symlink_self symlink_self
91 echo "*** touch deep symlinks"
93 _touch symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
95 echo "*** touch recusive symlinks"