4 # Exercise filesystem full behaviour - run numerous fsstress
5 # processes in write mode on a small filesystem. NB: delayed
6 # allocate flushing is quite deadlock prone at the filesystem
7 # full boundary due to the fact that we will retry allocation
8 # several times after flushing, before giving back ENOSPC.
10 # Note that this test will intentionally cause console msgs of form:
11 # dksc0d1s4: Process [fsstress] ran out of disk space
12 # dksc0d1s4: Process [fsstress] ran out of disk space
13 # dksc0d1s4: Process [fsstress] ran out of disk space
16 #-----------------------------------------------------------------------
17 # Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
18 #-----------------------------------------------------------------------
24 echo "QA output created by $seq"
33 umount $SCRATCH_MNT 2>/dev/null
36 trap "_cleanup; exit \$status" 0 1 2 3 15
38 # get standard environment, filters and checks
42 # real QA test starts here
44 _supported_os IRIX Linux
58 umount $SCRATCH_DEV >/dev/null 2>&1
59 echo "*** mkfs -dsize=$fsz,agcount=$ags" >>$seq.full
61 _scratch_mkfs_xfs -dsize=$fsz,agcount=$ags >>$seq.full 2>&1 \
62 || _fail "size=$fsz,agcount=$ags mkfs failed"
63 _scratch_mount >>$seq.full 2>&1 \
64 || _fail "mount failed"
66 # -w ensures that the only ops are ones which cause write I/O
67 ltp/fsstress -d $SCRATCH_MNT -w -p $procs -n $nops $FSSTRESS_AVOID \
72 echo "*** test out-of-space handling for random write operations"
79 workout $filesize $agcount $numprocs $numops