From 9e93a7456b2c4850370b24d3b7bd9ee0f7d29d8d Mon Sep 17 00:00:00 2001 From: sos Date: Thu, 4 Jan 2001 09:11:00 +0000 Subject: Proberly calculate the RAID structure on the Promise Fasttrak. --- sys/dev/ata/ata-raid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/ata/ata-raid.c') diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c index d361e45..85123aa 100644 --- a/sys/dev/ata/ata-raid.c +++ b/sys/dev/ata/ata-raid.c @@ -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) -- cgit v1.1