common/rc: add _scratch_{u}mount_idmapped() helpers
[xfstests-dev.git] / tests / generic / 257
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2011 GraÅžvydas Ignotas
4 #
5 #
6 # Check that no duplicate d_off values are returned and that those
7 # values are seekable. Most work is done by the C program here.
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16
17 _cleanup()
18 {
19         rm -rf $TEST_DIR/ttt
20 }
21 trap "_cleanup; exit \$status" 0 1 2 3 15
22
23 # get standard environment, filters and checks
24 . ./common/rc
25 . ./common/filter
26
27 # real QA test starts here
28 _supported_fs generic
29 _require_test
30
31 mkdir $TEST_DIR/ttt
32 for n in {1..168}; do
33     touch $TEST_DIR/ttt/$n;
34 done
35 $here/src/t_dir_offset2 $TEST_DIR/ttt
36
37 # success, all done
38 echo "*** done"
39 rm -f $seqres.full
40 status=0