diff options
author | Tushar Gohad <tushar.gohad@intel.com> | 2014-09-30 06:35:03 -0700 |
---|---|---|
committer | Tushar Gohad <tushar.gohad@intel.com> | 2014-09-30 07:15:16 -0700 |
commit | 032b57d9b1c7aadc547fccbacf88af786c9067e7 (patch) | |
tree | f007a6716585434a77de352601a6525428939c7b /src/erasurecode.c | |
parent | 6c8d66e68beee67f81812a21cc69d73ff7b2b0b5 (diff) | |
download | liberasurecode-backend_metadata_adder.tar.gz |
Add support for custom backend metadatabackend_metadata_adder
A backend may have the need to add custom metadata to the
encoded data/parity fragments, in addition to the
liberasurecode "fragment metadata headers". This patch
gives the ability to a EC backend writer to specify a
"metadata adder" that is taken into account when allocating
output data/parity fragment buffers.
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
Diffstat (limited to 'src/erasurecode.c')
-rw-r--r-- | src/erasurecode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/erasurecode.c b/src/erasurecode.c index b3d1395..61cd269 100644 --- a/src/erasurecode.c +++ b/src/erasurecode.c @@ -598,7 +598,7 @@ int liberasurecode_decode(int desc, * (realloc_bm). * */ - ret = prepare_fragments_for_decode(k, m, + ret = prepare_fragments_for_decode(instance, k, m, data, parity, missing_idxs, &orig_data_size, &blocksize, fragment_len, &realloc_bm); @@ -765,7 +765,7 @@ int liberasurecode_reconstruct_fragment(int desc, * It passes back a bitmap telling us which buffers need to be freed by * us (realloc_bm). */ - ret = prepare_fragments_for_decode(k, m, data, parity, missing_idxs, + ret = prepare_fragments_for_decode(instance, k, m, data, parity, missing_idxs, &orig_data_size, &blocksize, fragment_len, &realloc_bm); if (ret < 0) { |