Module Name: src Committed By: mlelstv Date: Sun Jan 31 15:40:08 UTC 2010
Modified Files: src/sys/dev: vnd.c Log Message: Properly register blocksize with disk(9) framework. To generate a diff of this commit: cvs rdiff -u -r1.206 -r1.207 src/sys/dev/vnd.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/dev/vnd.c diff -u src/sys/dev/vnd.c:1.206 src/sys/dev/vnd.c:1.207 --- src/sys/dev/vnd.c:1.206 Sat Jan 23 18:31:04 2010 +++ src/sys/dev/vnd.c Sun Jan 31 15:40:08 2010 @@ -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,