]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Detail.c
Detail: fix handling of 'disks' array.
authorNeilBrown <neilb@suse.de>
Mon, 3 Nov 2014 22:35:20 +0000 (09:35 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 3 Nov 2014 22:35:20 +0000 (09:35 +1100)
commit8057db46a15daba1c954352fe19cfa7c9c6a6805
tree57a341b25e3b62e725379102b8078e6c7c499030
parent21dc47172d167e98b15d1d86e69f05d8a7abb8ba
Detail: fix handling of 'disks' array.

Since the introduction of replacement devices, we reserve
to places in the "disks" array for each raid disk.
That means we should allocate to twice "max_disk" as the array
could have that many raid_disks (though that would limit the
number of replacements).

A couple of other places need to use "max_disks*2" instead of
"max_disks" to co-ordinate with this.

Reported-by: Or Sagi <ors@reduxio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Detail.c