summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_vfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_vfs.c')
-rw-r--r--sys/geom/geom_vfs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/geom/geom_vfs.c b/sys/geom/geom_vfs.c
index 9582513..2e8ae34 100644
--- a/sys/geom/geom_vfs.c
+++ b/sys/geom/geom_vfs.c
@@ -150,3 +150,14 @@ g_vfs_open(struct vnode *vp, struct g_consumer **cpp, const char *fsname, int wr
return (error);
}
+
+void
+g_vfs_close(struct g_consumer *cp, struct thread *td)
+{
+ struct g_geom *gp;
+
+ g_topology_assert();
+
+ gp = cp->geom;
+ g_wither_geom_close(gp, ENXIO);
+}
OpenPOWER on IntegriCloud