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 implement DIOCGMEDIASIZE, from Mart...
details: https://anonhg.NetBSD.org/src/rev/d9c9332f6369
branches: trunk
changeset: 338471:d9c9332f6369
user: pooka <pooka%NetBSD.org@localhost>
date: Tue May 26 16:48:05 2015 +0000
description:
implement DIOCGMEDIASIZE, from Martin Lucina
diffstat:
sys/rump/librump/rumpvfs/rumpblk.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 21027dbd0ef9 -r d9c9332f6369 sys/rump/librump/rumpvfs/rumpblk.c
--- a/sys/rump/librump/rumpvfs/rumpblk.c Tue May 26 16:08:01 2015 +0000
+++ b/sys/rump/librump/rumpvfs/rumpblk.c Tue May 26 16:48:05 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpblk.c,v 1.59 2015/01/02 19:42:07 christos Exp $ */
+/* $NetBSD: rumpblk.c,v 1.60 2015/05/26 16:48:05 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpblk.c,v 1.59 2015/01/02 19:42:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpblk.c,v 1.60 2015/05/26 16:48:05 pooka Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -439,6 +439,10 @@
case DIOCCACHESYNC:
break;
+ case DIOCGMEDIASIZE:
+ *(off_t *)addr = (off_t)rblk->rblk_size;
+ break;
+
default:
error = ENOTTY;
break;
Home |
Main Index |
Thread Index |
Old Index