2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 Red Hat, Inc. All Rights Reserved.
7 # Ensure that xfs_repair can properly spot SGI_ACL_FILE
8 # and SGI_ACL_DEFAULT in the root attr namespace.
10 # Due to bugs here and there, we sometimes matched on partial
11 # strings with those names, and threw off xfs_repair.
14 _begin_fstest attr acl repair quick auto
16 # Import common functions.
20 # real QA test starts here
26 _scratch_mkfs >/dev/null 2>&1
29 # Create root attr names which are substrings or superstrings
30 # of the reserved ACL names, and make sure xfs_repair copes.
32 # Due to various bugs, either the compared length was shorter
33 # than the reserved name (7 chars), so substrings matched, and/or only
34 # the reserved name length was compared, so superstrings matched.
36 rm -f $SCRATCH_MNT/$seq.*
38 # actual reserved names:
39 # SGI_ACL_FILE SGI_ACL_DEFAULT
42 SGI_ACL_FILE_FOO SGI_ACL_DEFAULT_FOO; do
43 touch $SCRATCH_MNT/${seq}.${NAME}
44 $ATTR_PROG -R -s $NAME -V "Wow, such $NAME" $SCRATCH_MNT/$seq.$NAME \
48 # Older repair failed because it sees the above names as matching
49 # SGI_ACL_FILE / SGI_ACL_DEFAULT but w/o valid acls on them
51 # The test harness will catch this (false positive) corruption