2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2011 SGI. All Rights Reserved.
7 # Test xfsdump with a file spanning multiple media files.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=0 # success is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
26 # create a 40 MiB file with an extended attr.
27 # xfsdump writes file data in "extent groups", currently 16 MiB in size. After
28 # writing an extent group or finishing a file, xfsdump will start a new media
29 # file if it is over the suggested size. With a single 40 MiB file and using a
30 # suggested media file size of 12 MiB below, this dump will be contained in 3
35 cat <<End-of-File >$tmp.config
36 # pathname size user group perm name value namespace
37 biggg 41943040 $nobody $nobody 777 attr1 some_text1 root
41 _do_create_dumpdir_fill
45 # get standard environment, filters and checks
50 # real QA test starts here
53 _require_tape $TAPE_DEV
54 _require_attrs trusted