xfs: convert tests to SPDX license tags
[xfstests-dev.git] / tests / xfs / 068
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2014 Eric Sandeen.  All Rights Reserved.
4 #
5 # FS QA Test No. 068
6 #
7 # Test out a level 0 dump/restore of a subdir to a file
8 #
9 # Use fsstress to create a larger directory structure with a mix of files
10 # Test for regression caused by
11 # c7cb51d xfs: fix error handling at xfs_inumbers
12 #
13 seqfull=$0
14 seq=`basename $0`
15 seqres=$RESULT_DIR/$seq
16 echo "QA output created by $seq"
17
18 here=`pwd`
19 tmp=/tmp/$$
20 status=0        # success is the default!
21 trap "rm -rf $tmp.*; exit \$status" 0 1 2 3 15
22
23 . ./common/rc
24 . ./common/dump
25
26 # real QA test starts here
27 _supported_fs xfs
28 _supported_os Linux
29
30 _create_dumpdir_stress_num 4096
31 _do_dump_restore
32
33 # success, all done
34 exit