Module Name: src
Committed By: bad
Date: Thu Sep 26 17:52:51 UTC 2019
Modified Files:
src/sys/rump/librump/rumpkern: emul.c
Log Message:
Provide a weak alias for vnode_to_path to be used unless librumpvfs is present.
To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.192 src/sys/rump/librump/rumpkern/emul.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/rumpkern/emul.c
diff -u src/sys/rump/librump/rumpkern/emul.c:1.191 src/sys/rump/librump/rumpkern/emul.c:1.192
--- src/sys/rump/librump/rumpkern/emul.c:1.191 Sun Jun 2 19:41:51 2019
+++ src/sys/rump/librump/rumpkern/emul.c Thu Sep 26 17:52:50 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: emul.c,v 1.191 2019/06/02 19:41:51 kre Exp $ */
+/* $NetBSD: emul.c,v 1.192 2019/09/26 17:52:50 bad Exp $ */
/*
* Copyright (c) 2007-2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.191 2019/06/02 19:41:51 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.192 2019/09/26 17:52:50 bad Exp $");
#include <sys/param.h>
#include <sys/cprng.h>
@@ -269,6 +269,20 @@ rump_getcwd_common(struct vnode *lvp, st
}
__weak_alias(getcwd_common,rump_getcwd_common);
+/* Weak alias for vnode_to_path to be used unless librumpvfs is present. */
+
+int rump_vnode_to_path(char *, size_t, struct vnode *, struct lwp *,
+ struct proc *);
+int
+rump_vnode_to_path(char *path, size_t len, struct vnode *vp, struct lwp *curl,
+ struct proc *p)
+{
+
+ return ENOENT; /* pretend getcwd_common() failed. */
+}
+__weak_alias(vnode_to_path,rump_vnode_to_path);
+
+
/* Weak aliases for fstrans to be used unless librumpvfs is present. */
void rump_fstrans_start(struct mount *);