xfs/074: double the data section size
PATCH 1/1 xfs/074: double the data section size
When testing 512 block size xfs, xfs/074 fails as
QA output created by 074
+fallocate: No space left on device
Silence is golden
That's because 40051712*512=20G < 30G.
Doubling the filesystem size makes the test on 512 block size xfs pass, and test still fails on unpatched kernel.
--- tests/xfs/074 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/xfs/074 +1 -1
@@ -62,7 +62,7 @@ mkdir -p $LOOP_MNT $XFS_IO_PROG -ft -c "truncate 1t" $LOOP_FILE >> $seqres.full LOOP_DEV=`_create_loop_device $LOOP_FILE` -_mkfs_dev -d size=40051712b,agcount=4 -l size=32m $LOOP_DEV +_mkfs_dev -d size=80103424b,agcount=4 -l size=32m $LOOP_DEV _mount $LOOP_DEV $LOOP_MNT # Corrupt the BMBT by creating extents larger than MAXEXTLEN
Signature · 1 line
2.4.3
Quoted 21 lines · Eryu Guan
When testing 512 block size xfs, xfs/074 fails as
QA output created by 074
+fallocate: No space left on device
Silence is goldenThat's because 40051712*512=20G < 30G.
Doubling the filesystem size makes the test on 512 block size xfs pass, and test still fails on unpatched kernel.
Signed-off-by Eryu Guan <[email protected]>--- tests/xfs/074 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/xfs/074 +0
-0
tests/xfs/074 mkdir -p $LOOP_MNT · line 66
Quoted 6 lines
tests/xfs/074 +1
-1@@ -62,7 +62,7 @@ mkdir -p $LOOP_MNT $XFS_IO_PROG -ft -c "truncate 1t" $LOOP_FILE >> $seqres.full LOOP_DEV=`_create_loop_device $LOOP_FILE` -_mkfs_dev -d size=40051712b,agcount=4 -l size=32m $LOOP_DEV +_mkfs_dev -d size=80103424b,agcount=4 -l size=32m $LOOP_DEV _mount $LOOP_DEV $LOOP_MNT
That was sized to give AGs of a specific size, which originally contributed to the problem being exposed. You should change the block count specification to a size specification so the filesysetm being made on 4k block size filesystems remains unchanged.
size = 40051712b
= 40051712 * 4096 = 164,051,812,352 = 156452m
i.e.
+_mkfs_dev -d size=156452m,agcount=4 -l size=32m $LOOP_DEV
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Quoted 34 lines · Dave Chinner
Quoted 21 lines · Eryu Guan
When testing 512 block size xfs, xfs/074 fails as
QA output created by 074
+fallocate: No space left on device
Silence is goldenThat's because 40051712*512=20G < 30G.
Doubling the filesystem size makes the test on 512 block size xfs pass, and test still fails on unpatched kernel.
Signed-off-by Eryu Guan <[email protected]>--- tests/xfs/074 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/xfs/074 +0
-0tests/xfs/074 mkdir -p $LOOP_MNT · line 66
Quoted 6 lines
tests/xfs/074 +1
-1@@ -62,7 +62,7 @@ mkdir -p $LOOP_MNT $XFS_IO_PROG -ft -c "truncate 1t" $LOOP_FILE >> $seqres.full LOOP_DEV=`_create_loop_device $LOOP_FILE` -_mkfs_dev -d size=40051712b,agcount=4 -l size=32m $LOOP_DEV +_mkfs_dev -d size=80103424b,agcount=4 -l size=32m $LOOP_DEV _mount $LOOP_DEV $LOOP_MNTThat was sized to give AGs of a specific size, which originally contributed to the problem being exposed. You should change the block count specification to a size specification so the filesysetm being made on 4k block size filesystems remains unchanged.
Quoted 8 lines
size =
40051712b= 40051712 * 4096 = 164,051,812,352 = 156452mi.e.
+_mkfs_dev -d size=156452m,agcount=4 -l size=32m $LOOP_DEV
Thanks for the review, will send v2.
Eryu