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 _begin_fstest auto dir
14 # Import common functions.
17 # real QA test starts here
20 _require_test_program "dirhash_collide"
22 _scratch_mkfs >>$seqres.full 2>&1
25 echo "Silence is golden"
27 testdir=$SCRATCH_MNT/$seq.$$
29 $here/src/dirhash_collide -d -n 10000 $testdir >>$seqres.full 2>&1
31 # check the scratch device
35 # remove all test dirs and let test harness check scratch fs again