xfs: Check for extent overflow when trivally adding a new extent
[xfstests-dev.git] / tests / xfs / 035
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. 035
6 #
7 # Test doing multiple dumps to tape and restoring the 2nd one
8 #
9 seqfull=$0
10 seq=`basename $0`
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
13
14 here=`pwd`
15 tmp=/tmp/$$
16 status=1        # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
18
19 _cleanup()
20 {
21         _cleanup_dump
22         cd /
23         rm -f $tmp.*
24 }
25
26 # get standard environment, filters and checks
27 . ./common/rc
28 . ./common/dump
29
30 # real QA test starts here
31 _supported_fs xfs
32
33 _require_tape $TAPE_DEV
34 _create_dumpdir_fill
35 _erase_hard
36 _do_dump -L $seq.1
37 _rewind
38 _create_dumpdir_fill2
39 _do_dump -L $seq.2
40 _do_restore -L $seq.2
41 _diff_compare
42
43 # success, all done
44 status=0
45 exit