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...
This commit is contained in:
sos 2000-11-12 20:45:14 +00:00
parent c2971789cc
commit 615c8b9aa9

View File

@ -208,7 +208,8 @@ arstrategy(struct bio *bp)
chunk = count; 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_caller1 = (void *)rdp;
buf1->bp.bio_bcount = chunk * DEV_BSIZE; buf1->bp.bio_bcount = chunk * DEV_BSIZE;
buf1->bp.bio_data = data; buf1->bp.bio_data = data;