summaryrefslogtreecommitdiff
path: root/src/kernel/vfs
diff options
context:
space:
mode:
authordzwdz2022-06-29 21:52:15 +0200
committerdzwdz2022-06-29 21:52:15 +0200
commitbf4cbc830d78774ac00d9501c45e8b84d0ae9ae7 (patch)
treef302f92badf74dade9e724e37f85d1ee2dd99833 /src/kernel/vfs
parent43de6a4d8ead1e609828ef34ad1957d34c94ee6a (diff)
kernel/vfs: add the OPEN_CREATE flag
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r--src/kernel/vfs/request.c1
-rw-r--r--src/kernel/vfs/request.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c
index 30c0e77..4ee5986 100644
--- a/src/kernel/vfs/request.c
+++ b/src/kernel/vfs/request.c
@@ -113,6 +113,7 @@ void vfs_backend_user_accept(struct vfs_request *req) {
res.capacity = req->output.len;
res.id = req->id;
res.offset = req->offset;
+ res.flags = req->flags;
res.op = req->type;
if (!virt_cpy_to(handler->pages,
diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h
index e034bc6..cad0981 100644
--- a/src/kernel/vfs/request.h
+++ b/src/kernel/vfs/request.h
@@ -49,6 +49,7 @@ struct vfs_request {
int id; // handle.file.id
int offset;
+ int flags;
struct process *caller;
struct vfs_backend *backend;