common/rc: add _scratch_{u}mount_idmapped() helpers
[xfstests-dev.git] / tests / xfs / 023
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 023
6 #
7 # To test xfsdump/restore to tape using a directory with
8 # files with data created by src/fill.
9 #
10 seqfull=$0
11 seq=`basename $0`
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
14
15 here=`pwd`
16 tmp=/tmp/$$
17 status=0        # success is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
19
20 _cleanup()
21 {
22         _cleanup_dump
23         cd /
24         rm -f $tmp.*
25 }
26
27 # get standard environment, filters and checks
28 . ./common/rc
29 . ./common/dump
30
31 # real QA test starts here
32 _supported_fs xfs
33
34 _require_tape $TAPE_DEV
35 _create_dumpdir_fill
36 _erase_hard
37 _do_dump_sub
38 _do_restore
39 _diff_compare_sub
40 _ls_compare_sub
41
42 # success, all done
43 exit