statmount/listmount testing suites
Get series with b4
b4 am [email protected] change-id 20240516-listmount_statmount-080965e2f80eVersions newest first
- v8 Latest16 patches 4 repliesIn review
- v716 patches 2 repliesSuperseded
- v616 patches 1 replySuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 16 patches | 10 replies | Superseded | |
| v4 | 13 patches | 21 replies | Superseded | |
| v3 | 11 patches | 13 replies | Superseded inferred link | |
| v2 | 10 patches | 1 reply | Superseded inferred link | |
| v1 | 10 patches | 7 replies | Superseded |
Changes in v8 from the cover letter
- simplify statx fallback
- fix fchmodat2_01 which is not compiling due to statx fallback changes
- listmount04: remove zero attributes in the tcase struct
- Link to v7: https://lore.kernel.org/r/[email protected]
Patches in v8 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | Add SAFE_STATX macroinclude/ testcases/ | +77 | 4 replies | |
| 2/16 | Add TST_EXP_EQ_STR macroinclude/ | +14 | 0 replies | |
| 3/16 | Add listmount/statmount syscallsinclude/ include/ include/ +15 more | +36 | 0 replies | |
| 4/16 | Add listmount/statmount fallback declarationsconfigure.ac include/ | +72 | 0 replies | |
| 5/16 | Add listmount01 testruntest/ testcases/ testcases/ +2 more | +100 | 0 replies | |
| 6/16 | Add listmount02 testruntest/ testcases/ testcases/ | +107 | 0 replies | |
| 7/16 | Add statmount01 testruntest/ testcases/ testcases/ +2 more | +114 | 0 replies | |
| 8/16 | Add statmount02 testruntest/ testcases/ testcases/ | +86 | 0 replies | |
| 9/16 | Add statmount03 testruntest/ testcases/ testcases/ +1 more | +164 | 0 replies | |
| 10/16 | Add statmount04 testruntest/ testcases/ testcases/ | +107 | 0 replies | |
| 11/16 | Add statmount05 testruntest/ testcases/ testcases/ | +125 | 0 replies | |
| 12/16 | Add statmount06 testruntest/ testcases/ testcases/ | +70 | 0 replies | |
| 13/16 | Add statmount07 testruntest/ testcases/ testcases/ | +146 | 0 replies | |
| 14/16 | Add statmount08 testruntest/ testcases/ testcases/ | +67 | 0 replies | |
| 15/16 | Add listmount03 testruntest/ testcases/ testcases/ | +64 | 0 replies | |
| 16/16 | Add listmount04 testruntest/ testcases/ testcases/ | +145 | 0 replies |
Reviews trailers per patch
All 16 patches have a Reviewed-by or Acked-by.
| Patch | Avinesh Kumar | Cyril Hrubis |
|---|---|---|
| 1/16 | R-b | R-b |
| 2/16 | R-b | |
| 3/16 | R-b | R-b |
| 4/16 | R-b | |
| 5/16 | R-b | |
| 6/16 | R-b | |
| 7/16 | R-b | |
| 8/16 | R-b | |
| 9/16 | R-b | |
| 10/16 | R-b | |
| 11/16 | R-b | |
| 12/16 | R-b | |
| 13/16 | R-b | |
| 14/16 | R-b | |
| 15/16 | R-b | |
| 16/16 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [LTP] [PATCH v8 00/16] statmount/listmount testing suites
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/[email protected]/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
---
Changes in v8:
- simplify statx fallback
- fix fchmodat2_01 which is not compiling due to statx fallback changes
- listmount04: remove zero attributes in the tcase struct
- Link to v7: https://lore.kernel.org/r/[email protected]
Changes in v7:
- fix statmount01
- add more EOVERFLOW tests in statmount07
- add more invalid tests in listmount04
- Link to v6: https://lore.kernel.org/r/[email protected]
Changes in v6:
- fix statmount01
- add more EOVERFLOW tests in statmount06
- Link to v5: https://lore.kernel.org/r/[email protected]
Changes in v5:
- usage of sx.data.stx_mask
- use TST_EXP_EQ_STR
- use tst_tmpdir_genpath()
- use !TST_PASS instead of TST_RET == -1
- listmount03
- listmount04
- statmount08
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- listmount01: remove all filesystems run
- listmount02: better descriptions and proper unmount()
- statmount01: check all fields are zeroed
- statmount02: check also readonly flag
- statmount03: now it checks for all mount flags
- statmount04: moved read_peer_group inside statmount.h
- statmount07: add test for invalid values
- generic style fixes
- fix statx import
- Link to v3: https://lore.kernel.org/r/[email protected]
---
Andrea Cervesato (16):
Add SAFE_STATX macro
Add TST_EXP_EQ_STR macro
Add listmount/statmount syscalls
Add listmount/statmount fallback declarations Add listmount01 test
Add listmount02 test
Add statmount01 test
Add statmount02 test
Add statmount03 test
Add statmount04 test
Add statmount05 test
Add statmount06 test
Add statmount07 test
Add statmount08 test
Add listmount03 test
Add listmount04 test
configure.ac | 2 + include/lapi/mount.h | 70 ++++++++++ include/lapi/stat.h | 107 ++++++++++----- 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_test_macros.h | 14 ++ runtest/syscalls | 14 ++ testcases/kernel/syscalls/fchmodat2/fchmodat2_01.c | 2 + testcases/kernel/syscalls/listmount/.gitignore | 4 + testcases/kernel/syscalls/listmount/Makefile | 7 + testcases/kernel/syscalls/listmount/listmount.h | 27 ++++ testcases/kernel/syscalls/listmount/listmount01.c | 63 +++++++++ testcases/kernel/syscalls/listmount/listmount02.c | 105 +++++++++++++++ testcases/kernel/syscalls/listmount/listmount03.c | 62 +++++++++ testcases/kernel/syscalls/listmount/listmount04.c | 143 ++++++++++++++++++++ testcases/kernel/syscalls/statmount/.gitignore | 8 ++ testcases/kernel/syscalls/statmount/Makefile | 7 + testcases/kernel/syscalls/statmount/statmount.h | 51 ++++++++ testcases/kernel/syscalls/statmount/statmount01.c | 77 +++++++++++ testcases/kernel/syscalls/statmount/statmount02.c | 84 ++++++++++++ testcases/kernel/syscalls/statmount/statmount03.c | 138 ++++++++++++++++++++ testcases/kernel/syscalls/statmount/statmount04.c | 105 +++++++++++++++ testcases/kernel/syscalls/statmount/statmount05.c | 123 ++++++++++++++++++ testcases/kernel/syscalls/statmount/statmount06.c | 68 ++++++++++ testcases/kernel/syscalls/statmount/statmount07.c | 144 +++++++++++++++++++++ testcases/kernel/syscalls/statmount/statmount08.c | 65 ++++++++++ 42 files changed, 1494 insertions(+), 32 deletions(-)
---
base-commit: 701212f08d6e850457cc2b10238f28662ef48471
change-id: 20240516-listmount_statmount-080965e2f80e
Best regards,
Signature · 5 lines
Andrea Cervesato <[email protected]> -- Mailing list info: https://lists.linux.it/listinfo/ltp