common/rc: factor out _scratch_xfs_[get|set]_sb_field
[xfstests-dev.git] / tests / xfs / 068
1 #! /bin/bash
2 # FS QA Test No. 068
3 #
4 # Test out a level 0 dump/restore of a subdir to a file
5 #
6 # Use fsstress to create a larger directory structure with a mix of files
7 # Test for regression caused by
8 # c7cb51d xfs: fix error handling at xfs_inumbers
9 #
10 #-----------------------------------------------------------------------
11 # Copyright (c) 2014 Eric Sandeen.  All Rights Reserved.
12 #
13 # This program is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License as
15 # published by the Free Software Foundation.
16 #
17 # This program is distributed in the hope that it would be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write the Free Software Foundation,
24 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
25 #
26 #-----------------------------------------------------------------------
27 #
28
29 seqfull=$0
30 seq=`basename $0`
31 seqres=$RESULT_DIR/$seq
32 echo "QA output created by $seq"
33
34 here=`pwd`
35 tmp=/tmp/$$
36 status=0        # success is the default!
37 trap "rm -rf $tmp.*; exit \$status" 0 1 2 3 15
38
39 . ./common/rc
40 . ./common/dump
41
42 # real QA test starts here
43 _supported_fs xfs
44 _supported_os Linux
45
46 _create_dumpdir_stress_num 4096
47 _do_dump_restore
48
49 # success, all done
50 exit