summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-03-16 08:59:37 +0000
committertjr <tjr@FreeBSD.org>2004-03-16 08:59:37 +0000
commitd37f036c1829ff37b16b16900d8784d8548978b4 (patch)
treef62f2ce4c5b064050ecfabaa5185239aebee2cad
parentf1f3d78ff5e106edd85749e95403f81f3ea90e3f (diff)
downloadFreeBSD-src-d37f036c1829ff37b16b16900d8784d8548978b4.zip
FreeBSD-src-d37f036c1829ff37b16b16900d8784d8548978b4.tar.gz
Make vfs_nmount() public. The Linux emulator needs this in order to mount
linprocfs filesystems.
-rw-r--r--sys/kern/vfs_mount.c3
-rw-r--r--sys/sys/mount.h1
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 */
OpenPOWER on IntegriCloud