fstests: remove _wipe_fs from dump testing entirely
[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 _require_scratch
32 _scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
33 _scratch_mount
34 _create_dumpdir_fill
35 _erase_hard
36 _do_dump_sub
37 _do_restore
38 _diff_compare_sub
39 _ls_compare_sub
40
41 # success, all done
42 exit