9fans archive / 2000 / 11 / 64 /    prev next

From: Micah Stetson <micah@cnm...>
Subject: [9fans] fdisk fix
Date: Sun, 5 Nov 2000 04:51:00 -0800

Well, having successfully located the source, here's the
fix that makes fdisk read secondary partitions correctly.

diff /sys/src/cmd/disk/prep/fdisk.c fdisk.c
384c384
< 			pp->secondary = mktab(table.entry[i], lba, base, i);
---
> 			pp->secondary = mktab(table.entry[i], lba, lba, i);

Now I can go to sleep happy.

Micah