fstests: remove _wipe_fs from dump testing entirely
[xfstests-dev.git] / tests / xfs / 281
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2012 SGI.  All Rights Reserved.
4 #
5 # FS QA Test No. 281
6 #
7 # Test that xfsdump can generate a format 2 dump.
8 #
9 . ./common/preamble
10 _begin_fstest dump ioctl auto quick
11
12 # Override the default cleanup function.
13 _cleanup()
14 {
15         _cleanup_dump
16         cd /
17         rm -f $tmp.*
18 }
19
20 # Import common functions.
21 . ./common/dump
22
23 # real QA test starts here
24 _supported_fs xfs
25 _require_legacy_v2_format
26 _require_scratch
27 _scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
28 _scratch_mount
29
30 _create_dumpdir_fill
31
32 echo "*** Dump using format 2"
33 _do_dump_file -K
34
35 echo "*** Verify it's a format 2 dump"
36 file $dump_file | cut -d: -f 2
37
38 echo "*** Restoring format 2 dump"
39 _do_restore_file
40 _diff_compare
41
42 # success, all done
43 status=0
44 exit