Module Name: src Committed By: pooka Date: Mon Nov 8 11:01:46 UTC 2010
Modified Files: src/sys/rump/librump/rumpvfs: rumpfs.c Log Message: print some dmesg blub for etfs files attaching as block devices To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/rump/librump/rumpvfs/rumpfs.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/rumpfs.c diff -u src/sys/rump/librump/rumpvfs/rumpfs.c:1.65 src/sys/rump/librump/rumpvfs/rumpfs.c:1.66 --- src/sys/rump/librump/rumpvfs/rumpfs.c:1.65 Mon Sep 6 15:07:33 2010 +++ src/sys/rump/librump/rumpvfs/rumpfs.c Mon Nov 8 11:01:45 2010 @@ -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