Module Name: src Committed By: pooka Date: Wed Nov 25 15:01:28 UTC 2009
Modified Files: src/sys/rump/librump/rumpvfs: rumpblk.c Log Message: * report partition size in blocks instead of bytes * "support" DIOCCACHESYNC. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/rump/librump/rumpvfs/rumpblk.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/rumpblk.c diff -u src/sys/rump/librump/rumpvfs/rumpblk.c:1.31 src/sys/rump/librump/rumpvfs/rumpblk.c:1.32 --- src/sys/rump/librump/rumpvfs/rumpblk.c:1.31 Fri Nov 20 17:48:52 2009 +++ src/sys/rump/librump/rumpvfs/rumpblk.c Wed Nov 25 15:01:28 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rumpblk.c,v 1.31 2009/11/20 17:48:52 pooka Exp $ */ +/* $NetBSD: rumpblk.c,v 1.32 2009/11/25 15:01:28 pooka Exp $ */ /* * Copyright (c) 2009 Antti Kantee. All Rights Reserved. @@ -52,7 +52,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rumpblk.c,v 1.31 2009/11/20 17:48:52 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rumpblk.c,v 1.32 2009/11/25 15:01:28 pooka Exp $"); #include <sys/param.h> #include <sys/buf.h> @@ -184,7 +184,7 @@ for (i = 0; i < part; i++) { lp->d_partitions[i].p_fstype = FS_UNUSED; } - lp->d_partitions[part].p_size = size; + lp->d_partitions[part].p_size = size >> DEV_BSHIFT; lp->d_npartitions = part+1; /* XXX: file system type? */ @@ -532,6 +532,11 @@ pi->part = &rblk->rblk_label.d_partitions[DISKPART(dmin)]; pi->disklab = &rblk->rblk_label; break; + + /* it's synced enough along the write path */ + case DIOCCACHESYNC: + break; + default: error = ENOTTY; break;