Skip to content

Add tst_iterate_fd()

Cyril Hrubis linux-fsdevel ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lib: Add tst_fd_iterate()include/tst_fd.h include/tst_test.h lib/tst_fd.c+156 -03 replies
2/3syscalls/readahead01: Make use of tst_fd_iterate()testcases/kernel/syscalls/readahead/readahead01.c+20 -263 replies
3/3syscalls: accept: Add tst_fd_iterate() testruntest/syscalls testcases/kernel/syscalls/accept/.gitignore testcases/kernel/syscalls/accept/accept01.c +1 more+48 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Add tst_iterate_fd()

- adds tst_iterate_fd() functionality
- make use of tst_iterate_fd() in readahead01
- add accept03 test which uses tst_iterate_fd()

This is a prototype for how the functionality to iterate over different file descriptors should look like it converts one tests and adds another. There is plenty of other syscalls that can use this kind of testing, e.g. all fooat() syscalls where we can pass invalid dir_fd, the plan is to add these if/once we agree on the API.

Cyril Hrubis (3):
lib: Add tst_fd_iterate() syscalls/readahead01: Make use of tst_fd_iterate()
syscalls: accept: Add tst_fd_iterate() test

 include/tst_fd.h                              |  39 ++++++
 include/tst_test.h                            |   1 +
 lib/tst_fd.c                                  | 116 ++++++++++++++++++
 runtest/syscalls                              |   1 +
 testcases/kernel/syscalls/accept/.gitignore   |   1 +
 testcases/kernel/syscalls/accept/accept01.c   |   8 --
 testcases/kernel/syscalls/accept/accept03.c   |  46 +++++++
 .../kernel/syscalls/readahead/readahead01.c   |  46 +++----
 8 files changed, 224 insertions(+), 34 deletions(-)
 create mode 100644 include/tst_fd.h
 create mode 100644 lib/tst_fd.c
 create mode 100644 testcases/kernel/syscalls/accept/accept03.c
Signature · 1 line
2.41.0