205: fix logging
authorDave Chinner <dchinner@redhat.com>
Thu, 10 Nov 2011 00:08:18 +0000 (11:08 +1100)
committerChristoph Hellwig <hch@lst.de>
Thu, 10 Nov 2011 13:43:48 +0000 (13:43 +0000)
Make the logging of operations in test 205 to the 205.full file work
correctly. This prevents the overwrite of mkfs status, and leaves
the 205.full file around for later analysis even on successful test
runs.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
205

diff --git a/205 b/205
index 35d69929009283bf12b675c007d220cd9e41da44..bd916a11f9a7ed9d0cd730bbcf4345504b930e60 100755 (executable)
--- a/205
+++ b/205
@@ -40,12 +40,14 @@ _supported_os Linux
 
 _require_scratch
 
-_scratch_mkfs_xfs -d size=16m -b size=512 >/dev/null
+rm -f $seq.full
+
+_scratch_mkfs_xfs -d size=16m -b size=512 >> $seq.full 2>&1
 _scratch_mount
 
 # fix the reserve block pool to a known size so that the enospc calculations
 # work out correctly.
-_scratch_resvblks 1024 > $seq.full 2>&1
+_scratch_resvblks 1024 >> $seq.full 2>&1
 
 # on a 16MB filesystem, there's 32768x512byte blocks. used is:
 #      - 4944 in the log,
@@ -79,5 +81,4 @@ dd if=/dev/zero of=$SCRATCH_MNT/fred bs=15 count=$[26745/15*512] 2>&1 | _filter_
 
 # success, all done
 echo "*** done"
-rm -f $seq.full
 status=0