generic: test MADV_POPULATE_READ with IO errors
[xfstests-dev.git] / tests / xfs / 024
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 024
6 #
7 # Test out incremental dumps
8 #
9 . ./common/preamble
10 _begin_fstest dump ioctl tape
11
12 status=0        # success is the default!
13
14 # Override the default cleanup function.
15 _cleanup()
16 {
17         _cleanup_dump
18         cd /
19         rm -f $tmp.*
20 }
21
22 # Import common functions.
23 . ./common/dump
24
25 # real QA test starts here
26 _supported_fs xfs
27
28 _require_tape $TAPE_DEV
29 _create_dumpdir_fill
30 # ensure file/dir timestamps precede dump timestamp
31 sleep 2
32 $here/src/bstat $SCRATCH_MNT >>$seqres.full
33 _erase_hard
34 _do_dump
35 _append_dumpdir_fill
36 $here/src/bstat $SCRATCH_MNT >>$seqres.full
37 _erase_hard
38 _do_dump -l 1
39 _do_restore
40 _diff_compare
41
42 # success, all done
43 exit