Commit Graph

319 Commits

Author SHA1 Message Date
Tushar Gohad fe3dec94e4 Remove remaining m4/ references 2015-06-21 22:17:08 +00:00
Kevin Greenan f3a99e81e9 Removing all m4 references for CPUID by creating special C program to parse
CPUID and directly doing compiler checks in autoconf.ac
2015-05-03 17:50:38 -07:00
Kevin Greenan 738d579185 Replace GPL m4 macros with different macros inside of ax_ext.m4 2015-05-02 10:49:54 -07:00
Tushar Gohad e46c434e36 Add missing #ifdef __cplusplus closure, Fixes #14 (take 2) 2015-05-01 07:10:24 -07:00
Tushar Gohad e26a90a91f Merged in zaitcev/liberasurecode/missing_cflags (pull request #16)
Make ./configure to obey CFLAGS
2015-04-30 22:49:36 -07:00
Pete Zaitcev 5cbab56a1a Make ./configure to obey CFLAGS
Fedora build system sets global CFLAGS that include things like
mandatory security enhancements. It works for all other packages,
but ./configure in liberasurecode overrides provides CFLAGS.

See Red Hat bug for a humorous workaround:
 https://bugzilla.redhat.com/show_bug.cgi?id=1208695#c4

Note that this patch does not monkey with the --debug side.
Hopefuly this does not violate KISS principle.
2015-04-30 17:46:17 -06:00
Tushar Gohad 7e3b245b77 Add missing #ifdef __cplusplus closure, Fixes #14 2015-04-30 14:28:23 -07:00
Tushar Gohad 18276412fd Fix a uint < 0 warning reported by Clang
Also add -Wall for future builds
2015-04-30 13:43:23 -07:00
Kevin Greenan 5afed81193 This fixed the memory leak mentioned in Issue #12:
https://bitbucket.org/tsg-/liberasurecode/issue/12/make-valgrind-test-fails
2015-04-27 11:59:32 -07:00
Kevin Greenan a01b1818c8 This is the fix for Issue #13:
https://bitbucket.org/tsg-/liberasurecode/issue/13/decode-fails-for-many-cases-when-m-k

This fix includes:

1.) Proper buffer allocation for the 'missing_idxs' structure, which was not allocating enough
    space when k > m.
2.) Checks to use header fields of parity fragments during decode when *no* data fragments
    are available.
