xfs: convert tests to SPDX license tags
[xfstests-dev.git] / tests / xfs / 063
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 063
6 #
7 # xfsdump/xfsrestore with EAs
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/filter
21 . ./common/dump
22 . ./common/attr
23
24 # real QA test starts here
25 _supported_fs xfs
26 _supported_os Linux
27
28 _require_attrs
29
30 # create files with EAs
31 _create_dumpdir_fill_ea
32
33 _do_dump_file
34 _do_restore_file
35
36 # need to compare EAs
37 # so need to get them back
38 _diff_compare_eas
39
40 # success, all done
41 status=0
42 exit