fstests: convert remaining tests to SPDX license tags
[xfstests-dev.git] / tests / xfs / 038
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. 038
6 #
7 # Test xfsdump/restore to a remote linux tape 
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 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
17
18 # get standard environment, filters and checks
19 . ./common/rc
20 . ./common/dump
21
22 # real QA test starts here
23 _supported_fs xfs
24 _supported_os Linux
25
26 _require_tape $RMT_TAPE_DEV
27 _create_dumpdir_fill
28 _erase_hard
29 _do_dump
30 _do_restore
31 _diff_compare
32
33 # success, all done
34 status=0
35 exit