summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authordzwdz2021-11-16 20:28:00 +0100
committerdzwdz2021-11-16 20:28:00 +0100
commitfefca619c1b98f9fe27cfff0c32f39b751ee6a60 (patch)
treed0c353cf5d377184e39e2dc7b3903dafa6eabb06 /src/kernel
parent25e7ee0a22e5e28dce8bd88aef61fc7894bfbe7b (diff)
kernel/vfs: add a capacity field to fs_wait_response
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/vfs/request.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c
index 9826982..f431eac 100644
--- a/src/kernel/vfs/request.c
+++ b/src/kernel/vfs/request.c
@@ -59,9 +59,10 @@ _Noreturn void vfs_request_pass2handler(struct vfs_request *req) {
goto fail; // can't copy buffer
}
- res.len = len;
- res.id = req->id;
- res.offset = req->offset;
+ res.len = len;
+ res.capacity = req->output.len;
+ res.id = req->id;
+ res.offset = req->offset;
if (!virt_cpy_to(handler->pages,
handler->awaited_req.res, &res, sizeof res))