Skip to contentSkip to conversation

file_attr02: Reduce extent size block count

PATCH In review Martin Doucha 4 participants 4 messages Sep 29, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 file_attr02: Reduce extent size block count

Reduce test extent size to 128 blocks. Otherwise the FS_IOC_FSSETXATTR ioctl may exceed extent size limit and fail on archs with 64K blocksize.

---
 testcases/kernel/syscalls/file_attr/file_attr02.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/file_attr/file_attr02.c +1 -1
index d0cb47696..f6625985a 100644
@@ -15,7 +15,7 @@
 
 #define MNTPOINT "mntpoint"
 #define FILENAME "ltp_file"
-#define BLOCKS 1024
+#define BLOCKS 128
 #define PROJID 16
 
 static int fd = -1;
Signature · 5 lines
2.51.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by Tested-by on v1 1/1
#1 lore raw

Hi,

Quoted 4 lines · CEST Martin Doucha

Reduce test extent size to 128 blocks. Otherwise the FS_IOC_FSSETXATTR ioctl may exceed extent size limit and fail on archs with 64K blocksize.

Quoted 10 lines
---
 testcases/kernel/syscalls/file_attr/file_attr02.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/file_attr/file_attr02.c +0 -0
index d0cb47696..f6625985a 100644

testcases/kernel/syscalls/file_attr/file_attr02.c line 21

Quoted 8 lines
testcases/kernel/syscalls/file_attr/file_attr02.c +1 -1
@@ -15,7 +15,7 @@
 
 #define MNTPOINT "mntpoint"
 #define FILENAME "ltp_file"
-#define BLOCKS 1024
+#define BLOCKS 128
 #define PROJID 16
 
 static int fd = -1;

Regards,
Avinesh

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v1 1/1
#2 lore raw
In reply to Martin Doucha

Hi Martin,

Quoted 2 lines

Reduce test extent size to 128 blocks. Otherwise the FS_IOC_FSSETXATTR ioctl may exceed extent size limit and fail on archs with 64K blocksize.

Thanks!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp