Module Name: src
Committed By: dholland
Date: Mon Jun 29 07:11:06 UTC 2009
Modified Files:
src/sys/rump/librump/rumpvfs: rump_vfs.c
Log Message:
Another namei_simple like the previous ones; was added after I did the
initial sweep and I guess I missed it while merging.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/rump/librump/rumpvfs/rump_vfs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/librump/rumpvfs/rump_vfs.c
diff -u src/sys/rump/librump/rumpvfs/rump_vfs.c:1.22 src/sys/rump/librump/rumpvfs/rump_vfs.c:1.23
--- src/sys/rump/librump/rumpvfs/rump_vfs.c:1.22 Fri May 22 08:26:52 2009
+++ src/sys/rump/librump/rumpvfs/rump_vfs.c Mon Jun 29 07:11:06 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_vfs.c,v 1.22 2009/05/22 08:26:52 pooka Exp $ */
+/* $NetBSD: rump_vfs.c,v 1.23 2009/06/29 07:11:06 dholland Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.22 2009/05/22 08:26:52 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.23 2009/06/29 07:11:06 dholland Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -363,14 +363,11 @@
int
rump_vfs_getmp(const char *path, struct mount **mpp)
{
- struct nameidata nd;
struct vnode *vp;
int rv;
- NDINIT(&nd, LOOKUP, FOLLOW | TRYEMULROOT, UIO_USERSPACE, path);
- if ((rv = namei(&nd)) != 0)
+ if ((rv = namei_simple_user(path, NSM_FOLLOW_TRYEMULROOT, &vp)) != 0)
return rv;
- vp = nd.ni_vp;
*mpp = vp->v_mount;
vrele(vp);