diff options
author | Tushar Gohad <tushar.gohad@intel.com> | 2014-08-06 23:03:35 -0700 |
---|---|---|
committer | Tushar Gohad <tushar.gohad@intel.com> | 2014-08-07 14:19:43 -0700 |
commit | 5e2108722cb657e2af4edd6947fbf26cd05e9371 (patch) | |
tree | c888ef92d1b4e029317a19406c8c22529911c057 /src/erasurecode_preprocessing.c | |
parent | 0b19aec9df1ad7e0f37f9bb0d668bbb005fb7dac (diff) | |
download | liberasurecode-5e2108722cb657e2af4edd6947fbf26cd05e9371.tar.gz |
Split metadata handling into own routine, add crc32 support
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
Diffstat (limited to 'src/erasurecode_preprocessing.c')
-rw-r--r-- | src/erasurecode_preprocessing.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/erasurecode_preprocessing.c b/src/erasurecode_preprocessing.c index a45cd65..02ffe51 100644 --- a/src/erasurecode_preprocessing.c +++ b/src/erasurecode_preprocessing.c @@ -62,13 +62,6 @@ int prepare_fragments_for_encode(ec_backend_t instance, memcpy(encoded_data[i], orig_data, payload_size); } - /* Fragment size will always be the same - * (may be able to get rid of this) */ - set_fragment_payload_size(fragment, bsize); - - /* Original data length */ - set_orig_data_size(fragment, orig_data_size); - orig_data += payload_size; data_len -= payload_size; } @@ -81,8 +74,6 @@ int prepare_fragments_for_encode(ec_backend_t instance, } encoded_parity[i] = get_data_ptr_from_fragment(fragment); - set_orig_data_size(fragment, orig_data_size); - set_fragment_payload_size(fragment, bsize); } out: |