2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (C) 2015 SUSE Linux Products GmbH. All Rights Reserved.
7 # Test rename for various sizes of directories. This is motivated by a bug
8 # in XFS where directory entry file type was not updated properly on rename.
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
28 # real QA test starts here
35 echo "Silence is golden"
39 for (( i = 0; i < $1; i++ )); do
44 # Test renaming of file, symlink over file, symlink, non-existent
68 _scratch_mkfs >> $seqres.full 2>&1
69 _scratch_mount >> $seqres.full 2>&1
71 # Test different directory sizes to test various directory formats
72 for f in 1 2 3 4 5 8 12 18 27 40 60 90 135 202 303 454 681 1020 1530 2295; do
73 mkdir $SCRATCH_MNT/dir$f
74 pushd $SCRATCH_MNT/dir$f >/dev/null