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:
parent
eba3ef330c
commit
93ec43ea67
@ -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);
|
||||
|
||||
|
||||
@ -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. */
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user