diff options
author | dzwdz | 2021-09-20 19:30:37 +0200 |
---|---|---|
committer | dzwdz | 2021-09-20 19:30:37 +0200 |
commit | 6371724809b057b25a4efd6c022e7d95068c42f1 (patch) | |
tree | 5cc6484ae767cd27f2ae4ccd24c0fb01e9beb163 /src/kernel/vfs/request.c | |
parent | 9a08099fb7148a69b0655f0e559661b1021b17b5 (diff) |
add an offset parameter to read() and write()
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r-- | src/kernel/vfs/request.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index 33a8458..b197f4b 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -64,8 +64,9 @@ _Noreturn void vfs_request_pass2handler(struct vfs_request *req) { goto fail; // can't copy buffer } - res.len = len; - res.id = req->id; + res.len = len; + res.id = req->id; + res.offset = req->offset; if (!virt_cpy_to(handler->pages, handler->awaited_req.res, &res, sizeof res)) |