Skip to content

statmount/listmount testing suites

Andrea Cervesato ltp 8 versions – In review

Get series with b4
b4 am [email protected] change-id 20240516-listmount_statmount-080965e2f80e

Versions newest first

  1. v8 Latest16 patches 4 repliesIn review
  2. v716 patches 2 repliesSuperseded
  3. v616 patches 1 replySuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v516 patches10 repliesSuperseded
v413 patches21 repliesSuperseded
v311 patches13 repliesSuperseded inferred link
v210 patches1 replySuperseded inferred link
v110 patches7 repliesSuperseded

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 filesSizeRepliesApplied
1/16Add SAFE_STATX macroinclude/lapi/stat.h testcases/kernel/syscalls/fchmodat2/fchmodat2_01.c+77 -324 replies
2/16Add TST_EXP_EQ_STR macroinclude/tst_test_macros.h+14 -00 replies
3/16Add listmount/statmount syscallsinclude/lapi/syscalls/aarch64.in include/lapi/syscalls/arc.in include/lapi/syscalls/arm.in +15 more+36 -00 replies
4/16Add listmount/statmount fallback declarationsconfigure.ac include/lapi/mount.h+72 -00 replies
5/16Add listmount01 testruntest/syscalls testcases/kernel/syscalls/listmount/.gitignore testcases/kernel/syscalls/listmount/Makefile +2 more+100 -00 replies
6/16Add listmount02 testruntest/syscalls testcases/kernel/syscalls/listmount/.gitignore testcases/kernel/syscalls/listmount/listmount02.c+107 -00 replies
7/16Add statmount01 testruntest/syscalls testcases/kernel/syscalls/statmount/.gitignore testcases/kernel/syscalls/statmount/Makefile +2 more+114 -00 replies
8/16Add statmount02 testruntest/syscalls testcases/kernel/syscalls/statmount/.gitignore testcases/kernel/syscalls/statmount/statmount02.c+86 -00 replies
9/16Add statmount03 testruntest/syscalls testcases/kernel/syscalls/statmount/.gitignore testcases/kernel/syscalls/statmount/statmount.h +1 more+164 -00 replies
10/16Add statmount04 testruntest/syscalls testcases/kernel/syscalls/statmount/.gitignore testcases/kernel/syscalls/statmount/statmount04.c+107 -00 replies
11/16Add statmount05 testruntest/syscalls testcases/kernel/syscalls/statmount/.gitignore testcases/kernel/syscalls/statmount/statmount05.c+125 -00 replies
12/16Add statmount06 testruntest/syscalls testcases/kernel/syscalls/statmount/.gitignore testcases/kernel/syscalls/statmount/statmount06.c+70 -00 replies
13/16Add statmount07 testruntest/syscalls testcases/kernel/syscalls/statmount/.gitignore testcases/kernel/syscalls/statmount/statmount07.c+146 -00 replies
14/16Add statmount08 testruntest/syscalls testcases/kernel/syscalls/statmount/.gitignore testcases/kernel/syscalls/statmount/statmount08.c+67 -00 replies
15/16Add listmount03 testruntest/syscalls testcases/kernel/syscalls/listmount/.gitignore testcases/kernel/syscalls/listmount/listmount03.c+64 -00 replies
16/16Add listmount04 testruntest/syscalls testcases/kernel/syscalls/listmount/.gitignore testcases/kernel/syscalls/listmount/listmount04.c+145 -00 replies

Reviews trailers per patch

All 16 patches have a Reviewed-by or Acked-by.

PatchAvinesh KumarCyril Hrubis
1/16R-b R-b
2/16R-b
3/16R-b R-b
4/16R-b
5/16R-b
6/16R-b
7/16R-b
8/16R-b
9/16R-b
10/16R-b
11/16R-b
12/16R-b
13/16R-b
14/16R-b
15/16R-b
16/16R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

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