From 334f09ed2aa2cadf1a5a71122136f5ef65f30423 Mon Sep 17 00:00:00 2001 From: sos Date: Tue, 12 Feb 2002 11:35:15 +0000 Subject: 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. --- sys/dev/ata/atapi-all.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/ata/atapi-all.c') diff --git a/sys/dev/ata/atapi-all.c b/sys/dev/ata/atapi-all.c index aab4082..c0856d4 100644 --- a/sys/dev/ata/atapi-all.c +++ b/sys/dev/ata/atapi-all.c @@ -158,7 +158,9 @@ atapi_detach(struct ata_device *atadev) free(request, M_ATAPI); } free(atadev->result, M_ATAPI); - atadev->driver = NULL; /* XXX SOS safetybelt */ + atadev->driver = NULL; + atadev->flags = 0; + } int -- cgit v1.1