aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorChuck Silvers <chs@FreeBSD.org>2020-03-06 18:41:37 +0000
committerChuck Silvers <chs@FreeBSD.org>2020-03-06 18:41:37 +0000
commitf15ccf8836d9d42b92f999dbd6c4746c9547f8a6 (patch)
tree38fe0edcbd4e53a2582d03f803e6da6ade9f1dac /sys/sys/mount.h
parent6c37d6032ed296370371f8c9f79068ba7c6a54df (diff)
downloadsrc-f15ccf8836d9d42b92f999dbd6c4746c9547f8a6.tar.gz
src-f15ccf8836d9d42b92f999dbd6c4746c9547f8a6.zip
Add a new "mntfs" pseudo file system which provides private device vnodes for
file systems to safely access their disk devices, and adapt FFS to use it. Also add a new BO_NOBUFS flag to allow enforcing that file systems using mntfs vnodes do not accidentally use the original devfs vnode to create buffers. Reviewed by: kib, mckusick Approved by: imp (mentor) Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D23787
Notes
Notes: svn path=/head/; revision=358714
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 394c2f2f18cd..1941f2da2f09 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -940,6 +940,8 @@ extern struct sx vfsconf_sx;
#define vfsconf_unlock() sx_xunlock(&vfsconf_sx)
#define vfsconf_slock() sx_slock(&vfsconf_sx)
#define vfsconf_sunlock() sx_sunlock(&vfsconf_sx)
+struct vnode *mntfs_allocvp(struct mount *, struct vnode *);
+void mntfs_freevp(struct vnode *);
/*
* Declarations for these vfs default operations are located in