Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ata The partition size is always computed in native ...



details:   https://anonhg.NetBSD.org/src/rev/92ca31d27296
branches:  trunk
changeset: 332904:92ca31d27296
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Oct 11 14:05:11 2014 +0000

description:
The partition size is always computed in native blocks. The code also assumes
that native blocks are always DEVB_SIZE (a few lines earlier) which makes
the current calculation a no-op.

diffstat:

 sys/dev/ata/wd.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 3948bf19338e -r 92ca31d27296 sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c  Sat Oct 11 13:56:01 2014 +0000
+++ b/sys/dev/ata/wd.c  Sat Oct 11 14:05:11 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wd.c,v 1.413 2014/09/10 07:04:48 matt Exp $ */
+/*     $NetBSD: wd.c,v 1.414 2014/10/11 14:05:11 mlelstv Exp $ */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.413 2014/09/10 07:04:48 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.414 2014/10/11 14:05:11 mlelstv Exp $");
 
 #include "opt_ata.h"
 
@@ -1082,8 +1082,7 @@
        lp->d_flags = 0;
 
        lp->d_partitions[RAW_PART].p_offset = 0;
-       lp->d_partitions[RAW_PART].p_size =
-           lp->d_secperunit * (lp->d_secsize / DEV_BSIZE);
+       lp->d_partitions[RAW_PART].p_size = lp->d_secperunit;
        lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED;
        lp->d_npartitions = RAW_PART + 1;
 



Home | Main Index | Thread Index | Old Index