Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Properly register blocksize with disk(9) framework.
details: https://anonhg.NetBSD.org/src/rev/527b8c1d1b68
branches: trunk
changeset: 751315:527b8c1d1b68
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jan 31 15:40:08 2010 +0000
description:
Properly register blocksize with disk(9) framework.
diffstat:
sys/dev/vnd.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r c07f103ab0f9 -r 527b8c1d1b68 sys/dev/vnd.c
--- a/sys/dev/vnd.c Sun Jan 31 15:12:42 2010 +0000
+++ b/sys/dev/vnd.c Sun Jan 31 15:40:08 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnd.c,v 1.206 2010/01/23 18:31:04 bouyer Exp $ */
+/* $NetBSD: vnd.c,v 1.207 2010/01/31 15:40:08 mlelstv Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
@@ -130,7 +130,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.206 2010/01/23 18:31:04 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.207 2010/01/31 15:40:08 mlelstv Exp $");
#if defined(_KERNEL_OPT)
#include "fs_nfs.h"
@@ -1314,6 +1314,7 @@
/* Attach the disk. */
disk_attach(&vnd->sc_dkdev);
+ disk_blocksize(&vnd->sc_dkdev, vnd->sc_geom.vng_secsize);
/* Initialize the xfer and buffer pools. */
pool_init(&vnd->sc_vxpool, sizeof(struct vndxfer), 0,
Home |
Main Index |
Thread Index |
Old Index