summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* liberasurecode_backend_lookup_id now returns EC_BACKENDS_MAX, asnewapiEric Lambert2014-09-262-7/+7
| | | | | | | opposed to -1, when it can not locate the specified backend (-1 was a non-sensical return value since the function signature called for a type of ec_backend_id_t). NOTE: with this change we now successfully build and tests pass on OS X with clang.
* crc32 checksum now supported (prior to this commit checksum values wereEric Lambert2014-09-255-11/+15
| | | | not being placed into the fragment header).
* Add checksum testcases (but most turned off since we dont seem to beEric Lambert2014-09-251-54/+152
| | | | supporting checksums at the moment).
* A little bit of code clean up based on feedback/reviewsEric Lambert2014-09-152-9/+11
|
* Removed unused timer variables from libec_slapEric Lambert2014-09-111-12/+0
|
* Merge branch 'newapi' of https://bitbucket.org/tsg-/liberasurecode into newapiEric Lambert2014-09-107-113/+217
|\
| * Integrate doxygen with autoconf infrastructureTushar Gohad2014-09-076-8/+132
| | | | | | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
| * Turn on Javadoc style brief for commentsTushar Gohad2014-09-071-1/+1
| |
| * Use printable ascii chars in README + other cleanupTushar Gohad2014-09-071-100/+79
| | | | | | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
| * Constrain Doxygen to just the frontend/backend API headersTushar Gohad2014-09-031-6/+7
| | | | | | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* | Compile in pedantic mode and fail compilation on warnings. Also cleanup all ↵Eric Lambert2014-09-1020-151/+225
|/ | | | existing warnings.
* added simple test for get_fragment_metadataEric Lambert2014-09-031-0/+59
|
* added argument validation logic and tests forEric Lambert2014-09-023-8/+59
| | | | | | | | liberasure_get_fragment_metadata and liberasurecode_verify_stripe_metadata. In the process removed the liberasure descriptor from the liberasure_get_fragment_metadata function's signature as it was not being used in the function's implementation.
* Merge branch 'newapi' of https://bitbucket.org/tsg-/liberasurecode into newapiEric Lambert2014-09-0217-79/+2821
|\
| * README -> README.mdTushar Gohad2014-09-012-460/+467
| | | | | | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
| * README edited online with BitbucketTushar Gohad2014-09-021-37/+68
| |
| * README edited online with BitbucketTushar Gohad2014-09-021-426/+429
| |
| * Add PyECLib/Swift references to READMETushar Gohad2014-09-011-0/+5
| | | | | | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
| * Add doxygen config. Update README, copyrights.Tushar Gohad2014-09-0116-46/+2742
| | | | | | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* | Added more tests (most of which test that the "public" functionsEric Lambert2014-09-022-49/+402
|/ | | | | | perform some argument validity checks). Also fixed some bugs exposed by these new tests. NOTE: liberasurecode_test now *requires* that the null provider be loadable by the test (meaning is on LD_LIBRARY_PATH).
* Fix memory corruption (did not alloc enough in the fragments_needed test).Kevin Greenan2014-08-261-7/+7
|
* skipping fragment_needed test as they have exposed some kind of memoryEric Lambert2014-08-261-4/+3
| | | | corruption issue.
* Merge branch 'newapi' of https://bitbucket.org/tsg-/liberasurecode into newapiEric Lambert2014-08-261-12/+158
|\
| * Freeing the memory allocated by the fragments_needed tests.Kevin Greenan2014-08-261-0/+5
| |
| * Added tests for new get_fragments_needed API.Kevin Greenan2014-08-261-12/+153
| | | | | | | | | | | | | | | | I also fixed some bugs in the tests: 1.) The Hamming distances were incorrect 2.) The translation of Hamming distance to tolerated errors was incorrect (num tolerated = HD -1) 3.) Some of the test names were manged (probably a runaway s///g)
* | Added libec_slap testEric Lambert2014-08-264-1/+604
| |
* | Fixed bug where null_init was not correctly setting w param (was relying on ↵Eric Lambert2014-08-261-0/+2
|/ | | | un-initialized memory which resulted in non-deterministic behavior).
* Merged in more_backend (pull request #5) Tushar Gohad2014-08-251-44/+67
|\ | | | | Cauchy backend cleanup
| * Cleaned up the Cauchy backend. This has a bit more cleaned than theMark Storer2014-08-251-44/+67
|/ | | | | | | | | other backends because Jerasure allocs more memory under the hood that we need to check on init, and cleanup on exit. Minor cleanup wise we do fewer memory derefs by saving the value of k, m and w in a few places. This is, however, probably most effective at just improving readability a bit.
* Merged in backend (pull request #4) Tushar Gohad2014-08-222-44/+32
|\ | | | | Backend cleanup (null and vandermonde)
| * Minor cleanup to null backend. Mostly to the exit cases. Free checks forMark W. Storer2014-08-232-44/+32
|/ | | | | | | | null, so as long we intialize the pointers to NULL, we can be a little terser (and cleaner?) in the exits. Cleanup in the Jerasure Vandermonde backend. Primary change here was to free the memory allocated by Jerasure in the erasures_to_erased method.
* Backend changes needed to honor "excluded fragments".Kevin Greenan2014-08-219-132/+213
|
* minor clean upEric Lambert2014-08-201-7/+8
|
* Merge branch 'newapi' of https://bitbucket.org/tsg-/liberasurecode into newapiEric Lambert2014-08-203-93/+129
|\ | | | | | | | | Conflicts: test/liberasurecode_test.c
| * Make style consistent (formatting, variable defs)Tushar Gohad2014-08-202-63/+66
| | | | | | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
| * API change for liberasurecode_fragments_neededKevin Greenan2014-08-202-14/+23
| | | | | | | | | | | | | | Still needed: 1.) RS and XOR backends need to honor the 'exclude' argument. 2.) Need to add tests.
| * Merged in doc_polish (pull request #3) Kevin Greenan2014-08-203-25/+50
| |\ | | | | | | Doc cleanup and instance destruction safety
| | * - Cleaned up the documentation in erasurecode.h to ensure that itMark Storer2014-08-183-25/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | follows a common format and that it accurately reflects the code. - Cleaned up liberasurecode_instance_destroy to ensure that the return code is correct and that it is not trying to free data that has not been removed from the open instances. - Updated the tests to assert that the liberasurecode_instance_destroy method is return correctly.
* | | decode test now inspects fragmentsEric Lambert2014-08-201-0/+21
|/ /
* | disable compile time optimization when gcov is enabledEric Lambert2014-08-181-0/+2
|/
* Merged in lock_checks (pull request #2) Kevin Greenan2014-08-161-12/+28
|\ | | | | Updated the backend instance register/unregister methods with lock
| * Updated the backend instance register/unregister methods with lockMark Storer2014-08-161-12/+28
| | | | | | | | | | | | status checking. This shouldn't be an issue, but technically, lock requests can fail and so should check the return calls out of good practice.
* | Merged in supported_checksums (pull request #1) Kevin Greenan2014-08-163-6/+9
|\ \ | |/ |/| Updated liberasurecode_supported_checksum_types to accept a pointer
| * Updated liberasurecode_supported_checksum_types to accept a pointerMark Storer2014-08-153-6/+9
|/ | | | | argument that holds the length of the list returned (i.e. the number of supported checksum types).
* Added cleanup APIKevin Greenan2014-08-132-5/+104
|
* Split metadata handling into own routine, add crc32 supportTushar Gohad2014-08-078-108/+258
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* moar testsEric Lambert2014-08-081-17/+55
|
* Merge branch 'newapi' of https://bitbucket.org/tsg-/liberasurecode into newapiEric Lambert2014-08-082-0/+2
|\
| * Minor bug in getting the required fragments for jerasureKevin Greenan2014-08-082-0/+2
| |
* | Added ability to generate coverage data with configure --enable-gcov.Eric Lambert2014-08-086-13/+45
|/ | | | | Currently only works on Linux (build/tests will run on OS X but coverage data is not generated).