summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-06-07 23:16:36 +0000
committerNeil Brown <neilb@suse.de>2005-06-07 23:16:36 +0000
commit234a131a3338bb1509c6d2e0af4c6dcd9cef25fc (patch)
tree86cf041e3a7c573b5d1a0d771f996e503c76b1eb /super0.c
parenta825febc061252f09516429897184fab3b566764 (diff)
downloadmdadm-234a131a3338bb1509c6d2e0af4c6dcd9cef25fc.tar.gz
mdadm-234a131a3338bb1509c6d2e0af4c6dcd9cef25fc.tar.xz
mdadm-234a131a3338bb1509c6d2e0af4c6dcd9cef25fc.zip
Wasn't initialising spare disks on create.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/super0.c b/super0.c
index 9346eb8..d6619d5 100644
--- a/super0.c
+++ b/super0.c
@@ -362,6 +362,7 @@ static int init_super0(void **sbp, mdu_array_info_t *info)
sb->active_disks = info->active_disks;
sb->working_disks = info->working_disks;
sb->failed_disks = info->failed_disks;
+ sb->spare_disks = info->spare_disks;
sb->events_hi = 0;
sb->events_lo = 1;