diff options
| author | Jens Axboe <[email protected]> | 2019-12-25 16:33:42 -0700 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-01-20 17:03:59 -0700 |
| commit | ba04291eb66ed895f194ae5abd3748d72bf8aaea (patch) | |
| tree | 398b8455348b4b2a2171554f01447c74ffb9f28e /tools/perf/scripts/python/sctop.py | |
| parent | 3a6820f2bb8a079975109c25a5d1f29f46bce5d2 (diff) | |
io_uring: allow use of offset == -1 to mean file position
This behaves like preadv2/pwritev2 with offset == -1, it'll use (and
update) the current file position. This obviously comes with the caveat
that if the application has multiple read/writes in flight, then the
end result will not be as expected. This is similar to threads sharing
a file descriptor and doing IO using the current file position.
Since this feature isn't easily detectable by doing a read or write,
add a feature flags, IORING_FEAT_RW_CUR_POS, to allow applications to
detect presence of this feature.
Reported-by: 李通洲 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions