4bbfb5f5c8f0b53445c9d965a9f4fa87bf0442e6
[xfstests-dev.git] / tests / xfs / 059
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001, 2011 SGI.  All Rights Reserved.
4 #
5 # FS QA Test No. 059
6 #
7 # Test multi-stream xfsdump/xfsrestore.
8 #
9 . ./common/preamble
10 _begin_fstest dump ioctl auto quick
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_multi_stream
29
30 _create_dumpdir_fill_multi
31 _do_dump_multi_file --multi 4
32 _do_restore_multi_file --multi 4
33 _ls_compare_sub
34 _diff_compare
35
36 # success, all done
37 exit