diff options
author | obrien <obrien@FreeBSD.org> | 2008-09-19 15:17:32 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2008-09-19 15:17:32 +0000 |
commit | 0c0da6bba72d56bf2e0d5bf968756ed695d82acf (patch) | |
tree | a9d6ccf748bc69f3be4e95072ed4b5a233f5ad73 /sys/kern | |
parent | 99d8d99aa0169e2294a176be083085bf7a734d40 (diff) | |
download | FreeBSD-src-0c0da6bba72d56bf2e0d5bf968756ed695d82acf.zip FreeBSD-src-0c0da6bba72d56bf2e0d5bf968756ed695d82acf.tar.gz |
Add freebsd32 compat shim for nmount(2).
(and quiet some compiler warnings for vfs_donmount)
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_mount.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index a3f4402..afac5ed 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) |