3.) Fixed the unit tests to properly handle the case where k <= m.
4.) Extended the unit test framework to support multiple tests per backend
5.) Added tests for all RS implementations: (4,8), (4,4), (10,10)
2015-04-27 11:59:21 -07:00
Tushar Gohad a380246762 v1.0.7 2015-04-15 12:00:36 -07:00
Kevin Greenan ac434453c5 Adding a new HD XOR code for k=3, m=3, hd=3
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).
2015-04-09 17:08:35 -07:00
Tushar Gohad 1c85fcfca6 Merged in fix-metadata-check (pull request #13)
fix-metadata-check from Kota
2015-03-30 19:12:41 -07:00
Tushar Gohad 497a0d8425 Merged in zaitcev/liberasurecode/missing_ldl (pull request #12)
Fix building with --disable-static
2015-03-30 19:10:58 -07:00
Pete Zaitcev 64d87a9064 Fix building with --disable-static
Fedora packaging rules require ./configure --disable-static.
However, that ends with:
../src/.libs/liberasurecode.so: undefined reference to `dlopen'

The fix is to add a missing -ldl into flags of test_xor_hd_code.
2015-03-30 20:00:24 -06:00
Kevin Greenan 0d1e4136ae Fix nasty rebuild bug where partiy would be reconstructed incorrectly
when both data and parity was missing.  The fix is to just call decode
when reconstructing parity, since it will have to do extra work anyway
when data is missing.  We did a little extra work in ISA-L to do better,
but can save that for later, since 99% of the time decode will perform just
fine.
2015-03-30 15:23:22 -07:00
Kota Tsuyuzaki 3c4ff134cb Add a decode error test w/o metadata check 2015-03-30 12:30:39 +09:00
Kota Tsuyuzaki 309d7f1e47 Fix invalid metadata handling
On the current code, get_fragment_partition might touch the
invlid memory area with minus index (that means a invalid header)
and it causes segmentation fault.

This fixes it to handle the minus index as a EBADHEADER and then
no segmentaition fault appeared on the case.
2015-03-30 11:01:56 +09:00
Tushar Gohad c10ec8a255 README.md edited online with Bitbucket 2015-03-29 20:23:45 +00:00
Tushar Gohad 9a24890f9c Sanitize fragments_to_string() errorcodes, add tests for frags w/o fmetadata
Addresses issue#10
2015-03-28 22:33:45 -07:00
Kevin Greenan a2f17bcd63 Fixing bug where non-Intel platforms fail to compile due to SSE2-specific header in the xor-encoder.
FWIW, we did conditional compilation in the body of the code, but missed the header include.
2015-03-17 11:29:39 -07:00
Tushar Gohad 4e1290ea61 v1.0.5 2015-03-13 00:47:05 -07:00
Tushar Gohad 21ed77fed2 Log to syslog and stderr by default 2015-03-13 00:08:56 -07:00
Tushar Gohad 235a976910 v1.0.4 2015-03-11 09:53:45 -07:00
Tushar Gohad d7d0bbde09 Reallow 0 byte encodes 2015-03-11 09:44:37 -07:00
Tushar Gohad b6851e829d test: Add missing EBACKENDNOTAVAIL checks
Without these checks, backend libraries not being available
is causing errors like in tests that are missing these checks:

 $ make test
[snip]
ok 1 - test_create_backend_invalid_args: UNKNOWN
 lt-liberasurecode_test: liberasurecode_test.c:276: test_destroy_backend_invalid_args: Assertion `desc > 0' failed. make: *** [test] Aborted (core dumped)

Closes issue #6
2015-03-10 19:17:51 -07:00
Tushar Gohad 93446db941 Set runtime ld path to point to local so's when running tests 2015-03-10 18:48:03 -07:00
Kota Tsuyuzaki d81488a6b7 WIP: fix doubtful code 2015-03-09 10:58:42 -07:00
Tushar Gohad ceb8a406d0 Fix JERASURE_SONAME in alg_sig.h 2015-03-09 05:15:57 +00:00
Kota Tsuyuzaki d57a686df9 Use enum value when handling shss 2015-03-09 04:59:54 +00:00
Tushar Gohad 0e535da2a7 Merged in small-fix (pull request #11)
Memory Leak Bug Fix on shss
2015-03-08 20:14:19 -07:00
Kota Tsuyuzaki f0fc4f12d6 Fix memory leak by alloc internal_payload
shss always needs to decode but fragments_to_string
will alloc internal_payload as a decoded data. It causes
duplicated memory allocation and memory leak.
2015-03-09 11:04:14 +09:00
Tushar Gohad c53f9085b7 Fix so version to be 1.0.1 (was 0.9.10) 2015-03-08 14:41:29 -07:00
Tushar Gohad 5b8938dcd3 v1.0 2015-03-08 01:56:16 -07:00
Tushar Gohad 814e1a53d6 Improve error code returns 2015-03-08 01:56:16 -07:00
Tushar Gohad 688ed3260d Add md5sum implementation 2015-03-08 01:56:16 -07:00
Kota Tsuyuzaki 1667acb87c Apply EINSUFFFRAGS to reconstruct 2015-03-06 14:58:06 +09:00
Tushar Gohad de94bbad63 v1.0-rc3 2015-03-05 16:02:39 -07:00
Tushar Gohad ff7977635e README.md edited online with Bitbucket 2015-03-05 14:54:09 -07:00
Tushar Gohad a99f69513c v1.0-rc2 2015-03-04 22:34:58 -07:00
Tushar Gohad 40f4337407 Merged in documentation (pull request #9)
Documentation Updating
2015-03-04 22:26:17 -07:00
Kota Tsuyuzaki a63cae1190 Rename metadata_adder on backend_common
This patch renames the "metadata_adder" variable to "backend_metadata_size"
2015-03-05 14:02:01 +09:00
Kota Tsuyuzaki dd67555f84 Rename frag_adder_size
This patch renames following variables and functions:

- frag_adder_size -> frag_backend_metadata_size
- set_fragment_adder_size() -> set_fragment_backend_metadata_size()
- get_fragment_adder_size() -> get_fragment_backend_metadata_size()
2015-03-05 14:01:10 +09:00
Tushar Gohad 23614e823d Remove md5 from the supported checksum types
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
2015-03-04 21:41:31 -07:00
Tushar Gohad 1d77aefa9b Merged in metadata_adder_new_patches2 (pull request #8)
New (fixed) patch set of metadata_adder discussion
2015-03-01 02:34:16 -07:00
Kota Tsuyuzaki 9722168b58 Update documentation about metadata_adder 2015-02-27 07:56:28 -08:00
Kota Tsuyuzaki 2cdc76aebc Add shss id to README.md 2015-02-27 06:16:30 -08:00
Kota Tsuyuzaki 9e5f83b32a Fix segmentation_fault on shss with no priv_args 2015-02-27 04:54:51 -08:00
Kota Tsuyuzaki 4ca25e9629 Fix isa-l backend to use correct word size 2015-02-27 04:54:51 -08:00
Kota Tsuyuzaki 84cc8cbacb Add contributors into AUTHORS file 2015-02-27 04:54:51 -08:00