xfs: Check for extent overflow when trivally adding a new extent
[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 "_cleanup; exit \$status" 0 1 2 3 15
17
18 _cleanup()
19 {
20         _cleanup_dump
21         cd /
22         rm -f $tmp.*
23 }
24
25 # get standard environment, filters and checks
26 . ./common/rc
27 . ./common/filter
28 . ./common/dump
29 . ./common/attr
30
31 # real QA test starts here
32 _supported_fs xfs
33
34 _require_attrs trusted user
35
36 # create files with EAs
37 _create_dumpdir_fill_ea
38
39 _do_dump_file
40 _do_restore_file
41
42 # need to compare EAs
43 # so need to get them back
44 _diff_compare_eas
45
46 # success, all done
47 status=0
48 exit