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.
9 # level 1 - 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
34 _require_legacy_v2_format
37 # ensure file/dir timestamps precede dump timestamp
39 $here/src/bstat $SCRATCH_MNT >>$seqres.full
41 echo "*** Level 0 dump, format 2"
42 _do_dump_file -f $tmp.l0 -K
45 $here/src/bstat $SCRATCH_MNT >>$seqres.full
47 echo "*** Level 1 dump, current format"
48 _do_dump_file -l 1 -f $tmp.l1
50 echo "*** Restore using format 2 level 0"
52 _do_restore_file_cum -f $tmp.l0
54 echo "*** Restore using current format level 1"
55 _do_restore_file_cum -f $tmp.l1