]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: ErasureCodeInterface::get_chunk_mapping()
authorLoic Dachary <loic@dachary.org>
Tue, 3 Jun 2014 15:45:47 +0000 (17:45 +0200)
committerLoic Dachary <loic@dachary.org>
Thu, 14 Aug 2014 23:07:21 +0000 (01:07 +0200)
commit298da45c5c4a2be319c49876c9f1d0addbb54b04
tree9b5ed73f3ec668623d8a019d46f5570ff109aeae
parent8fb472995e807e7e95863d73f366ec02c5b3edc3
erasure-code: ErasureCodeInterface::get_chunk_mapping()

Add support for erasure code plugins that do not sequentially map the
chunks encoded to the corresponding index. This is mostly transparent to
the caller, except when it comes to retrieving the data chunks when
reading. For this purpose there needs to be a remapping function so the
caller has a way to figure out which chunks actually contain the data
and reorder them.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/erasure-code/ErasureCode.cc
src/erasure-code/ErasureCode.h
src/erasure-code/ErasureCodeInterface.h
src/test/erasure-code/ErasureCodeExample.h