* [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
* Re: [LTP] [PATCH] inode01: Configure 4KB cluster size on exfat to prevent ENOSPC
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
0 siblings, 1 reply; 3+ messages in thread
From: Andrea Cervesato via ltp @ 2026-08-19 8:07 UTC (permalink / raw)
To: kinshu; +Cc: ltp
Hi Kinshu,
this patch doesn't apply, please send a v2.
Regards,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] inode01: Configure 4KB cluster size on exfat to prevent ENOSPC
2026-08-19 8:07 ` Andrea Cervesato via ltp
@ 2026-08-19 8:30 ` Kinshu Agrawal (xWF) via ltp
0 siblings, 0 replies; 3+ messages in thread
From: Kinshu Agrawal (xWF) via ltp @ 2026-08-19 8:30 UTC (permalink / raw)
To: Andrea Cervesato; +Cc: ltp
Hi Andrea, Thanks for reviewing!
To avoid email whitespace and formatting issues, I opened a GitHub Pull
Request with the clean patch and updated description here:
https://github.com/linux-test-project/ltp/pull/1340
Avinesh already reviewed the approach on the PR, and the commit description
has been updated with the 32KB cluster size details. Please feel free to
take a look there!
Thanks & Regards,
Kinshu Agrawal
On Wed, Aug 19, 2026 at 1:37 PM Andrea Cervesato <andrea.cervesato@suse.com>
wrote:
> Hi Kinshu,
>
> this patch doesn't apply, please send a v2.
>
> Regards,
> --
> Andrea Cervesato
> SUSE QE Automation Engineer Linux
> andrea.cervesato@suse.com
>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [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.