From fefca619c1b98f9fe27cfff0c32f39b751ee6a60 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 16 Nov 2021 20:28:00 +0100 Subject: kernel/vfs: add a capacity field to fs_wait_response --- src/kernel/vfs/request.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/kernel/vfs/request.c') 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)) -- cgit v1.2.3