Provide a weak alias for vnode_to_path to be used unless librumpvfs is present.

This commit is contained in:
bad 2019-09-26 17:52:50 +00:00
parent 1283b96a83
commit c3c178f615
1 changed files with 16 additions and 2 deletions

View File

@ -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, struct vnode *rvp, char **bpp, char *bufp,
}
__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 *);