Skip to content
Success

Changes

Summary

  1. osmo_io: Support writing to files with mode OSMO_IO_FD_MODE_READ_WRITE (details)
Commit c31e0bbe72360cca4f53a8d99092b83cd95b7cd0 by Pau Espin Pedrol
osmo_io: Support writing to files with mode OSMO_IO_FD_MODE_READ_WRITE

Trying to use IORING_OP_SENDMSG on local files fails with "Socket
operation on non-socket" errors.

Use io_uring vectorized (readv, writev) since those are available since
kernel v5.1, while non-vectorized ones (read, write) were only added
later in kernel v5.10.

Change-Id: Iefcbc7d09f429f4ecc611227cb5ef796f50c0539
The file was modifiedsrc/core/osmo_io_poll.c
The file was modifiedsrc/core/osmo_io_uring.c
The file was modifiedtests/osmo_io/osmo_io_test.ok
The file was modifiedtests/osmo_io/osmo_io_test.c