fixup xfstests Makefile sinch dmapi changes
[xfstests-dev.git] / 024
1 #! /bin/sh
2 # FS QA Test No. 024
3 #
4 # Test out incremental dumps
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
8 #-----------------------------------------------------------------------
9 #
10 # creator
11 owner=tes@sgi.com
12
13 seq=`basename $0`
14 echo "QA output created by $seq"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 status=0        # success is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20
21 # get standard environment, filters and checks
22 . ./common.rc
23 . ./common.dump
24
25 # real QA test starts here
26 _supported_fs xfs
27 _supported_os Linux
28
29 _require_tape $TAPE_DEV
30 _create_dumpdir_fill
31 src/bstat $SCRATCH_MNT >>$here/$seq.full
32 _erase_hard
33 _do_dump
34 _append_dumpdir_fill
35 src/bstat $SCRATCH_MNT >>$here/$seq.full
36 _erase_hard
37 _do_dump -l 1
38 _do_restore
39 _diff_compare
40
41 # success, all done
42 exit