summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2000-11-12 20:45:14 +0000
committersos <sos@FreeBSD.org>2000-11-12 20:45:14 +0000
commit615c8b9aa916910b2dc522c48565398dab597bc8 (patch)
treef9aa8eca01809b96842528ef07b463f63bd50ea5
parentc2971789cc079e18aad42dd1f7e9120dd18bc0ed (diff)
downloadFreeBSD-src-615c8b9aa916910b2dc522c48565398dab597bc8.zip
FreeBSD-src-615c8b9aa916910b2dc522c48565398dab597bc8.tar.gz
Only offset raid disks > 1 on the HPT, this should solve the
boot problems.. However this demands that dangerously dedicated disks use an offset of at least 10 from the start to not overwrite the raid config sector on the HPT...
-rw-r--r--sys/dev/ata/ata-raid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c
index 2ef1ace..2a8b921 100644
--- a/sys/dev/ata/ata-raid.c
+++ b/sys/dev/ata/ata-raid.c
@@ -208,7 +208,8 @@ arstrategy(struct bio *bp)
chunk = count;
}
- buf1->bp.bio_pblkno += rdp->offset;
+ if (buf1->drive > 0)
+ buf1->bp.bio_pblkno += rdp->offset;
buf1->bp.bio_caller1 = (void *)rdp;
buf1->bp.bio_bcount = chunk * DEV_BSIZE;
buf1->bp.bio_data = data;
OpenPOWER on IntegriCloud