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 "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20 # get standard environment, filters and checks
24 # real QA test starts here
28 _require_legacy_v2_format
31 # ensure file/dir timestamps precede dump timestamp
33 src/bstat $SCRATCH_MNT >>$seqres.full
35 echo "*** Level 0 dump, format 2"
36 _do_dump_file -f $tmp.l0 -K
39 src/bstat $SCRATCH_MNT >>$seqres.full
41 echo "*** Level 1 dump, current format"
42 _do_dump_file -l 1 -f $tmp.l1
44 echo "*** Restore using format 2 level 0"
46 _do_restore_file_cum -f $tmp.l0
48 echo "*** Restore using current format level 1"
49 _do_restore_file_cum -f $tmp.l1