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 _begin_fstest metadata auto
13 mtab_output=$TEST_DIR/mtab_output
15 # Import common functions.
23 while [ $count -gt 0 ]; do
24 touch `printf $pattern $count`
29 # real QA test starts here
34 [ "X$TEST_DIR" = "X" ] && exit 1
44 $here/src/t_mtab 50 $mtab_output &
45 $here/src/t_mtab 50 $mtab_output &
46 $here/src/t_mtab 50 $mtab_output &
50 $here/src/t_mtab 10000
52 echo directory entries:
54 echo directory entries >> $seqres.full
55 ls -li >> $seqres.full
58 # directory with only a few entries
61 # directory with a hundred more entries, each 4chars wide
65 # directory with a thousand more entries, each 8chars wide