[PATCH v2] inode01: increase dev_min_size to fit the peak usage in parallel scenario

Avinesh Kumar via ltp <[email protected]> Thu, 30 Jul 2026 15:41:01 +0200
Newsgroups gmane.linux.ltp
Message-ID <[email protected]>
From: Avinesh Kumar <avinesh.kumar-IBi9RG/[email protected]>

The parallel scenario keeps every worker's tree on the device at the same
time. On exfat each object costs a full cluster and mkfs.exfat defaults to
32K cluster size for a volume above 256M, causing ENOSPC on a 300M device.
Increase the dev_min_size to 512M.

tst_test.c:1985: TINFO: === Testing on exfat ===
tst_test.c:1291: TINFO: Formatting /dev/loop0 with exfat opts='' extra opts=''
tst_test.c:1303: TINFO: Mounting /dev/loop0 to /var/tmp/LTP_inoLqT9T5/mntpoint fstyp=exfat flags=0
inode01.c:241: TINFO: Testing single-process small tree (depth=3 fanout=4 repetitions=100 workers=1)
inode01.c:228: TPASS: Created and verified 28 objects in mntpoint/inode.5827
inode01.c:241: TINFO: Testing parallel larger trees (depth=6 fanout=6 repetitions=8 workers=5)
inode01.c:61: TBROK: write(3,0x7ffcea2c2370,73) failed: ENOSPC (28)
tst_test.c:478: TINFO: Child process reported TBROK killing the test
inode01.c:64: TBROK: mkdir(mntpoint/inode.5832/00001457/00001701/00001862/00001890/00001907/00001911, 0777) failed: ENOSPC (28)

Fixes: 8ea955383e00 ("inode: convert to new API and merge into a single test")
Signed-off-by: Avinesh Kumar <avinesh.kumar-IBi9RG/[email protected]>
---
 testcases/kernel/fs/inode/inode01.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/fs/inode/inode01.c b/testcases/kernel/fs/inode/inode01.c
index 219238553562..2816ad61ab38 100644
--- a/testcases/kernel/fs/inode/inode01.c
+++ b/testcases/kernel/fs/inode/inode01.c
@@ -256,7 +256,7 @@ static struct tst_test test = {
 	.mount_device = 1,
 	.all_filesystems = 1,
 	.needs_root = 1,
-	.dev_min_size = 300,
+	.dev_min_size = 512,
 	.forks_child = 1,
 	.needs_checkpoints = 1,
 	.timeout = 300,
-- 
2.55.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp