summaryrefslogtreecommitdiff
path: root/src/builtin
Commit message (Collapse)AuthorAgeFilesLines
* Fix underflow in flat_xor_hd codeTim Burke2021-06-281-5/+7
| | | | | Change-Id: I9102f9883e979862557bd33958b2d116795b3169 Closes-Bug: #1726816
* flat_xor_hd: better validate argsTim Burke2017-09-131-1/+1
| | | | | | Previously, we'd segfault with args like k=1, m=3, hd=3. Change-Id: I8a1d92f388c54fe4f5b357eaf85a27e6b334df11
* Fix valgrind-check and memory leakKota Tsuyuzaki2017-02-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Can you believe that we ware testing the memory leak with valgrind to just *bash scripts* instead of actual binaries on liberasurecode_test and libec_slap? That is why we cannot find such an easy memory leak[1] at the gate. Now this patch enable to run the valgrind against to the binaries. With this fix, we found various memory leak at liberasurecode_test as follows and this patch also fixes them: - If we create fake fragments, we're responsible for freeing all of the frags as well as the array holding the pointers to the frags. - If we allocate any space, we're responsible for freeing it. - If we create an EC descriptor, we're responsible for destroying it. - If we create a fragment or skip array, we're responsible for freeing it. - If that happens inside a loop, we're responsible for doing it *inside that same loop*. In addition to the test fix, this patch fixes following memory leaks at the code which is affected to other users (pyeclib, OpenStack Swift) * Refuse to decode fragments that aren't even long enough to include fragment headers. * Fix a small memory leak in the builtin rs_vand implementation. Closes-Bug: #1665242 Co-Authored-By: Tim Burke <tim@swiftstack.com> 1: https://review.openstack.org/#/c/431812 Change-Id: I96f124e4e536bbd7544208acc084de1cda5c19b2
* Fix prototype declaration / definition mismatch (issue #25)Dirk Mueller2016-03-041-1/+1
|
* Rename liberasurecode_rsvand -> liberasurecode_rs_vandliberasurecode_rs_vand-renameTushar Gohad2015-06-221-5/+5
|
* Rename rs_vand_internal to liberasurecode_rs_vandTushar Gohad2015-06-222-7/+7
|
* Adding new built-in backend for RS VandermondeKevin Greenan2015-06-183-0/+664
| | | | This is meant to be used in cases where ISA-L and Jerasure cannot be used.
* Adding a new HD XOR code for k=3, m=3, hd=3Kevin Greenan2015-04-091-0/+2
| | | | | | Also added additional test to test_xor_code to do an exhaustive decode test (all possible 1 and 2 disk failures) and changed teh default liberasurecode test to test (3, 3, 3).
* Fixing bug where non-Intel platforms fail to compile due to SSE2-specific ↵Kevin Greenan2015-03-171-0/+2
| | | | | | header in the xor-encoder. FWIW, we did conditional compilation in the body of the code, but missed the header include.
* fixed mem leaks in rs_vand and xor backendEric Lambert2014-10-101-0/+2
|
* Plugging-in the ISA-L backend... Still needs more documentation and a ↵Kevin Greenan2014-09-291-1/+1
| | | | little clean-up, but the tests are passing...
* Compile in pedantic mode and fail compilation on warnings. Also cleanup all ↵Eric Lambert2014-09-102-1/+2
| | | | existing warnings.
* Backend changes needed to honor "excluded fragments".Kevin Greenan2014-08-211-116/+193
|
* Added ability to generate coverage data with configure --enable-gcov.Eric Lambert2014-08-082-4/+8
| | | | | Currently only works on Linux (build/tests will run on OS X but coverage data is not generated).
* null_code: First cutTushar Gohad2014-07-222-0/+77
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Frontend/backend API split, make EC handle int typeTushar Gohad2014-07-131-550/+0
| | | | | | | .. also introduce a map for backend method stub name to backend library function names Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* xor code backend implementation (WIP)Tushar Gohad2014-07-071-0/+550
| | | | | | | Facing some nasty dlopen() issues when testing with "test/liberasurecode_test" Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* xor_codes: Fix includes to prefer '.' over sys pathsTushar Gohad2014-07-062-3/+3
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* xor_codes: Don't call exit() from shared libraryTushar Gohad2014-07-061-12/+15
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* autoconf: Simplify Makefile.am by adding SUBDIRSTushar Gohad2014-07-061-0/+9
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* xor_codes: Use posix_memalignTushar Gohad2014-07-062-22/+5
| | | | Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
* Add xor scheme to builtins, algsig/crc32 code to utilsTushar Gohad2014-06-292-0/+1015
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>