linux: fix uv_fs_ftruncate io_uring implementation (#4963 2/2)

The `offset` field should be assigned to ithe `io_uring_sqe.off` field.
This commit is contained in:
Santiago Gimeno 2025-12-07 22:40:22 +01:00
parent eba3ef330c
commit 93ec43ea67
No known key found for this signature in database
GPG Key ID: F28C3C8DA33C03BE
3 changed files with 4 additions and 4 deletions

View File

@ -875,7 +875,7 @@ int uv__iou_fs_ftruncate(uv_loop_t* loop, uv_fs_t* req) {
return 0;
sqe->fd = req->file;
sqe->len = req->off;
sqe->off = req->off;
sqe->opcode = UV__IORING_OP_FTRUNCATE;
uv__iou_submit(iou);

View File

@ -953,7 +953,7 @@ static void lutime_cb(uv_fs_t* req) {
}
TEST_IMPL(fs_file_async) {
TEST_FS_IMPL(fs_file_async) {
int r;
/* Setup. */

View File

@ -357,7 +357,7 @@ TEST_DECLARE (kill_invalid_signum)
TEST_DECLARE (fs_file_noent)
TEST_DECLARE (fs_file_nametoolong)
TEST_DECLARE (fs_file_loop)
TEST_DECLARE (fs_file_async)
TEST_FS_DECLARE(fs_file_async)
TEST_DECLARE (fs_file_sync)
TEST_DECLARE (fs_posix_delete)
TEST_DECLARE (fs_file_write_null_buffer)
@ -1081,7 +1081,7 @@ TASK_LIST_START
TEST_ENTRY (fs_file_noent)
TEST_ENTRY (fs_file_nametoolong)
TEST_ENTRY (fs_file_loop)
TEST_ENTRY (fs_file_async)
TEST_FS_ENTRY(fs_file_async)
TEST_ENTRY (fs_file_sync)
TEST_ENTRY (fs_posix_delete)
TEST_ENTRY (fs_file_write_null_buffer)