]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ErasureCode: example implementation : K=2 M=1
authorLoic Dachary <loic@dachary.org>
Mon, 19 Aug 2013 17:15:07 +0000 (19:15 +0200)
committerLoic Dachary <loic@dachary.org>
Mon, 9 Sep 2013 21:26:42 +0000 (23:26 +0200)
commit640f2f213f345bd35d57b38f14fbe5a9b38c11cf
tree551409da2ab2281a834ded323040cdf077c9e14c
parentdde21bdfeb6d390d056b66c8983adf68ae1d05a9
ErasureCode: example implementation : K=2 M=1

An erasure code implementation designed for tests. Although it is fully
functional and could be used on actual data, it is mainly provided for
testing purposes. It splits data in two, computes an XOR parity and
can sustain the loss of one chunk.

The constructor will usleep(3) for parameters["usleep"] microseconds
so that the caller can create race conditions.

http://tracker.ceph.com/issues/5878 refs #5878

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/Makefile.am
src/test/osd/ErasureCodeExample.h [new file with mode: 0644]
src/test/osd/TestErasureCodeExample.cc [new file with mode: 0644]