fsx: Replace use of bcmp() with memcmp()
[xfstests-dev.git] / 204
1 #! /bin/sh
2 # FS QA Test No. 204
3 #
4 # Test out ENOSPC flushiung on small filesystems.
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2009 Christoph Hellwig.
8 #-----------------------------------------------------------------------
9 #
10 # creator
11 owner=hch@lst.de
12
13 seq=`basename $0`
14 echo "QA output created by $seq"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 status=1        # failure is the default!
19
20 # get standard environment, filters and checks
21 . ./common.rc
22 . ./common.filter
23
24 # real QA test starts here
25 _supported_fs xfs
26 _supported_os Linux
27
28 _require_scratch
29
30 _scratch_mkfs_xfs -d size=104m >/dev/null
31 _scratch_mount
32
33 for i in `seq 1 22500`; do
34     echo -n > $SCRATCH_MNT/$i
35     echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > $SCRATCH_MNT/$i
36 done
37
38 # success, all done
39 echo "*** done"
40 rm -f $seq.full
41 status=0