inode01: Increase dev_min_size to prevent ENOSPC on exfat
PATCH 1/1 inode01: Increase dev_min_size to prevent ENOSPC on exfat
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.
--- testcases/kernel/fs/inode/inode01.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
testcases/kernel/fs/inode/inode01.c +2 -2
@@ -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,
Signature · 5 lines
2.55.0.766.g2966f0265a-goog -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi,
This issue is alreday being discussed in this PR:
https://github.com/linux-test-project/ltp/pull/1340
Thanks,
Avinesh
Quoted 44 lines · 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()ormkdir():inode01.c:61: TBROK: write(3,...) failed: ENOSPC (28) inode01.c:64: TBROK: mkdir(...) failed: ENOSPC (28)Increase
dev_min_sizeto 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 <[email protected]>--- testcases/kernel/fs/inode/inode01.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)testcases/kernel/fs/inode/inode01.c +2
-2@@ -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,
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Got it, thanks!
Quoted 55 lines · Avinesh Kumar
Hi,
This issue is alreday being discussed in this PR:
https://github.com/linux-test-project/ltp/pull/1340Thanks,
AvineshQuoted 44 lines · 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()ormkdir():inode01.c:61: TBROK: write(3,...) failed: ENOSPC (28) inode01.c:64: TBROK: mkdir(...) failed: ENOSPC (28)Increase
dev_min_sizeto 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 <[email protected]>--- testcases/kernel/fs/inode/inode01.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)testcases/kernel/fs/inode/inode01.c +2
-2@@ -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,
Signature · 5 lines
Best Regards, Wake Liu -- Mailing list info: https://lists.linux.it/listinfo/ltp