From 7e07c4bebb08414ca8228ea91bdf57828fd4d110 Mon Sep 17 00:00:00 2001 From: Alexander Tsvetkov Date: Fri, 11 Apr 2014 10:10:25 +1000 Subject: [PATCH] generic/204: correct log size for XFS generic/204 fails on device with Advanced Format of 4096 bytes per physical sector and when partition starts at the 4K boundary/./In this case filesystem sector/block size will be of 4096 bytes size and _scratch_mkfs_sized fails because mkfs reports that 5Mb log size is not enough to create a filesystem, for example attempt to make filesystem on such partition: mkfs.xfs -f -bsize=4096 -l size=5m -d size=109051904 /dev/sdb2" results to: "log size 1280 blocks too small, minimum size is 1605 blocks" and generic/204 fails with ENOSPC before it has finished creating the necessary files. Log size of 7MB is enough for this test to pass. Signed-off-by: Alexander Tsvetkov Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- tests/generic/204 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/generic/204 b/tests/generic/204 index 13a762a1..4ebab26b 100755 --- a/tests/generic/204 +++ b/tests/generic/204 @@ -53,9 +53,9 @@ _scratch_mkfs 2> /dev/null | _filter_mkfs 2> $tmp.mkfs > /dev/null # For xfs, we need to handle the different default log sizes that different # versions of mkfs create. All should be valid with a 5MB log, so use that. -[ $FSTYP = "xfs" ] && MKFS_OPTIONS="$MKFS_OPTIONS -l size=5m" +[ $FSTYP = "xfs" ] && MKFS_OPTIONS="$MKFS_OPTIONS -l size=7m" -SIZE=`expr 104 \* 1024 \* 1024` +SIZE=`expr 106 \* 1024 \* 1024` _scratch_mkfs_sized $SIZE $dbsize 2> /dev/null \ | _filter_mkfs 2> $tmp.mkfs > /dev/null _scratch_mount -- 2.39.5