4 # Make sure user cannot overwrite, append, delete or move a file created by
5 # root. Modified CXFSQA test 940960 and 940558.
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
9 #-----------------------------------------------------------------------
15 echo "QA output created by $seq"
19 status=0 # success is the default!
20 trap "_cleanup; exit \$status" 0 1 2 3 15
32 echo $1 | su - $qa_user | sed -e "s#.*Permission denied.*#Permission denied#g"
35 # get standard environment, filters and checks
39 # real QA test starts here
40 _supported_fs xfs udf nfs
41 _supported_os Linux IRIX
47 echo foo > $testdir/data_coherency.txt
48 # check basic appending to a file
49 echo bar >> $testdir/data_coherency.txt
53 _user_do "echo goo 2>&1 >> $testdir/data_coherency.txt"
56 _user_do "echo goo 2>&1 > $testdir/data_coherency.txt"
59 _user_do "rm $testdir/data_coherency.txt 2>&1"
62 _user_do "mv $testdir/data_coherency.txt $testdir/data_coherency2.txt 2>&1"
64 cat $testdir/data_coherency.txt