Source-Changes-HG archive

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

[src/trunk]: src/dist/pdisk use sbBlkSize when calculating sbBlkCount



details:   https://anonhg.NetBSD.org/src/rev/fbfca0a02e7b
branches:  trunk
changeset: 536127:fbfca0a02e7b
user:      dbj <dbj%NetBSD.org@localhost>
date:      Sun Sep 08 16:17:45 2002 +0000

description:
use sbBlkSize when calculating sbBlkCount

diffstat:

 dist/pdisk/partition_map.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 6368b841b42b -r fbfca0a02e7b dist/pdisk/partition_map.c
--- a/dist/pdisk/partition_map.c        Sun Sep 08 14:31:41 2002 +0000
+++ b/dist/pdisk/partition_map.c        Sun Sep 08 16:17:45 2002 +0000
@@ -875,7 +875,7 @@
        return;
     }
     d = map->media_size;
-    size = (d * map->logical_block) / map->physical_block;
+    size = (d * map->logical_block) / p->sbBlkSize;
     if (p->sbBlkCount != size) {
        p->sbBlkCount = size;
     }



Home | Main Index | Thread Index | Old Index