235: do smaller test IO
authorEric Sandeen <sandeen@redhat.com>
Thu, 29 Mar 2012 03:26:29 +0000 (22:26 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 29 Mar 2012 03:26:29 +0000 (22:26 -0500)
Test 235 fails on ext2/ext3 with 1024 fs block size because a
16k write uses an extra metadata block.  If we do a smaller write
this won't happen.

Reported by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
235
235.out

diff --git a/235 b/235
index 7150fca1e099fe0a84341c83ceea6dc7131d2b9d..0c2ae8fd138d8425b74a2af12db5f7c8df45b50b 100755 (executable)
--- a/235
+++ b/235
@@ -70,7 +70,7 @@ mount -o remount,ro $SCRATCH_DEV 2>&1 | tee -a $seq.full | _filter_scratch
 touch $SCRATCH_MNT/failed 2>&1 | tee -a $seq.full | _filter_scratch
 mount -o remount,rw $SCRATCH_DEV 2>&1 | tee -a $seq.full | _filter_scratch
 
 touch $SCRATCH_MNT/failed 2>&1 | tee -a $seq.full | _filter_scratch
 mount -o remount,rw $SCRATCH_DEV 2>&1 | tee -a $seq.full | _filter_scratch
 
-$XFS_IO_PROG -F -c 'pwrite 0 16k' -c 'fsync' \
+$XFS_IO_PROG -F -c 'pwrite 0 8k' -c 'fsync' \
                        $SCRATCH_MNT/testfile >>$seq.full 2>&1
 repquota -u -g $SCRATCH_MNT  | grep -v "^root" | _filter_scratch
 
                        $SCRATCH_MNT/testfile >>$seq.full 2>&1
 repquota -u -g $SCRATCH_MNT  | grep -v "^root" | _filter_scratch
 
diff --git a/235.out b/235.out
index 345e29d686edfba03b044a7574ffae32a837152c..a0956945e99566aa7b9c026922a7b01381910abd 100644 (file)
--- a/235.out
+++ b/235.out
@@ -21,7 +21,7 @@ Block grace time: 7days; Inode grace time: 7days
                         Block limits                File limits
 User            used    soft    hard  grace    used  soft  hard  grace
 ----------------------------------------------------------------------
                         Block limits                File limits
 User            used    soft    hard  grace    used  soft  hard  grace
 ----------------------------------------------------------------------
-fsgqa     --      16       0       0              1     0     0       
+fsgqa     --       8       0       0              1     0     0       
 
 
 *** Report for group quotas on device SCRATCH_DEV
 
 
 *** Report for group quotas on device SCRATCH_DEV
@@ -29,6 +29,6 @@ Block grace time: 7days; Inode grace time: 7days
                         Block limits                File limits
 Group           used    soft    hard  grace    used  soft  hard  grace
 ----------------------------------------------------------------------
                         Block limits                File limits
 Group           used    soft    hard  grace    used  soft  hard  grace
 ----------------------------------------------------------------------
-fsgqa     --      16       0       0              1     0     0       
+fsgqa     --       8       0       0              1     0     0