]> git.pld-linux.org Git - packages/kernel.git/blame - linux-raid5-spare-counting.patch
- obsolete
[packages/kernel.git] / linux-raid5-spare-counting.patch
CommitLineData
81677530
AM
1diff -urN linux-2.4.21.org/drivers/md/raid5.c linux-2.4.21/drivers/md/raid5.c
2--- linux-2.4.21.org/drivers/md/raid5.c Tue Aug 12 22:22:46 2003
3+++ linux-2.4.21/drivers/md/raid5.c Tue Aug 12 22:54:34 2003
4@@ -1365,6 +1365,7 @@
5 struct disk_info *disk;
6 struct md_list_head *tmp;
7 int start_recovery = 0;
8+ int spares = 0;
9
10 MOD_INC_USE_COUNT;
11
12@@ -1462,6 +1463,7 @@
13 disk->write_only = 0;
14 disk->spare = 1;
15 disk->used_slot = 1;
16+ spares ++;
17 }
18 }
19
20@@ -1554,6 +1556,7 @@
21 }
22 }
23 sb->active_disks = conf->working_disks;
24+ sb->spare_disks = spares;
25
26 if (sb->active_disks == sb->raid_disks)
27 printk("raid5: raid level %d set md%d active with %d out of %d devices, algorithm %d\n", conf->level, mdidx(mddev), sb->active_disks, sb->raid_disks, conf->algorithm);
This page took 0.482842 seconds and 4 git commands to generate.