4 # Check use of ACLs (extended attributes) on a full filesystem
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
19 #filler=$here/../../linux
20 filler=/home/fsgqa/isms/2.4.x-xfs
26 umount $SCRATCH_MNT 2>/dev/null
28 trap "_cleanup; rm -f $tmp.*; exit \$status" 0 1 2 3 15
30 # get standard environment, filters and checks
34 # real QA test starts here
38 [ ! -d $filler ] && _notrun "No linux directory to source files from"
42 echo "*** create filesystem"
45 umount $SCRATCH_DEV >/dev/null 2>&1
46 echo "*** MKFS ***" >>$seq.full
48 _scratch_mkfs_xfs -dsize=50m >>$seq.full 2>&1 \
49 || _fail "mkfs failed"
50 _scratch_mount >>$seq.full 2>&1 \
51 || _fail "mount failed"
52 mkdir $SCRATCH_MNT/subdir
54 echo "*** set default ACL"
55 setfacl -R -dm u:fsgqa:rwx,g::rwx,o::r-x,m::rwx $SCRATCH_MNT/subdir
57 echo "*** populate filesystem, pass #1" | tee -a $seq.full
58 cp -rf $filler $SCRATCH_MNT/subdir >$seq.full 2>&1
60 echo "*** populate filesystem, pass #2" | tee -a $seq.full
61 cp -rf $filler $SCRATCH_MNT/subdir >$seq.full 2>&1