From f3bbbfe2dfc01d9073b3cae12c7a3274037a1eb2 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 27 Sep 2002 20:56:21 +0000 Subject: [PATCH] Correctly calculate size of PC98 slices. Sponsored by: DARPA & NAI Labs. --- sys/geom/geom_pc98.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/geom_pc98.c b/sys/geom/geom_pc98.c index 949ce55ea5d4..fc3978e5c813 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++;