4 # Test xfsdump with multiple media files where a file ends
5 # at the end of the first media file (i.e., no file is split
8 #-----------------------------------------------------------------------
9 # Copyright (c) 2011 SGI. All Rights Reserved.
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License as
13 # published by the Free Software Foundation.
15 # This program is distributed in the hope that it would be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write the Free Software Foundation,
22 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #-----------------------------------------------------------------------
27 seqres=$RESULT_DIR/$seq
28 seqres=$RESULT_DIR/$seq
29 seqres=$RESULT_DIR/$seq
30 echo "QA output created by $seq"
34 status=0 # success is the default!
35 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
38 # create two 12 MiB files with extended attrs.
39 # xfsdump writes file data in "extent groups", currently 16 MiB in size. After
40 # writing an extent group or finishing a file, xfsdump will start a new media
41 # file if it is over the suggested size. A media file size of 8 MiB is used
42 # below, so after dumping a 12 MiB file xfsdump will start a new media file and
43 # no file will be split across a media file.
47 cat <<End-of-File >$tmp.config
48 # pathname size user group perm name value namespace
49 bigg1 12582912 $nobody $nobody 777 attr1 some_text1 root
50 bigg2 12582912 $nobody $nobody 777 attr2 some_text2 user
54 _do_create_dumpdir_fill
58 # get standard environment, filters and checks
63 # real QA test starts here
67 _require_tape $TAPE_DEV