summaryrefslogtreecommitdiff
path: root/sys/fs/ctlfs.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-27 19:03:31 -0400
committerIan Moffett <ian@osmora.org>2025-06-27 19:04:55 -0400
commitbbd861c0cd4c26e2699392fec3ae0ec7df8ab145 (patch)
treecbed69b27dbb16486f28d0995ab9524266c508a3 /sys/fs/ctlfs.c
parent8877f9b8a8992388b4f64d425a48b02a3229cf61 (diff)
kernel: vfs: Add support for O_CREAT flag
Add support for the O_CREAT flag which allows file creation upon an open() call. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/fs/ctlfs.c')
-rw-r--r--sys/fs/ctlfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/ctlfs.c b/sys/fs/ctlfs.c
index 64d3a1a..9225114 100644
--- a/sys/fs/ctlfs.c
+++ b/sys/fs/ctlfs.c
@@ -380,7 +380,8 @@ static const struct vops ctlfs_vops = {
.read = ctlfs_read,
.getattr = NULL,
.write = NULL,
- .reclaim = ctlfs_reclaim
+ .reclaim = ctlfs_reclaim,
+ .create = NULL
};
const struct vfsops g_ctlfs_vfsops = {