aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2008-09-19 15:17:32 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2008-09-19 15:17:32 +0000
commit6e6049e9df6850341d51adcd503cfe79a4f35e86 (patch)
treea9d6ccf748bc69f3be4e95072ed4b5a233f5ad73 /sys/kern/vfs_mount.c
parent67442c6e80b7267ada4b542c0cf0d4266d280528 (diff)
downloadsrc-6e6049e9df6850341d51adcd503cfe79a4f35e86.tar.gz
src-6e6049e9df6850341d51adcd503cfe79a4f35e86.zip
Notes
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index a3f440282755..afac5ed1e151 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -77,8 +77,6 @@ static int vfs_domount(struct thread *td, const char *fstype,
char *fspath, int fsflags, void *fsdata);
static int vfs_mountroot_ask(void);
static int vfs_mountroot_try(const char *mountfrom);
-static int vfs_donmount(struct thread *td, int fsflags,
- struct uio *fsoptions);
static void free_mntarg(struct mntarg *ma);
static int vfs_getopt_pos(struct vfsoptlist *opts, const char *name);
@@ -583,7 +581,7 @@ vfs_mount_destroy(struct mount *mp)
uma_zfree(mount_zone, mp);
}
-static int
+int
vfs_donmount(struct thread *td, int fsflags, struct uio *fsoptions)
{
struct vfsoptlist *optlist;
@@ -592,11 +590,9 @@ vfs_donmount(struct thread *td, int fsflags, struct uio *fsoptions)
int error, fstypelen, fspathlen, errmsg_len, errmsg_pos;
int has_rw, has_noro;
- errmsg = NULL;
- errmsg_len = 0;
+ errmsg = fspath = NULL;
+ errmsg_len = has_noro = has_rw = fspathlen = 0;
errmsg_pos = -1;
- has_rw = 0;
- has_noro = 0;
error = vfs_buildopts(fsoptions, &optlist);
if (error)