diff options
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r-- | src/kernel/vfs/request.c | 5 | ||||
-rw-r--r-- | src/kernel/vfs/request.h | 1 |
2 files changed, 4 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)) diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h index a03fba9..0e96db6 100644 --- a/src/kernel/vfs/request.h +++ b/src/kernel/vfs/request.h @@ -34,6 +34,7 @@ struct vfs_request { } output; int id; // handle.file.id + int offset; struct process *caller; struct vfs_backend *backend; |