summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-27 20:56:21 +0000
committerphk <phk@FreeBSD.org>2002-09-27 20:56:21 +0000
commit7f365f22fc46386a368e19f650f3f78ea4a5dd6c (patch)
treef3b5bd029099da261ff529134268ceca7f8fe183
parent0aade3f175756813bffa2ed394d419c4612e9f00 (diff)
downloadFreeBSD-src-7f365f22fc46386a368e19f650f3f78ea4a5dd6c.zip
FreeBSD-src-7f365f22fc46386a368e19f650f3f78ea4a5dd6c.tar.gz
Correctly calculate size of PC98 slices.
Sponsored by: DARPA & NAI Labs.
-rw-r--r--sys/geom/geom_pc98.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_pc98.c b/sys/geom/geom_pc98.c
index 949ce55..fc3978e 100644
--- a/sys/geom/geom_pc98.c
+++ b/sys/geom/geom_pc98.c
@@ -158,7 +158,7 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags)
printf("Index: %d\n", i);
g_hexdump(buf+512 + i * 32, 32);
start = v * fwsect * fwhead * sectorsize;
- length = (u - v) * fwsect * fwhead * sectorsize;
+ length = (1 + u - v) * fwsect * fwhead * sectorsize;
printf("c%d - c%d (%jx - %jx) = %s\n",
v, u, (uintmax_t)start, (uintmax_t)length, buf + 512 + 16 + i * 32);
npart++;
OpenPOWER on IntegriCloud