Use kernel_vmount() instead of vfs_nmount().

This commit is contained in:
Poul-Henning Kamp 2004-07-27 21:38:42 +00:00
parent dfef91e977
commit ebb48ffd65

View File

@ -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);