generic: test MADV_POPULATE_READ with IO errors
[xfstests-dev.git] / tests / xfs / 056
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 056
6 #
7 # Test xfsdump/xfsrestore to a dump file (as opposed to a tape)
8 # and test restoring various permissions/modes
9 #
10 . ./common/preamble
11 _begin_fstest dump ioctl auto quick
12
13 status=0        # success is the default!
14
15 # Override the default cleanup function.
16 _cleanup()
17 {
18         _cleanup_dump
19         cd /
20         rm -f $tmp.*
21 }
22
23 # Import common functions.
24 . ./common/dump
25
26 # real QA test starts here
27 _supported_fs xfs
28
29 _create_dumpdir_fill_perm
30 _do_dump_file
31 _do_restore_file
32 _ls_compare_sub
33
34 # success, all done
35 exit