4 # Emulate the way Linux mount manipulates /etc/mtab to attempt to
5 # reproduce a possible bug in rename (see src/t_mtab.c).
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
9 #-----------------------------------------------------------------------
15 echo "QA output created by $seq"
19 status=1 # failure is the default!
20 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
22 # get standard environment, filters and checks
31 while [ $count -gt 0 ]; do
32 touch `printf $pattern $count`
33 count=`expr $count - 1`
37 # real QA test starts here
42 [ "X$TEST_DIR" = "X" ] && exit 1
56 $here/src/t_mtab 10000
58 echo directory entries:
60 echo directory entries >> $here/$seq.full
61 ls -li >> $here/$seq.full
64 # directory with only a few entries
67 # directory with a hundred more entries, each 4chars wide
71 # directory with a thousand more entries, each 8chars wide