Fix up a configure diagnostic when detecting attr/acl headers.
[xfstests-dev.git] / 077
1 #! /bin/sh
2 # FS QA Test No. 077
3 #
4 # Check use of ACLs (extended attributes) on a full filesystem
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2003 Silicon Graphics, Inc.  All Rights Reserved.
8 #-----------------------------------------------------------------------
9 #
10 # creator
11 owner=nathans@sgi.com
12
13 seq=`basename $0`
14 echo "QA output created by $seq"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 status=1
19 #filler=$here/../../linux
20 filler=/home/fsgqa/isms/2.4.x-xfs
21
22 _cleanup()
23 {
24         cd /
25         echo "*** unmount"
26         umount $SCRATCH_MNT 2>/dev/null
27 }
28 trap "_cleanup; rm -f $tmp.*; exit \$status" 0 1 2 3 15
29
30 # get standard environment, filters and checks
31 . ./common.rc
32 . ./common.filter
33
34 # real QA test starts here
35 _supported_fs xfs
36 _supported_os Linux
37
38 [ ! -d $filler ] && _notrun "No linux directory to source files from"
39
40 _require_scratch
41
42 echo "*** create filesystem"
43
44 rm -f $seq.full
45 umount $SCRATCH_DEV >/dev/null 2>&1
46 echo "*** MKFS ***"                         >>$seq.full
47 echo ""                                     >>$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
53
54 echo "*** set default ACL"
55 setfacl -R -dm u:fsgqa:rwx,g::rwx,o::r-x,m::rwx $SCRATCH_MNT/subdir
56
57 echo "*** populate filesystem, pass #1" | tee -a $seq.full
58 cp -rf $filler $SCRATCH_MNT/subdir >$seq.full 2>&1
59
60 echo "*** populate filesystem, pass #2" | tee -a $seq.full
61 cp -rf $filler $SCRATCH_MNT/subdir >$seq.full 2>&1
62
63 _check_scratch_fs
64
65 echo "*** all done"
66 rm -f $seq.full
67 status=0
68 exit