]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: fix BlaumRoth sanity check on w 2442/head
authorLoic Dachary <loic-201408@dachary.org>
Tue, 9 Sep 2014 19:43:59 +0000 (21:43 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Tue, 9 Sep 2014 19:56:46 +0000 (21:56 +0200)
commit9e2d04f7631cc7cd8444e7329890c2429a2d944e
treed8aa5a3000a50dc2372353c72929c1b3d2400623
parentf917166157f3fce7ad0200f4f25e8466fcaedeea
erasure-code: fix BlaumRoth sanity check on w

For the BlaumRoth technique, w+1 must be a prime. This sanity check is
present in the sample code from the jerasure library but was not
implemented in the jerasure plugin.

The default value for w is also changed to match this constraint. The
unit tests is changed to always use the default w instead of forcing it
to w.

http://tracker.ceph.com/issues/6754 Fixes: #6754

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/erasure-code/jerasure/ErasureCodeJerasure.cc
src/erasure-code/jerasure/ErasureCodeJerasure.h
src/test/erasure-code/TestErasureCodeJerasure.cc