aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/include/sys/vfs.h1
-rw-r--r--sys/kern/vfs_subr.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/sys/include/sys/vfs.h b/sys/include/sys/vfs.h
index d79409e..a55af12 100644
--- a/sys/include/sys/vfs.h
+++ b/sys/include/sys/vfs.h
@@ -52,6 +52,7 @@ int vfs_rootname(const char *path, char **new_path);
bool vfs_is_valid_path(const char *path);
ssize_t vfs_hash_path(const char *path);
ssize_t vfs_read(struct vnode *vp, struct sio_txn *sio);
+ssize_t vfs_write(struct vnode *vp, struct sio_txn *sio);
int vfs_getattr(struct vnode *vp, struct vattr *vattr);
#endif /* defined(_KERNEL) */
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 63aed75..5b31057 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -228,6 +228,12 @@ vfs_read(struct vnode *vp, struct sio_txn *sio)
return vp->vops->read(vp, sio);
}
+ssize_t
+vfs_write(struct vnode *vp, struct sio_txn *sio)
+{
+ return vp->vops->write(vp, sio);
+}
+
int
vfs_getattr(struct vnode *vp, struct vattr *vattr)
{