DORMANTno replies

[PATCH] 2.4.25 raid1 : correct nr of spares after I/O errors

From: Mike Tran <hidden>
Date: 2004-03-17 22:44:04

If the spare failed during a resync, the number of spares should be
decremented.

Regards,
Mike T.

--- a/drivers/md/raid1.c        2004-03-17 14:26:51.000000000 -0600
+++ b/drivers/md/raid1.c        2004-03-17 14:28:11.000000000 -0600
@@ -762,6 +762,10 @@
                sb->active_disks--;
        sb->working_disks--;
        sb->failed_disks++;
+       if (mirror->spare) {
+               sb->spare_disks--;
+               mirror->spare = 0;
+       }
        mddev->sb_dirty = 1;
        md_wakeup_thread(conf->thread);
        if (!mirror->write_only)

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help