All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] inode01: Configure 4KB cluster size on exfat to prevent ENOSPC
@ 2026-08-18 16:54 Kinshu Agrawal (xWF) via ltp
  2026-08-19  8:07 ` Andrea Cervesato via ltp
  0 siblings, 1 reply; 3+ messages in thread
From: Kinshu Agrawal (xWF) via ltp @ 2026-08-18 16:54 UTC (permalink / raw)
  To: ltp

In the multi-process scenario, inode01 creates 10,920 objects (files
and directories) across 5 parallel workers.

On Android, mkfs.exfat (exfatprogs) defaults to a 128KB cluster size
on volumes <= 32GB. On a 512MB test volume, this provides only 4,080
clusters, causing the test to run out of clusters and fail with ENOSPC.

Fix this by configuring exfat to format with a 4KB cluster size (-c 4K)
via the struct tst_fs mkfs_opts field.

Signed-off-by: Kinshu Agrawal <kinshu@google.com>
---
 testcases/kernel/fs/inode/inode01.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testcases/kernel/fs/inode/inode01.c
b/testcases/kernel/fs/inode/inode01.c
index d41ff2c62..7fccaaf95 100644
--- a/testcases/kernel/fs/inode/inode01.c
+++ b/testcases/kernel/fs/inode/inode01.c
@@ -255,6 +255,10 @@ static struct tst_test test = {
  .mntpoint = MNTPOINT,
  .mount_device = 1,
  .all_filesystems = 1,
+ .filesystems = (struct tst_fs[]) {
+ {.type = "exfat", .mkfs_opts = (const char *const[]) {"-c", "4K", NULL}},
+ {}
+ },
  .needs_root = 1,
  .dev_min_size = 512,
  .forks_child = 1,
--

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

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

end of thread, other threads:[~2026-08-19  8:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-18 16:54 [LTP] [PATCH] inode01: Configure 4KB cluster size on exfat to prevent ENOSPC Kinshu Agrawal (xWF) via ltp
2026-08-19  8:07 ` Andrea Cervesato via ltp
2026-08-19  8:30   ` Kinshu Agrawal (xWF) via ltp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.