summaryrefslogtreecommitdiff
path: root/src/sys/os
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-18 14:37:04 -0400
committerIan Moffett <ian@osmora.org>2025-10-18 14:37:04 -0400
commit89b2afba02bbcce1b0421fb3330a077ee9605089 (patch)
tree0d6accc54b3f9de9ba4ee18972ef3c1ffbe7488a /src/sys/os
parent2a1fccad8a72cf0f1f5dea81ae17f4772183ce50 (diff)
kern: vfs: Add 'vtype' spec to vop_create_args
This commit adds a vtype field to the file creation arguments to allow the underlying vnode type to be specified. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/os')
-rw-r--r--src/sys/os/vfs_namei.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sys/os/vfs_namei.c b/src/sys/os/vfs_namei.c
index d417db8..7814181 100644
--- a/src/sys/os/vfs_namei.c
+++ b/src/sys/os/vfs_namei.c
@@ -149,6 +149,7 @@ namei(struct nameidata *ndp)
nd_create.path = namebuf;
create.ndp = &nd_create;
+ create.vtype = VTYPE_FILE;
error = vops->create(&create);
if (error < 0)
return error;