[LTP] [PATCH v3 00/11] statmount/listmount testing suites

Andrea Cervesato andrea.cervesato@suse.de
Thu May 16 14:29:08 CEST 2024


This patch-set is adding new testing suites for statmount() and listmount()
syscalls, which have been recently added in kernel v6.8.
To find out more information, please read the following documentation since
there's no man pages yet:

https://lwn.net/Articles/950569/
https://lore.kernel.org/lkml/170474400576.2602.7882507604401153304.pr-tracker-bot@kernel.org/T/

Along with kernel source code:

https://github.com/torvalds/linux/blob/1b294a1f35616977caddaddf3e9d28e576a1adbc/include/uapi/linux/mount.h#L155
https://github.com/torvalds/linux/blob/1b294a1f35616977caddaddf3e9d28e576a1adbc/tools/testing/selftests/filesystems/statmount/statmount_test.c

v2:
- split syscalls definitions from fallback declarations
- remove usless tst_test parameters declarations
- fixed documentation tags (kdoc -> asciidoc)

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Andrea Cervesato (11):
      Add SAFE_STATX macro
      Add listmount/statmount syscalls
      Add listmount/statmount fallback declarations
      Add listmount01 test
      Add listmount02 test
      Add stamount01 test
      Add statmount02 test
      Add statmount03 test
      Add statmount04 test
      Add statmount05 test
      Add statmount06 test

 configure.ac                                      |   5 +
 include/lapi/mount.h                              |  70 +++++++++++
 include/lapi/stat.h                               |  10 +-
 include/lapi/syscalls/aarch64.in                  |   2 +
 include/lapi/syscalls/arc.in                      |   2 +
 include/lapi/syscalls/arm.in                      |   2 +
 include/lapi/syscalls/hppa.in                     |   2 +
 include/lapi/syscalls/i386.in                     |   2 +
 include/lapi/syscalls/ia64.in                     |   2 +
 include/lapi/syscalls/loongarch.in                |   2 +
 include/lapi/syscalls/mips_n32.in                 |   2 +
 include/lapi/syscalls/mips_n64.in                 |   2 +
 include/lapi/syscalls/mips_o32.in                 |   2 +
 include/lapi/syscalls/powerpc.in                  |   2 +
 include/lapi/syscalls/powerpc64.in                |   2 +
 include/lapi/syscalls/s390.in                     |   2 +
 include/lapi/syscalls/s390x.in                    |   2 +
 include/lapi/syscalls/sh.in                       |   2 +
 include/lapi/syscalls/sparc.in                    |   2 +
 include/lapi/syscalls/sparc64.in                  |   2 +
 include/lapi/syscalls/x86_64.in                   |   2 +
 include/tst_safe_macros.h                         |   7 ++
 lib/tst_safe_macros.c                             |  22 ++++
 runtest/syscalls                                  |  10 ++
 testcases/kernel/syscalls/listmount/.gitignore    |   2 +
 testcases/kernel/syscalls/listmount/Makefile      |   7 ++
 testcases/kernel/syscalls/listmount/listmount.h   |  26 +++++
 testcases/kernel/syscalls/listmount/listmount01.c |  66 +++++++++++
 testcases/kernel/syscalls/listmount/listmount02.c | 106 +++++++++++++++++
 testcases/kernel/syscalls/statmount/.gitignore    |   6 +
 testcases/kernel/syscalls/statmount/Makefile      |   7 ++
 testcases/kernel/syscalls/statmount/statmount.h   |  26 +++++
 testcases/kernel/syscalls/statmount/statmount01.c |  69 +++++++++++
 testcases/kernel/syscalls/statmount/statmount02.c |  76 ++++++++++++
 testcases/kernel/syscalls/statmount/statmount03.c |  97 +++++++++++++++
 testcases/kernel/syscalls/statmount/statmount04.c | 131 +++++++++++++++++++++
 testcases/kernel/syscalls/statmount/statmount05.c | 136 ++++++++++++++++++++++
 testcases/kernel/syscalls/statmount/statmount06.c |  72 ++++++++++++
 38 files changed, 986 insertions(+), 1 deletion(-)
---
base-commit: e644691d30c3948a9788b735c51e09ca849ea47f
change-id: 20240516-listmount_statmount-080965e2f80e

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



More information about the ltp mailing list