]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: add ceph_erasure_code debug command 1177/head
authorLoic Dachary <loic@dachary.org>
Mon, 3 Feb 2014 13:00:41 +0000 (14:00 +0100)
committerLoic Dachary <loic@dachary.org>
Tue, 4 Feb 2014 14:58:19 +0000 (15:58 +0100)
commite80b084f916e0b81e22a1f9859d8f1ad2e3d1fdb
tree36ea1895c6b6bf099ed3683ba0d8468148edcfd2
parentbec12096e717c59972e6db01c53f8d62220f2695
erasure-code: add ceph_erasure_code debug command

It loads a designated erasure-code plugin and calls its
methods. It is convenient to figure out and tune the number of data
chunks, the size of an aligned chunk etc. For instance:

ceph_erasure_code \
      --parameter erasure-code-plugin=jerasure \
      --parameter erasure-code-directory=.libs \
      --parameter erasure-code-technique=reed_sol_van \
      --parameter erasure-code-k=2 \
      --parameter erasure-code-m=2 \
      --all

displays the chunk size when encoding an object of 1024 bytes.

get_chunk_size(1024) 512
get_data_chunk_count 2
get_chunk_count 4

Signed-off-by: Loic Dachary <loic@dachary.org>
ceph.spec.in
debian/ceph-test.install
src/.gitignore
src/test/erasure-code/Makefile.am
src/test/erasure-code/ceph_erasure_code.cc [new file with mode: 0644]