diff options
author | phk <phk@FreeBSD.org> | 2004-07-27 21:38:42 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-07-27 21:38:42 +0000 |
commit | 7b7f2efb4b9f7d876c4f1c26410be031e1d6582a (patch) | |
tree | a5fd4a9b8da2a2c7aca1615b00973469a5c95c0b | |
parent | b7c0ab3f945bb859a5db04b7d6579b43d8c44d48 (diff) | |
download | FreeBSD-src-7b7f2efb4b9f7d876c4f1c26410be031e1d6582a.zip FreeBSD-src-7b7f2efb4b9f7d876c4f1c26410be031e1d6582a.tar.gz |
Use kernel_vmount() instead of vfs_nmount().
-rw-r--r-- | sys/compat/linux/linux_file.c | 19 |
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); |