Igor Anić 87dd8d5669 io_uring: simplify tests by checking kernel version
So far we relied on getting EINVAL in CQE for operations that kernel don't
support. The problem with that approach is that there are many other reasons
(like wrong params) to get EINVAL. The other problem is when we have an
operation that existed before and gets new behavior via different attributes,
like accept and accept_direct. Older kernels can fall back to non direct
operation although we set attributes for direct operation. Operation completes
successfully in both cases but with different results.

This commit introduces kernel version check at the start of the test. Making
body of the test free of checking for various kernel version differences.

Feature availability references:
  * https://manpages.debian.org/unstable/liburing-dev/io_uring_enter.2.en.html
  * https://kernel.dk/axboe-kr2022.pdf
  * 5acf7969bc/lib/std/os/linux.zig (L3727)
  * 5acf7969bc/lib/std/os/linux.zig (L3993)
2023-11-17 16:31:57 +01:00
..
2023-07-31 03:49:21 -04:00
2023-07-31 03:49:21 -04:00
2023-07-31 03:49:21 -04:00
2023-07-31 03:49:21 -04:00
2023-07-31 03:49:21 -04:00
2023-07-31 03:49:21 -04:00
2023-07-31 03:49:21 -04:00
2023-10-23 22:42:18 -04:00
2023-07-31 03:49:21 -04:00
2023-07-31 03:49:21 -04:00
2023-10-25 04:28:30 -04:00
2023-07-31 03:49:21 -04:00