diff options
author | sos <sos@FreeBSD.org> | 2002-03-30 11:15:46 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2002-03-30 11:15:46 +0000 |
commit | 0fb3c06959261e2cd01c80bf4d38768431e6e7d5 (patch) | |
tree | a01493675996a5de53202d9c368b95f78dd802f7 /sys | |
parent | 3ef5867e0b39050f8fd12ca962467d8d1c30263c (diff) | |
download | FreeBSD-src-0fb3c06959261e2cd01c80bf4d38768431e6e7d5.zip FreeBSD-src-0fb3c06959261e2cd01c80bf4d38768431e6e7d5.tar.gz |
Use the raid lun not the magic when writing Promise config.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ata/ata-raid.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c index 9d2c4f3..13e17e4 100644 --- a/sys/dev/ata/ata-raid.c +++ b/sys/dev/ata/ata-raid.c @@ -1092,7 +1092,6 @@ ar_promise_read_conf(struct ad_softc *adp, struct ar_softc **raidp, int local) } } - /* check if the checksum is OK */ for (cksum = 0, ckptr = (int32_t *)info, count = 0; count < 511; count++) cksum += *ckptr++; @@ -1296,7 +1295,7 @@ ar_promise_write_conf(struct ar_softc *rdp) config->raid.total_disks = rdp->total_disks; config->raid.stripe_shift = ffs(rdp->interleave) - 1; config->raid.array_width = rdp->width; - config->raid.array_number = rdp->magic_0 >> 16; + config->raid.array_number = rdp->lun; config->raid.total_sectors = rdp->total_sectors; config->raid.cylinders = rdp->cylinders - 1; config->raid.heads = rdp->heads - 1; |