diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-18 14:37:04 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-18 14:37:04 -0400 |
commit | 89b2afba02bbcce1b0421fb3330a077ee9605089 (patch) | |
tree | 0d6accc54b3f9de9ba4ee18972ef3c1ffbe7488a /src/sys/os | |
parent | 2a1fccad8a72cf0f1f5dea81ae17f4772183ce50 (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.c | 1 |
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; |