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 _begin_fstest dump ioctl auto quick
14 # Override the default cleanup function.
22 # Import common functions.
25 # real QA test starts here
28 _require_legacy_v2_format
31 # ensure file/dir timestamps precede dump timestamp
33 $here/src/bstat $SCRATCH_MNT >>$seqres.full
35 echo "*** Level 0 dump, current format"
36 _do_dump_file -f $tmp.l0
39 $here/src/bstat $SCRATCH_MNT >>$seqres.full
41 echo "*** Level 1 dump, format 2"
42 _do_dump_file -l 1 -f $tmp.l1 -K
44 # note the first restore has to be told to use format
45 # 2 generation numbers due to the unusual case of
46 # having a new-format dump followed by an old-format.
47 echo "*** Restore using current format level 0"
49 _do_restore_file_cum -f $tmp.l0 -K
51 echo "*** Restore using format 2 level 1"
52 _do_restore_file_cum -f $tmp.l1