summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2005-05-01 08:45:12 +0000
committersos <sos@FreeBSD.org>2005-05-01 08:45:12 +0000
commit987cd7bedcbb255e6cc75191770251b5bcf5036b (patch)
tree322a9e44fc21878def17fec8481231291aac5398 /sys
parent5d2a2acbcb2464b4111c52bb823d0d9751dbf7d4 (diff)
downloadFreeBSD-src-987cd7bedcbb255e6cc75191770251b5bcf5036b.zip
FreeBSD-src-987cd7bedcbb255e6cc75191770251b5bcf5036b.tar.gz
Go back to the old way of finding the Promise metadata, the new way was
too simple causing older controllers metadata to get lost.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ata/ata-raid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-raid.h b/sys/dev/ata/ata-raid.h
index 4f3b67c..eed057a 100644
--- a/sys/dev/ata/ata-raid.h
+++ b/sys/dev/ata/ata-raid.h
@@ -522,7 +522,7 @@ struct lsiv3_raid_conf {
/* Promise FastTrak Metadata */
#define PR_LBA(dev) \
- (((struct ad_softc *)device_get_ivars(dev))->total_secs - 63)
+ (((((struct ad_softc *)device_get_ivars(dev))->total_secs / (((struct ad_softc *)device_get_ivars(dev))->heads * ((struct ad_softc *)device_get_ivars(dev))->sectors)) * ((struct ad_softc *)device_get_ivars(dev))->heads * ((struct ad_softc *)device_get_ivars(dev))->sectors) - ((struct ad_softc *)device_get_ivars(dev))->sectors)
struct promise_raid_conf {
char promise_id[24];
OpenPOWER on IntegriCloud