2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
7 # xfs_repair breaks acls
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
18 # get standard environment, filters and checks
23 # real QA test starts here
31 test=$SCRATCH_MNT/test
33 # make filesystem on scratch using the defaults
34 _do 'make filesystem on $SCRATCH_DEV' '_scratch_mkfs'
35 _do 'mount filesytem' '_try_scratch_mount'
37 # create test files and set acls
44 u::---,g::---,o::---,u:$acl2:r-x,m::rwx
46 u::---,g::---,o::---,g:$acl2:r-x,m::-w-"
52 _do "chacl $acl $test.$i"
61 chacl -l $test.$i | _acl_filter_id | sed -e "s!$SCRATCH_MNT!\$SCRATCH_MNT!"
66 echo "acls before repair:"
68 _do 'repair filesystem' '_check_scratch_fs'
69 echo "acls after repair: "