4 # xfs_repair breaks acls
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21 # get standard environment, filters and checks
26 # real QA test starts here
30 [ ! -x /bin/chacl -a ! -x /usr/bin/chacl ] && _notrun "chacl command not found"
35 test=$SCRATCH_MNT/test
37 # make filesystem on scratch using the defaults
38 _do 'make filesystem on $SCRATCH_DEV' '_scratch_mkfs_xfs'
39 _do 'mount filesytem' '_scratch_mount'
41 # create test files and set acls
48 u::---,g::---,o::---,u:$acl2:r-x,m::rwx
50 u::---,g::---,o::---,g:$acl2:r-x,m::-w-"
56 _do "chacl $acl $test.$i"
65 chacl -l $test.$i | _acl_filter_id | sed -e "s!$SCRATCH_MNT!\$SCRATCH_MNT!"
70 echo "acls before repair:"
72 _do 'unmount $SCRATCH_DEV' 'umount $SCRATCH_DEV'
73 _do 'repair filesystem' '_scratch_xfs_repair'
74 _do 'mount filesytem' '_scratch_mount'
75 echo "acls after repair: "