diff options
author | dzwdz | 2021-11-20 14:48:26 +0100 |
---|---|---|
committer | dzwdz | 2021-11-20 14:48:26 +0100 |
commit | 6caac6e940ab79960b1c1ca0e5ed8f28aa49a3a9 (patch) | |
tree | 4eb0ee06dff833a28245fc476abf4cf001e1414d /src/kernel/vfs/request.c | |
parent | 99520606ebfc5fbceedfd7ac3cd405e19a778ffc (diff) |
kernel: fs_wait returns a success val; the op type is put in the struct
Diffstat (limited to 'src/kernel/vfs/request.c')
-rw-r--r-- | src/kernel/vfs/request.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index f431eac..45a7ae7 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -63,12 +63,13 @@ _Noreturn void vfs_request_pass2handler(struct vfs_request *req) { res.capacity = req->output.len; res.id = req->id; res.offset = req->offset; + res.op = req->type; if (!virt_cpy_to(handler->pages, handler->awaited_req.res, &res, sizeof res)) goto fail; // can't copy response struct - regs_savereturn(&handler->regs, req->type); + regs_savereturn(&handler->regs, 0); process_switch(handler); fail: panic_unimplemented(); // TODO |