blob: 0792a39ff5207c5c564509534d79757cce113cd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0+
# Copyright (c) 2019 Oracle, Inc. All Rights Reserved.
#
# FS QA Test No. 523
#
# Check that xattrs can have slashes in their name.
#
. ./common/preamble
_begin_fstest auto quick attr
# Import common functions.
. ./common/attr
. ./common/filter
# real QA test starts here
_supported_fs generic
_require_scratch
_require_attrs
_scratch_mkfs >> $seqres.full 2>&1
_scratch_mount
echo "set attr"
file=$SCRATCH_MNT/moofile
touch $file
$SETFATTR_PROG -n "user.boo/hoo" -v "woof" $file
echo "check attr"
_getfattr -d --absolute-names $file | _filter_scratch
# Now we let the fsck tool check the filesystem, because xfs_repair had a
# regression where it would flag and erase any xattr with a '/' in it.
status=0
exit
|