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 _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, format 2"
36 _do_dump_file -f $tmp.l0 -K
39 $here/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