mbox series

[0/5] fcntl: add more testcases

Message ID 20230530203707.2965684-1-aahringo@redhat.com
Headers show
Series fcntl: add more testcases | expand


Alexander Aring May 30, 2023, 8:37 p.m. UTC

this patch series introduces more fcntl testcases which was found by
testing fcntl on a Linux gfs2 filesystem. They can also be run on
different filesystems. It was mostly compared with the default Linux
behaviour e.g. tmpfs and gfs2, it's getting usual interessting when
a filesystem implements it's own posix lock behaviour like it's the
case for gfs2.

First ltp contribution, would like to get some review.

Alexander Aring (5):
  fcntl40: test for owner values on classic posix lock
  fcntl41: test for owner values on OFD posix locks
  fcntl42: test for F_SETLKW interruption case
  fcntl43: test for identical F_SETLKW lock requests
  fcntl44: test for kill child while others waiting

 testcases/kernel/syscalls/fcntl/.gitignore |  10 ++
 testcases/kernel/syscalls/fcntl/Makefile   |   6 +
 testcases/kernel/syscalls/fcntl/fcntl40.c  | 188 +++++++++++++++++++++
 testcases/kernel/syscalls/fcntl/fcntl41.c  | 178 +++++++++++++++++++
 testcases/kernel/syscalls/fcntl/fcntl42.c  | 153 +++++++++++++++++
 testcases/kernel/syscalls/fcntl/fcntl43.c  | 140 +++++++++++++++
 testcases/kernel/syscalls/fcntl/fcntl44.c  | 128 ++++++++++++++
 7 files changed, 803 insertions(+)
 create mode 100644 testcases/kernel/syscalls/fcntl/fcntl40.c
 create mode 100644 testcases/kernel/syscalls/fcntl/fcntl41.c
 create mode 100644 testcases/kernel/syscalls/fcntl/fcntl42.c
 create mode 100644 testcases/kernel/syscalls/fcntl/fcntl43.c
 create mode 100644 testcases/kernel/syscalls/fcntl/fcntl44.c