Properly register blocksize with disk(9) framework.
This commit is contained in:
parent
6c9f003a76
commit
d2fd323d98
@ -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 @@ vndioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l)
|
||||
|
||||
/* 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,
|
||||
|
Loading…
Reference in New Issue
Block a user