4 # check out-of-space behaviour
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
18 status=1 # success is the default!
20 # get standard environment, filters and checks
29 trap "_cleanup; exit \$status" 0 1 2 3 15
33 _df_dir $SCRATCH_MNT | $AWK_PROG '{ print $5 }'
36 # real QA test starts here
38 _supported_os IRIX Linux
43 _scratch_mkfs_xfs -d size=50m >/dev/null || _fail "mkfs failed"
44 _scratch_mount || _fail "mount failed"
45 out=$SCRATCH_MNT/fillup.$$
51 echo " *** failed to get free space (0)"
54 echo "free space at start $free0" >> $seq.full
56 echo "fill disk:" # well, filesystem really - not disk
58 POSIXLY_CORRECT=yes dd if=/dev/zero of=$out bs=1024k 2>&1 | _filter_dd
60 echo "check free space:"
65 echo " *** failed to get free space (1)"
68 echo "free space after fill $free1" >> $seq.full
72 echo " *** file not created"
78 echo " *** file created with zero length"
87 echo " *** file not deleted"
93 echo " *** file still exists"
98 echo "check free space:"
103 echo " *** failed to get free space (2)"
106 echo "free space after delete $free2" >> $seq.full
109 _within_tolerance "free space" $free2 $free0 1% -v