diff options
-rw-r--r-- | sys/kern/vfs_mount.c | 3 | ||||
-rw-r--r-- | sys/sys/mount.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index ff52a43..53eb026 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -109,7 +109,6 @@ static int vfs_mount_alloc(struct vnode *dvp, struct vfsconf *vfsp, const char *fspath, struct thread *td, struct mount **mpp); static int vfs_mountroot_ask(void); static int vfs_mountroot_try(char *mountfrom); -static int vfs_nmount(struct thread *td, int fsflags, struct uio *fsopts); static int usermount = 0; /* if 1, non-root can mount fs. */ SYSCTL_INT(_vfs, OID_AUTO, usermount, CTLFLAG_RW, &usermount, 0, ""); @@ -539,7 +538,7 @@ vfs_mount_destroy(struct mount *mp, struct thread *td) free(mp, M_MOUNT); } -static int +int vfs_nmount(struct thread *td, int fsflags, struct uio *fsoptions) { struct vfsoptlist *optlist; diff --git a/sys/sys/mount.h b/sys/sys/mount.h index 6fed967..cad5fe9 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -486,6 +486,7 @@ int vfs_getopt(struct vfsoptlist *, const char *, void **, int *); int vfs_copyopt(struct vfsoptlist *, const char *, void *, int); int vfs_mount(struct thread *td, const char *type, char *path, int flags, void *data); +int vfs_nmount(struct thread *td, int fsflags, struct uio *fsoptions); int vfs_setpublicfs /* set publicly exported fs */ (struct mount *, struct netexport *, struct export_args *); int vfs_lock(struct mount *); /* lock a vfs */ |