diff options
author | sos <sos@FreeBSD.org> | 2002-02-12 11:35:15 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2002-02-12 11:35:15 +0000 |
commit | 334f09ed2aa2cadf1a5a71122136f5ef65f30423 (patch) | |
tree | 0c8c08ffda24c52313dd92cb9925bfcc9f6e4d43 /sys/dev/ata/ata-disk.c | |
parent | 050837293fd14801c43b6cdedb8f4af1561a00de (diff) | |
download | FreeBSD-src-334f09ed2aa2cadf1a5a71122136f5ef65f30423.zip FreeBSD-src-334f09ed2aa2cadf1a5a71122136f5ef65f30423.tar.gz |
Major update of the ATA RAID code, part 2:
More cleanups of the RAID1 failure mode code.
Add functionality that writes the changed RAID config setup
back to the disks (in controller BIOS specific format), so
that a reboot will make the BIOS pick up the changed config.
Diffstat (limited to 'sys/dev/ata/ata-disk.c')
-rw-r--r-- | sys/dev/ata/ata-disk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index 68b5262..e97b5df 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -209,9 +209,10 @@ ad_attach(struct ata_device *atadev) adp->disk.d_label.d_secperunit = adp->total_secs; atadev->driver = adp; + atadev->flags = 0; /* if this disk belongs to an ATA RAID dont print the probe */ - if (!ar_probe(adp)) + if (!ata_raid_probe(adp)) adp->flags |= AD_F_RAID_SUBDISK; else ad_print(adp, ""); @@ -248,6 +249,7 @@ ad_detach(struct ata_device *atadev, int flush) /* get rid of flush XXX SOS */ ata_free_name(atadev); ata_free_lun(&adp_lun_map, adp->lun); atadev->driver = NULL; + atadev->flags = 0; free(adp, M_AD); } |