2 # SPDX-License-Identifier: GPL-2.0+
3 # Copyright (c) 2019 Oracle, Inc. All Rights Reserved.
7 # Check that xattrs can have slashes in their name.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
13 status=1 # failure is the default!
14 trap "_cleanup; exit \$status" 0 1 2 3 15
22 # get standard environment, filters and checks
27 # real QA test starts here
35 _scratch_mkfs >> $seqres.full 2>&1
39 file=$SCRATCH_MNT/moofile
41 $SETFATTR_PROG -n "user.boo/hoo" -v "woof" $file
44 _getfattr -d --absolute-names $file | _filter_scratch
46 # Now we let the fsck tool check the filesystem, because xfs_repair had a
47 # regression where it would flag and erase any xattr with a '/' in it.