2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
7 # Check use of ACLs (extended attributes) on a full filesystem
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
16 # Something w/ enough data to fill 50M of fs...
19 # fall back in case /lib/modules doesn't exist
20 [ -d $filler ] || filler=/usr
26 _scratch_unmount 2>/dev/null
28 trap "_cleanup; rm -f $tmp.*; exit \$status" 0 1 2 3 15
30 # get standard environment, filters and checks
35 # real QA test starts here
39 [ ! -d $filler ] && _notrun "No directory to source files from"
46 echo "*** create filesystem"
49 _scratch_unmount >/dev/null 2>&1
50 echo "*** MKFS ***" >>$seqres.full
51 echo "" >>$seqres.full
52 SIZE=`expr 50 \* 1024 \* 1024`
53 _scratch_mkfs_sized $SIZE >>$seqres.full 2>&1 \
54 || _fail "mkfs failed"
56 mkdir $SCRATCH_MNT/subdir
58 echo "*** set default ACL"
59 setfacl -R -dm u:fsgqa:rwx,g::rwx,o::r-x,m::rwx $SCRATCH_MNT/subdir
61 echo "*** populate filesystem, pass #1" | tee -a $seqres.full
62 cp -rf $filler $SCRATCH_MNT/subdir >$seqres.full 2>&1
64 echo "*** populate filesystem, pass #2" | tee -a $seqres.full
65 cp -rf $filler $SCRATCH_MNT/subdir >$seqres.full 2>&1