Proberly calculate the RAID structure on the Promise Fasttrak.

This commit is contained in:
sos 2001-01-04 09:11:00 +00:00
parent 364692a189
commit 6d6cf964fd

View File

@ -428,7 +428,8 @@ ar_promise_conf(struct ad_softc *adp, struct ar_softc **raidp)
u_int32_t cksum, *ckptr;
int count, disk_number, array;
lba = adp->total_secs - adp->sectors;
lba = ((adp->total_secs / (adp->heads * adp->sectors)) *
adp->heads * adp->sectors) - adp->sectors;
if (ar_read(adp, lba, 4 * DEV_BSIZE, (char *)&info)) {
if (bootverbose)