Fix compilation error with recent XFS headers.
[xfstests-dev.git] / 043
1 #! /bin/sh
2 # FS QA Test No. 043
3 #
4 # Test out xfsdump/restore but rmv inventory prior to restore.
5 # This checks that the on-disk inventory can be successfully
6 # rebuilt from the on-tape inventory.
7 #
8 #-----------------------------------------------------------------------
9 # Copyright (c) 2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
10 #-----------------------------------------------------------------------
11 #
12 # creator
13 owner=tes@sgi.com
14
15 seq=`basename $0`
16 echo "QA output created by $seq"
17
18 here=`pwd`
19 tmp=/tmp/$$
20 status=1        # failure is the default!
21 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
22
23 # get standard environment, filters and checks
24 . ./common.rc
25 . ./common.dump
26
27 # link correct .out file
28 _link_out_file $seq.out
29
30 # real QA test starts here
31 _supported_fs xfs
32 _supported_os IRIX Linux
33
34 _require_tape $TAPE_DEV 
35 _create_dumpdir_fill
36 _erase_hard
37 _do_dump_sub
38 rm -rf /var/{,lib/}xfsdump/inventory # delete it - let cleanup fix it
39 _do_restore
40 _diff_compare_sub
41 _ls_compare_sub
42
43 # success, all done
44 status=0
45 exit