]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Fix 'enough' function for RAID10.
authorNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 06:58:44 +0000 (16:58 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 06:58:44 +0000 (16:58 +1000)
commit2117ad1dd1b79cf6d02a065d9e38076aa9f4788d
treecfe84fd1a905bf51178265cb0768777e20d7cdae
parentaec89f63e98322a141d146a84c67b0cc2d1cd1a4
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