Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH v5 0/7] file_setattr/file_getattr testing suite
@ 2025-08-05 17:44 Andrea Cervesato
  2025-08-05 17:44 ` [LTP] [PATCH v5 1/7] Update LTP to the latest syscalls Andrea Cervesato
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Andrea Cervesato @ 2025-08-05 17:44 UTC (permalink / raw)
  To: ltp

This testing suite is validating file_getattr and file_setattr
syscalls, introducing tests for error validation and basic
functionalities. These features have been introduced in the kernel 6.17.

https://lore.kernel.org/lkml/20250725-vfs-fileattr-fcfc534aac44@brauner/

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v5:
- file_attr04: only check for ENOTDIR
- Link to v4: https://lore.kernel.org/r/20250805-file_setattr_getattr-v4-0-08e23354abc8@suse.com

Changes in v4:
- import <linux/fs.h> in lapi/fs.h via HAVE_LINUX_FS
- file_attr01: initialize variables via .bufs and add one more test case
  for invalid usize
- file_attr02: avoid setting file desc to -1
- file_attr03: make use of AT_FWD
- add file_attr04 test
- Link to v3: https://lore.kernel.org/r/20250805-file_setattr_getattr-v3-0-67a7747d226c@suse.com

Changes in v3:
- fix fallback for fsxattr flags attributes
- Link to v2: https://lore.kernel.org/r/20250804-file_setattr_getattr-v2-0-651e50ec59e7@suse.com

Changes in v2:
- remove unrelated files
- fix fs.h ifndef
- Link to v1: https://lore.kernel.org/r/20250804-file_setattr_getattr-v1-0-6a43c3962c87@suse.com

---
Andrea Cervesato (7):
      Update LTP to the latest syscalls
      fs: add struct fsxattr fallback definitions
      fs: add file_setattr/file_getattr fallback definitions
      Add file_attr01 test
      Add file_attr02 test
      Add file_attr03 test
      Add file_attr04 test

 configure.ac                                      |   4 +
 include/lapi/fs.h                                 |  66 +++++++-
 include/lapi/syscalls/arc.in                      |   7 +
 include/lapi/syscalls/arm.in                      |   7 +
 include/lapi/syscalls/arm64.in                    |   7 +
 include/lapi/syscalls/i386.in                     |   7 +
 include/lapi/syscalls/loongarch64.in              |   7 +
 include/lapi/syscalls/mips64.in                   |   7 +
 include/lapi/syscalls/mips64n32.in                |   7 +
 include/lapi/syscalls/mipso32.in                  |   7 +
 include/lapi/syscalls/parisc.in                   |   7 +
 include/lapi/syscalls/powerpc.in                  |   7 +
 include/lapi/syscalls/powerpc64.in                |   7 +
 include/lapi/syscalls/s390.in                     |   7 +
 include/lapi/syscalls/s390x.in                    |   7 +
 include/lapi/syscalls/sh.in                       |   7 +
 include/lapi/syscalls/sparc.in                    |   7 +
 include/lapi/syscalls/sparc64.in                  |   7 +
 include/lapi/syscalls/x86_64.in                   |   7 +
 runtest/syscalls                                  |   5 +
 testcases/kernel/syscalls/file_attr/.gitignore    |   4 +
 testcases/kernel/syscalls/file_attr/Makefile      |   8 +
 testcases/kernel/syscalls/file_attr/file_attr01.c | 178 ++++++++++++++++++++++
 testcases/kernel/syscalls/file_attr/file_attr02.c |  92 +++++++++++
 testcases/kernel/syscalls/file_attr/file_attr03.c |  76 +++++++++
 testcases/kernel/syscalls/file_attr/file_attr04.c |  62 ++++++++
 26 files changed, 613 insertions(+), 1 deletion(-)
---
base-commit: b62b831cf0ba0420d4f2d4db2989ea0ad139d398
change-id: 20250801-file_setattr_getattr-74963fd52b05

Best regards,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>


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

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

end of thread, other threads:[~2025-08-07  6:39 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-05 17:44 [LTP] [PATCH v5 0/7] file_setattr/file_getattr testing suite Andrea Cervesato
2025-08-05 17:44 ` [LTP] [PATCH v5 1/7] Update LTP to the latest syscalls Andrea Cervesato
2025-08-06 15:11   ` Cyril Hrubis
2025-08-05 17:44 ` [LTP] [PATCH v5 2/7] fs: add struct fsxattr fallback definitions Andrea Cervesato
2025-08-06 15:28   ` Cyril Hrubis
2025-08-05 17:44 ` [LTP] [PATCH v5 3/7] fs: add file_setattr/file_getattr " Andrea Cervesato
2025-08-06 15:36   ` Cyril Hrubis
2025-08-07  6:39     ` Andrea Cervesato via ltp
2025-08-05 17:44 ` [LTP] [PATCH v5 4/7] Add file_attr01 test Andrea Cervesato
2025-08-06 15:03   ` Cyril Hrubis
2025-08-05 17:44 ` [LTP] [PATCH v5 5/7] Add file_attr02 test Andrea Cervesato
2025-08-06 14:56   ` Cyril Hrubis
2025-08-05 17:44 ` [LTP] [PATCH v5 6/7] Add file_attr03 test Andrea Cervesato
2025-08-06 14:42   ` Cyril Hrubis
2025-08-05 17:44 ` [LTP] [PATCH v5 7/7] Add file_attr04 test Andrea Cervesato
2025-08-06 14:23   ` Cyril Hrubis
2025-08-06 14:30     ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox