]> git-server-git.apps.pok.os.sepia.ceph.com Git - jerasure.git/log
jerasure.git
8 years agoMerge branch 'wip-memory-leak' into 'v2'
Loic Dachary [Mon, 10 Apr 2017 08:28:01 +0000 (08:28 +0000)]
Merge branch 'wip-memory-leak' into 'v2'

jerasure.c: fix memory leak in error case

See merge request !8

8 years agojerasure.c: fix memory leak in error case
Danny Al-Gaaf [Sat, 22 Mar 2014 21:08:06 +0000 (22:08 +0100)]
jerasure.c: fix memory leak in error case

Check matrix for NULL before call talloc().

CID 1093213 (#1 of 1): Resource leak (RESOURCE_LEAK)
 4. leaked_storage: Variable "bitmatrix" going out of scope
 leaks the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit 6d8fbc8b818c9f23a538f1586ee055b1dd7a7f2f)

11 years agoMerge branch 'wip-exit-v2' into 'v2'
KMG [Mon, 29 Dec 2014 03:26:01 +0000 (03:26 +0000)]
Merge branch 'wip-exit-v2' into 'v2'

exit v2

See merge request !1

11 years agouse assert(0) instead of exit(1)
Loic Dachary [Mon, 15 Dec 2014 11:08:37 +0000 (12:08 +0100)]
use assert(0) instead of exit(1)

When a fatal error (unaligned memory etc.) is detected, jerasure
should assert(3) instead of exit(3) to give a chance to the calling
program to catch the exception and display a stack trace. Although it is
possible for gdb to display the stack trace and break on exit, libraries
are not usually expected to terminate the calling program in this way.

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 36008101d5fd1e3d19230828c0eb231869569893)

11 years agoMerged in dachary/jerasure/wip-galois-init-v2 (pull request #23)
Kevin Greenan [Thu, 12 Jun 2014 19:14:12 +0000 (12:14 -0700)]
Merged in dachary/jerasure/wip-galois-init-v2 (pull request #23)

add galois_init_default_field error code

11 years agoadd galois_init_default_field error code
Loic Dachary [Sun, 8 Jun 2014 16:54:00 +0000 (18:54 +0200)]
add galois_init_default_field error code

galois_init_default_field returns an errno(3) code in case of error
instead of exiting. This is handy when the caller needs to perform
cleanup or error reporting when an error occurs instead of exit(2).

The exit(2) based error handling is preserved in the static
galois_init() function which is used in galois.c instead and is based on
galois_init_default_field to avoid code duplication.

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 1b30a37c9f75df371cf4deaedfde6b843933b4f0)

11 years agoMerged in dachary/jerasure/wip-compilation-warning-v2 (pull request #19)
Kevin Greenan [Thu, 10 Apr 2014 17:47:55 +0000 (10:47 -0700)]
Merged in dachary/jerasure/wip-compilation-warning-v2 (pull request #19)

silence warning about bestrow used uninitialized

11 years agosilence warning about bestrow used uninitialized
Loic Dachary [Sun, 30 Mar 2014 08:55:46 +0000 (10:55 +0200)]
silence warning about bestrow used uninitialized

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit cdc99aadc986c165e66574c633e7202eb830b8f9)

11 years agoMerged in dachary/jerasure/wip-init-v2 (pull request #18)
Kevin Greenan [Wed, 9 Apr 2014 13:45:15 +0000 (06:45 -0700)]
Merged in dachary/jerasure/wip-init-v2 (pull request #18)

make galois_init_default_field(int w) extern

11 years agomake galois_init_default_field(int w) extern
Loic Dachary [Tue, 8 Apr 2014 22:05:18 +0000 (00:05 +0200)]
make galois_init_default_field(int w) extern

So that the application can initialize gfp_array and gfp_is_composite
instead of relying on initialization happening implicitly when the
multiply or xor functions are called. The init function can be called
once when the application guarantees thread safety. And the multiply and
xor functions can be called from multiple threads without risking races.

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 5c9577172c9ba29890c821692dd4a9f9790b20d8)

11 years agoMerged in dachary/jerasure/wip-gitignore-v2 (pull request #13)
Kevin Greenan [Mon, 31 Mar 2014 15:21:41 +0000 (08:21 -0700)]
Merged in dachary/jerasure/wip-gitignore-v2 (pull request #13)

backport of .gitignore files from master

11 years agobackport of .gitignore files from master
Loic Dachary [Sat, 29 Mar 2014 21:46:36 +0000 (22:46 +0100)]
backport of .gitignore files from master

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerged in dachary/jerasure/wip-gitignore (pull request #10)
Kevin Greenan [Fri, 28 Mar 2014 14:21:41 +0000 (07:21 -0700)]
Merged in dachary/jerasure/wip-gitignore (pull request #10)

create a .gitignore

11 years agocreate a .gitignore
Loic Dachary [Tue, 18 Mar 2014 17:51:05 +0000 (18:51 +0100)]
create a .gitignore

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerged in dachary/jerasure/v2 (pull request #3)
Kevin Greenan [Thu, 6 Mar 2014 21:54:30 +0000 (13:54 -0800)]
Merged in dachary/jerasure/v2 (pull request #3)

backport compilation warnings to v2

11 years agoadd missing return value to functions that require it
Loic Dachary [Thu, 6 Mar 2014 00:29:12 +0000 (01:29 +0100)]
add missing return value to functions that require it

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit d4730bfd7d7c65850221083dcaf837a3a5672fe8)

11 years agoremove unused variables
Loic Dachary [Thu, 6 Mar 2014 00:28:35 +0000 (01:28 +0100)]
remove unused variables

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 87f301084ddccf58c5206d949209b49adecccf55)

11 years agoCreated new branch v2
Kevin Greenan [Wed, 5 Mar 2014 18:20:33 +0000 (18:20 +0000)]
Created new branch v2

12 years agoFixed some compiler warnings.
Jim Plank [Fri, 7 Feb 2014 17:12:54 +0000 (12:12 -0500)]
Fixed some compiler warnings.

12 years agoAdded compilation instructions for when you don't have GF-Complete
Jim Plank [Fri, 7 Feb 2014 16:39:19 +0000 (11:39 -0500)]
Added compilation instructions for when you don't have GF-Complete
installed as root.

12 years agoAdded the user manual PDF to Manual.pdf
Jim Plank [Wed, 29 Jan 2014 21:39:29 +0000 (16:39 -0500)]
Added the user manual PDF to Manual.pdf