Re: [PATCH] fstests: generic/042: increase filesystem image size

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]





在 2025/7/9 14:10, Anand Jain 写道:
During testing for shutdown, I found that generic/042 sets a size of
25M, which is too small for btrfs. Setting it to 128M.

wrote 26214400/26214400 bytes at offset 0
25 MiB, 6400 ops; 0.0468 sec (533.618 MiB/sec and 136606.1900 ops/sec)
ERROR: '/mnt/scratch/042.img' is too small to make a usable filesystem
ERROR: minimum size for each btrfs device is 114294784

Signed-off-by: Anand Jain <anand.jain@xxxxxxxxxx>

Already submitted:

https://lore.kernel.org/linux-btrfs/20250625232021.69787-1-wqu@xxxxxxxx/

Thanks,
Qu

---
  tests/generic/042 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/generic/042 b/tests/generic/042
index ced145dde753..6cd2e7a3703a 100755
--- a/tests/generic/042
+++ b/tests/generic/042
@@ -26,7 +26,7 @@ _crashtest()
  	img=$SCRATCH_MNT/$seq.img
  	mnt=$SCRATCH_MNT/$seq.mnt
  	file=$mnt/file
-	size=$(_small_fs_size_mb 25)M
+	size=$(_small_fs_size_mb 128)M
# Create an fs on a small, initialized image. The pattern is written to
  	# the image to detect stale data exposure.






[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux