]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ErasureCodeJerasure: define technique Liberation
authorLoic Dachary <loic@dachary.org>
Thu, 29 Aug 2013 13:00:20 +0000 (15:00 +0200)
committerLoic Dachary <loic@dachary.org>
Tue, 10 Sep 2013 14:46:22 +0000 (16:46 +0200)
commit9a820105849a0fa51b5753965941b1143035cd6e
tree7e197450db1a726f294f43364d8cf68bda23e91c
parent530fb8a51f27363f6ccf4fe5d7f214407e1ca55a
ErasureCodeJerasure: define technique Liberation

technique == "liberation"

parse : default to K=7, M=2 and W=7 and packetsize = 8.
If any of the following constraints is not satisfied, revert to the
default:

 * K > W
 * W > 2
 * W is a prime number
 * packetsize must not be zero
 * packetsize must be a multiple of sizeof(int)

pad_in_length : pad to a multiple of k*w*packetsize*sizeof(int)

prepare, jerasure_encode, jerasure_decode map directly to the matching
jerasure functions

https://github.com/dachary/ceph/tree/wip-5879 refs #5879

Signed-off-by: Loic Dachary <loic@dachary.org>
src/osd/ErasureCodePluginJerasure/ErasureCodeJerasure.cc
src/osd/ErasureCodePluginJerasure/ErasureCodeJerasure.h
src/test/osd/TestErasureCodeJerasure.cc