Make sure 167 completes and unmounts scratch correctly
[xfstests-dev.git] / 035
1 #! /bin/sh
2 # FS QA Test No. 035
3 #
4 # Test doing multiple dumps to tape and restoring the 2nd one
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=1        # failure 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 # link correct .out file
26 _link_out_file $seq.out
27
28 # real QA test starts here
29 _supported_fs xfs
30 _supported_os IRIX Linux
31
32 _require_tape $TAPE_DEV
33 _create_dumpdir_fill
34 _erase_hard
35 _do_dump -L $seq.1
36 _rewind
37 _create_dumpdir_fill2
38 _do_dump -L $seq.2
39 _do_restore -L $seq.2
40 _diff_compare
41
42 # success, all done
43 status=0
44 exit