Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/dkwedge sc_size is already measured in sectors.



details:   https://anonhg.NetBSD.org/src/rev/53713ac1b854
branches:  trunk
changeset: 341902:53713ac1b854
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Nov 28 13:41:31 2015 +0000

description:
sc_size is already measured in sectors.

diffstat:

 sys/dev/dkwedge/dk.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3e17488cf2c6 -r 53713ac1b854 sys/dev/dkwedge/dk.c
--- a/sys/dev/dkwedge/dk.c      Sat Nov 28 13:20:02 2015 +0000
+++ b/sys/dev/dkwedge/dk.c      Sat Nov 28 13:41:31 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dk.c,v 1.85 2015/10/10 23:39:43 christos Exp $ */
+/*     $NetBSD: dk.c,v 1.86 2015/11/28 13:41:31 mlelstv Exp $  */
 
 /*-
  * Copyright (c) 2004, 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.85 2015/10/10 23:39:43 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.86 2015/11/28 13:41:31 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_dkwedge.h"
@@ -267,7 +267,7 @@
 
        memset(dg, 0, sizeof(*dg));
 
-       dg->dg_secperunit = sc->sc_size >> pdk->dk_blkshift;
+       dg->dg_secperunit = sc->sc_size;
        dg->dg_secsize = DEV_BSIZE << pdk->dk_blkshift;
 
        /* fake numbers, 1 cylinder is 1 MB with default sector size */



Home | Main Index | Thread Index | Old Index