[LTP] [PATCH] inode01: Drop redundant 512MB dev_min_size requirement
Wake Liu
wakel@google.com
Tue Nov 17 13:56:58 CET 2026
Commit ecf418722780 ("inode01: increase dev_min_size to fit the peak
usage in parallel scenario") raised dev_min_size from the default 300MB
to 512MB because mkfs.exfat defaulted to a 32KB cluster size on volumes
larger than 256MB, providing only ~9,600 clusters on a 300MB device for
the ~10,925 objects created across the 5 parallel workers.
Subsequently, commit 4bf4da8c6fda ("inode01: Configure 4KB cluster size
on exfat to prevent ENOSPC") explicitly configured mkfs.exfat with a 4KB
cluster size (-c 4K). With 4KB clusters, the 10,925 objects consume
under 50MB at peak, and the default 300MB loop device provides ~76,800
clusters on exfat, which is more than sufficient for all supported
filesystems.
Drop the redundant .dev_min_size = 512 setting so inode01 uses the
default 300MB device size and avoids unnecessary ENOSPC failures when
allocating the loop backing file on storage-constrained systems.
Signed-off-by: Wake Liu <wakel@google.com>
---
testcases/kernel/fs/inode/inode01.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/testcases/kernel/fs/inode/inode01.c b/testcases/kernel/fs/inode/inode01.c
index e7190fc99..09e0e9da0 100644
--- a/testcases/kernel/fs/inode/inode01.c
+++ b/testcases/kernel/fs/inode/inode01.c
@@ -260,7 +260,6 @@ static struct tst_test test = {
{}
},
.needs_root = 1,
- .dev_min_size = 512,
.forks_child = 1,
.needs_checkpoints = 1,
.timeout = 300,
--
2.56.0.679.gc527c65306-goog
More information about the ltp
mailing list