2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2014 Hannes Frederic Sowa. All Rights Reserved.
7 # Test that directory hash entries are place in the correct order.
8 # commit f5ea110 ("xfs: add CRCs to dir2/da node blocks") left the
9 # directory with incorrect hash ordering.
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
17 status=1 # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
26 # get standard environment, filters and checks
30 # real QA test starts here
33 _require_test_program "dirhash_collide"
36 _scratch_mkfs >>$seqres.full 2>&1
39 echo "Silence is golden"
41 testdir=$SCRATCH_MNT/$seq.$$
43 $here/src/dirhash_collide -d -n 10000 $testdir >>$seqres.full 2>&1
45 # check the scratch device
49 # remove all test dirs and let test harness check scratch fs again