Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpvfs print some dmesg blub for etfs file...
details: https://anonhg.NetBSD.org/src/rev/7427b3e3bfc3
branches: trunk
changeset: 758560:7427b3e3bfc3
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Nov 08 11:01:45 2010 +0000
description:
print some dmesg blub for etfs files attaching as block devices
diffstat:
sys/rump/librump/rumpvfs/rumpfs.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r b628aa311e8a -r 7427b3e3bfc3 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Mon Nov 08 09:43:27 2010 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Mon Nov 08 11:01:45 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfs.c,v 1.65 2010/09/06 15:07:33 pooka Exp $ */
+/* $NetBSD: rumpfs.c,v 1.66 2010/11/08 11:01:45 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.65 2010/09/06 15:07:33 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.66 2010/11/08 11:01:45 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -283,6 +283,7 @@
doregister(const char *key, const char *hostpath,
enum rump_etfs_type ftype, uint64_t begin, uint64_t size)
{
+ char buf[9];
struct etfs *et;
struct rumpfs_node *rn;
uint64_t fsize;
@@ -358,6 +359,11 @@
LIST_INSERT_HEAD(&etfs_list, et, et_entries);
mutex_exit(&etfs_lock);
+ if (ftype == RUMP_ETFS_BLK) {
+ format_bytes(buf, sizeof(buf), size);
+ aprint_verbose("%s: hostpath %s (%s)\n", key, hostpath, buf);
+ }
+
return 0;
}
#undef REGDIR
Home |
Main Index |
Thread Index |
Old Index