2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
7 # Emulate the way Linux mount manipulates /etc/mtab to attempt to
8 # reproduce a possible bug in rename (see src/t_mtab.c).
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
14 mtab_output=$TEST_DIR/mtab_output
17 status=1 # failure is the default!
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20 # get standard environment, filters and checks
29 while [ $count -gt 0 ]; do
30 touch `printf $pattern $count`
35 # real QA test starts here
42 [ "X$TEST_DIR" = "X" ] && exit 1
52 $here/src/t_mtab 50 $mtab_output &
53 $here/src/t_mtab 50 $mtab_output &
54 $here/src/t_mtab 50 $mtab_output &
58 $here/src/t_mtab 10000
60 echo directory entries:
62 echo directory entries >> $seqres.full
63 ls -li >> $seqres.full
66 # directory with only a few entries
69 # directory with a hundred more entries, each 4chars wide
73 # directory with a thousand more entries, each 8chars wide