diff options
-rw-r--r-- | src/sys/include/os/vnode.h | 2 | ||||
-rw-r--r-- | src/sys/os/vfs_namei.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/include/os/vnode.h b/src/sys/include/os/vnode.h index 77cadb2..1fd164d 100644 --- a/src/sys/include/os/vnode.h +++ b/src/sys/include/os/vnode.h @@ -88,9 +88,11 @@ struct vop_rw_data { * filesystem * * @ndp: Path component to create + * @vtype: Vnode type */ struct vop_create_args { struct nameidata *ndp; + vtype_t vtype; }; /* 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; |