2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2012 SGI. All Rights Reserved.
7 # Test incremental dumps containing a mix of dump formats.
8 # level 0 - current format
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
17 status=1 # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
27 # get standard environment, filters and checks
31 # real QA test starts here
35 _require_legacy_v2_format
38 # ensure file/dir timestamps precede dump timestamp
40 $here/src/bstat $SCRATCH_MNT >>$seqres.full
42 echo "*** Level 0 dump, current format"
43 _do_dump_file -f $tmp.l0
46 $here/src/bstat $SCRATCH_MNT >>$seqres.full
48 echo "*** Level 1 dump, format 2"
49 _do_dump_file -l 1 -f $tmp.l1 -K
51 # note the first restore has to be told to use format
52 # 2 generation numbers due to the unusual case of
53 # having a new-format dump followed by an old-format.
54 echo "*** Restore using current format level 0"
56 _do_restore_file_cum -f $tmp.l0 -K
58 echo "*** Restore using format 2 level 1"
59 _do_restore_file_cum -f $tmp.l1