Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern Add weak aliases for _fstrans_star...



details:   https://anonhg.NetBSD.org/src/rev/bf89c4f4386b
branches:  trunk
changeset: 821934:bf89c4f4386b
user:      hannken <hannken%NetBSD.org@localhost>
date:      Wed Feb 22 11:20:59 2017 +0000

description:
Add weak aliases for _fstrans_start() and fstrans_done().

diffstat:

 sys/rump/librump/rumpkern/emul.c |  24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r e6ff7d679d37 -r bf89c4f4386b sys/rump/librump/rumpkern/emul.c
--- a/sys/rump/librump/rumpkern/emul.c  Wed Feb 22 09:50:13 2017 +0000
+++ b/sys/rump/librump/rumpkern/emul.c  Wed Feb 22 11:20:59 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emul.c,v 1.180 2016/12/22 16:05:15 cherry Exp $        */
+/*     $NetBSD: emul.c,v 1.181 2017/02/22 11:20:59 hannken Exp $       */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,11 +26,12 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.180 2016/12/22 16:05:15 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.181 2017/02/22 11:20:59 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/cprng.h>
 #include <sys/filedesc.h>
+#include <sys/fstrans.h>
 #include <sys/kauth.h>
 #include <sys/module.h>
 #include <sys/reboot.h>
@@ -240,6 +241,25 @@
 __strong_alias(delay,rump_delay);
 __strong_alias(_delay,rump_delay);
 
+/* Weak aliases for fstrans to be used unless librumpvfs is present. */
+
+int rump__fstrans_start(struct mount *, enum fstrans_lock_type, int);
+int
+rump__fstrans_start(struct mount *mp, enum fstrans_lock_type lock, int wait)
+{
+
+       return 0;
+}
+__weak_alias(_fstrans_start,rump__fstrans_start);
+
+void rump_fstrans_done(struct mount *);
+void
+rump_fstrans_done(struct mount *mp)
+{
+
+}
+__weak_alias(fstrans_done,rump_fstrans_done);
+
 /*
  * Provide weak aliases for tty routines used by printf.
  * They will be used unless the rumpkern_tty component is present.



Home | Main Index | Thread Index | Old Index