[LTP] [PATCH] inode01: Increase dev_min_size to prevent ENOSPC on exfat

Wake Liu wakel@google.com
Tue Aug 25 09:38:13 CEST 2026


Got it, thanks!

On Mon, Aug 24, 2026 at 6:18 PM Avinesh Kumar <avinesh.kumar@suse.com> wrote:
>
> Hi,
>
> This issue is alreday being discussed in this PR:
> https://github.com/linux-test-project/ltp/pull/1340
>
> Thanks,
> Avinesh
>
> On 8/24/26 10:56 AM, Wake Liu wrote:
> > 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,
>


-- 
Best Regards,
Wake Liu


More information about the ltp mailing list