]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: add sanity check to guard against k=1 4713/head
authorLoic Dachary <ldachary@redhat.com>
Sun, 17 May 2015 22:29:31 +0000 (00:29 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sat, 6 Jun 2015 21:51:57 +0000 (23:51 +0200)
commit3ec41030cce905f0f57d18efdac22ef6cc87c8c6
tree60fea6d403ab40ebd369cf1c2ec7217a5e0e5ad1
parent37f73607601edf87ae68da969e14100f718e0907
erasure-code: add sanity check to guard against k=1

Add a call to ErasureCode::sanity_check_k for the isa and jerasure
plugins, with associated tests.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/erasure-code/isa/ErasureCodeIsa.cc
src/erasure-code/jerasure/ErasureCodeJerasure.cc
src/test/erasure-code/TestErasureCodeIsa.cc
src/test/erasure-code/TestErasureCodeJerasure.cc
src/test/mon/osd-erasure-code-profile.sh