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 _begin_fstest auto dump
12 # Override the default cleanup function.
20 # Import common functions.
25 # real QA test starts here
27 # Modify as appropriate.
35 _create_dumpdir_fill_ea
37 # Create and add wholly-sparse file to the dump directory
38 $XFS_IO_PROG -f -c "truncate 1t" $dump_dir/sparsefile >> $seqres.full 2>&1 \
39 || _fail "could not create \"$dump_dir\"/sparsefile"
41 # Set the xattr on sparsefile
42 $ATTR_PROG -s $attr_name -V $attr_value $dump_dir/sparsefile >> $seqres.full 2>&1 \
43 || _fail "could not set ATTR for \"$dump_dir\"/sparsefile"
45 _do_dump_multi_file --multi 4 >> $seqres.full 2>&1
46 _do_restore_multi_file --multi 4 >> $seqres.full 2>&1