xfs/029: filter out "extended-header: cycle: 1" from output
[xfstests-dev.git] / tests / xfs / 043
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. 043
6 #
7 # Test out xfsdump/restore but rmv inventory prior to restore.
8 # This checks that the on-disk inventory can be successfully
9 # rebuilt from the on-tape inventory.
10 #
11 seqfull=$0
12 seq=`basename $0`
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 status=1        # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
20
21 _cleanup()
22 {
23         _cleanup_dump
24         cd /
25         rm -f $tmp.*
26 }
27
28 # get standard environment, filters and checks
29 . ./common/rc
30 . ./common/dump
31
32 # real QA test starts here
33 _supported_fs xfs
34 _supported_os Linux
35
36 _require_tape $TAPE_DEV 
37 _create_dumpdir_fill
38 _erase_hard
39 _do_dump_sub
40 rm -rf /var/{,lib/}xfsdump/inventory # delete it - let cleanup fix it
41 _do_restore
42 _diff_compare_sub
43 _ls_compare_sub
44
45 # success, all done
46 status=0
47 exit