2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2011 SGI. All Rights Reserved.
7 # Test xfsdump with multiple media files where a file ends
8 # at the end of the first media file (i.e., no file is split
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
17 status=0 # success is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
28 # create two 12 MiB files with extended attrs.
29 # xfsdump writes file data in "extent groups", currently 16 MiB in size. After
30 # writing an extent group or finishing a file, xfsdump will start a new media
31 # file if it is over the suggested size. A media file size of 8 MiB is used
32 # below, so after dumping a 12 MiB file xfsdump will start a new media file and
33 # no file will be split across a media file.
37 cat <<End-of-File >$tmp.config
38 # pathname size user group perm name value namespace
39 bigg1 12582912 $nobody $nobody 777 attr1 some_text1 root
40 bigg2 12582912 $nobody $nobody 777 attr2 some_text2 user
44 _do_create_dumpdir_fill
48 # get standard environment, filters and checks
53 # real QA test starts here
57 _require_tape $TAPE_DEV
58 _require_attrs trusted user