1ff406a68978d0bd69eb565a210e502bb6eb858c
[xfstests-dev.git] / tests / xfs / 023
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. 023
6 #
7 # To test xfsdump/restore to tape using a directory with
8 # files with data created by src/fill.
9 #
10 seqfull=$0
11 . ./common/preamble
12 _begin_fstest dump ioctl tape
13
14 status=0        # success is the default!
15
16 # Override the default cleanup function.
17 _cleanup()
18 {
19         _cleanup_dump
20         cd /
21         rm -f $tmp.*
22 }
23
24 # Import common functions.
25 . ./common/dump
26
27 # real QA test starts here
28 _supported_fs xfs
29
30 _require_tape $TAPE_DEV
31 _create_dumpdir_fill
32 _erase_hard
33 _do_dump_sub
34 _do_restore
35 _diff_compare_sub
36 _ls_compare_sub
37
38 # success, all done
39 exit