Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dkwedge get sector size from disk structure.
details: https://anonhg.NetBSD.org/src/rev/6c1f5aa02ab0
branches: trunk
changeset: 333435:6c1f5aa02ab0
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Tue Nov 04 07:46:26 2014 +0000
description:
get sector size from disk structure.
diffstat:
sys/dev/dkwedge/dkwedge_mbr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d3047157b653 -r 6c1f5aa02ab0 sys/dev/dkwedge/dkwedge_mbr.c
--- a/sys/dev/dkwedge/dkwedge_mbr.c Tue Nov 04 07:45:45 2014 +0000
+++ b/sys/dev/dkwedge/dkwedge_mbr.c Tue Nov 04 07:46:26 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dkwedge_mbr.c,v 1.7 2012/04/07 05:09:09 christos Exp $ */
+/* $NetBSD: dkwedge_mbr.c,v 1.8 2014/11/04 07:46:26 mlelstv Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dkwedge_mbr.c,v 1.7 2012/04/07 05:09:09 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dkwedge_mbr.c,v 1.8 2014/11/04 07:46:26 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -168,7 +168,7 @@
mbr_args_t a;
a.pdk = pdk;
- a.secsize = pdk->dk_label->d_secsize;
+ a.secsize = DEV_BSIZE << pdk->dk_blkshift;
a.vp = vp;
a.buf = malloc(a.secsize, M_DEVBUF, M_WAITOK);
a.error = 0;
Home |
Main Index |
Thread Index |
Old Index