]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Fix 'enough' function for RAID10.
authorNeilBrown <neilb@suse.de>
Wed, 3 Oct 2012 03:53:46 +0000 (13:53 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 3 Oct 2012 03:53:46 +0000 (13:53 +1000)
commitb3ec716d009ec5f8054ae0cdee38a44bfb60524e
tree266cc8a197ac4431f8a723ba76dc39a546c4aaf7
parent6a1cde4d06806549db6e59a80ddb275e9b41f12b
Fix 'enough' function for RAID10.

The 'enough' function is written to work with 'near' arrays only
in that is implicitly assumes that the offset from one 'group' of
devices to the next is the same as the number of copies.
In reality it is the number of 'near' copies.

So change it to make this number explicit.

Reported-by: Jakub Husák <jakub@gooseman.cz>
Signed-off-by: NeilBrown <neilb@suse.de>
util.c