Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH] inode01: Increase dev_min_size to prevent ENOSPC on exfat
@ 2026-08-28 11:41 Wake Liu via ltp
  2026-08-31  8:45 ` Andrea Cervesato via ltp
  0 siblings, 1 reply; 6+ messages in thread
From: Wake Liu via ltp @ 2026-08-28 11:41 UTC (permalink / raw)
  To: ltp; +Cc: Wake Liu

The parallel scenario concurrently spawns multiple workers (default 5),
each creating 2,185 files and directories, totaling 10,925 objects.

On exfat, each file and directory occupies at least one cluster (default
32 KB for volumes > 256 MB), which requires ~350 MB of data clusters.
With filesystem metadata (FAT, allocation bitmap, upcase table),
directory growth, boundary alignment, and multi-worker concurrent
allocation fragmentation, the current 512 MB device size is easily
exhausted, leading to ENOSPC failures during write() or mkdir():

  inode01.c:61: TBROK: write(3,...) failed: ENOSPC (28)
  inode01.c:64: TBROK: mkdir(...) failed: ENOSPC (28)

Increase dev_min_size to 1024 MB to provide sufficient headroom for the
parallel scenario on exfat.

Fixes: ecf418722780 ("inode01: increase dev_min_size to fit the peak usage in parallel scenario")
Signed-off-by: Wake Liu <wakel@google.com>
---
 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 50b5311a4..87ee07612 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 = 512,
+	.dev_min_size = 1024,
 	.forks_child = 1,
 	.needs_checkpoints = 1,
 	.timeout = 300,
-- 
2.55.0.897.gb25b4bd76c-goog


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

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [LTP] [PATCH] inode01: Increase dev_min_size to prevent ENOSPC on exfat
@ 2026-08-24  8:56 Wake Liu via ltp
  2026-08-24 10:18 ` Avinesh Kumar via ltp
  0 siblings, 1 reply; 6+ messages in thread
From: Wake Liu via ltp @ 2026-08-24  8:56 UTC (permalink / raw)
  To: ltp; +Cc: Wake Liu

The parallel scenario concurrently spawns multiple workers (default 5),
each creating 2,185 files and directories, totaling 10,925 objects.

On exfat, each file and directory occupies at least one cluster (default
32 KB for volumes > 256 MB), which requires ~350 MB of data clusters.
With filesystem metadata (FAT, allocation bitmap, upcase table),
directory growth, boundary alignment, and multi-worker concurrent
allocation fragmentation, the current 512 MB device size is easily
exhausted, leading to ENOSPC failures during write() or mkdir():

  inode01.c:61: TBROK: write(3,...) failed: ENOSPC (28)
  inode01.c:64: TBROK: mkdir(...) failed: ENOSPC (28)

Increase dev_min_size to 1024 MB to provide sufficient headroom for the
parallel scenario on exfat.

Fixes: ecf418722780 ("inode01: increase dev_min_size to fit the peak usage in parallel scenario")
Signed-off-by: Wake Liu <wakel@google.com>
---
 testcases/kernel/fs/inode/inode01.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/fs/inode/inode01.c b/testcases/kernel/fs/inode/inode01.c
index d41ff2c62..87ee07612 100644
--- a/testcases/kernel/fs/inode/inode01.c
+++ b/testcases/kernel/fs/inode/inode01.c
@@ -68,7 +68,7 @@ static void create_tree(const struct tcase *tc, const char *parent,
 }
 
 static void record_inode(struct inode_info *inodes, unsigned int idx,
-			 const char *path, ino_t ino)
+			 const char *path, uint64_t ino)
 {
 	inodes[idx].ino = ino;
 	snprintf(inodes[idx].path, sizeof(inodes[idx].path), "%s", path);
@@ -256,7 +256,7 @@ static struct tst_test test = {
 	.mount_device = 1,
 	.all_filesystems = 1,
 	.needs_root = 1,
-	.dev_min_size = 512,
+	.dev_min_size = 1024,
 	.forks_child = 1,
 	.needs_checkpoints = 1,
 	.timeout = 300,
-- 
2.55.0.766.g2966f0265a-goog


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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-01  9:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-28 11:41 [LTP] [PATCH] inode01: Increase dev_min_size to prevent ENOSPC on exfat Wake Liu via ltp
2026-08-31  8:45 ` Andrea Cervesato via ltp
2026-09-01  9:55   ` Wake Liu via ltp
  -- strict thread matches above, loose matches on Subject: below --
2026-08-24  8:56 Wake Liu via ltp
2026-08-24 10:18 ` Avinesh Kumar via ltp
2026-08-25  7:38   ` Wake Liu via ltp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox