summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/compat/linux/linux_file.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index ae5ad36..8200faf 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -732,8 +732,6 @@ linux_mount(struct thread *td, struct linux_mount_args *args)
struct ufs_args ufs;
char fstypename[MFSNAMELEN];
char mntonname[MNAMELEN], mntfromname[MNAMELEN];
- struct uio auio;
- struct iovec iov[4];
int error;
int fsflags;
void *fsdata;
@@ -790,19 +788,10 @@ linux_mount(struct thread *td, struct linux_mount_args *args)
}
if (strcmp(fstypename, "linprocfs") == 0) {
- bzero(&auio, sizeof(auio));
- auio.uio_iov = iov;
- auio.uio_iovcnt = sizeof(iov) / sizeof(*iov);
- auio.uio_segflg = UIO_SYSSPACE;
- iov[0].iov_base = "fstype";
- iov[0].iov_len = sizeof("fstype");
- iov[1].iov_base = fstypename;
- iov[1].iov_len = strlen(fstypename) + 1;
- iov[2].iov_base = "fspath";
- iov[2].iov_len = sizeof("fspath");
- iov[3].iov_base = mntonname;
- iov[3].iov_len = strlen(mntonname) + 1;
- error = vfs_nmount(td, fsflags, &auio);
+ error = kernel_vmount(fsflags,
+ "fstype", fstypename,
+ "fspath", mntonname,
+ NULL);
} else
error = vfs_mount(td, fstypename, mntonname, fsflags, fsdata);
return (error);
OpenPOWER on IntegriCloud