2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2013 Red Hat, Inc. All Rights Reserved.
7 # Verify multi-stream xfsdump/restore preserves extended attributes
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
24 # get standard environment, filters and checks
30 # real QA test starts here
32 # Modify as appropriate.
43 _create_dumpdir_fill_ea
45 # Create and add wholly-sparse file to the dump directory
46 $XFS_IO_PROG -f -c "truncate 1t" $dump_dir/sparsefile >> $seqres.full 2>&1 \
47 || _fail "could not create \"$dump_dir\"/sparsefile"
49 # Set the xattr on sparsefile
50 $ATTR_PROG -s $attr_name -V $attr_value $dump_dir/sparsefile >> $seqres.full 2>&1 \
51 || _fail "could not set ATTR for \"$dump_dir\"/sparsefile"
53 _do_dump_multi_file --multi 4 >> $seqres.full 2>&1
54 _do_restore_multi_file --multi 4 >> $seqres.full 2>&1