Fix backend names to match liberasurecode ++

Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
This commit is contained in:
Tushar Gohad 2014-07-27 00:53:31 -07:00
parent 5d004577e2
commit f81a59b592
3 changed files with 5 additions and 23 deletions

2
README
View File

@ -1,4 +1,4 @@
This is v0.10 of PyECLib. This library provides a simple Python interface for
This is v0.9.10 of PyECLib. This library provides a simple Python interface for
implementing erasure codes and is known to work with Python v2.6, 2.7 and 3.x.
To obtain the best possible performance, the library utilizes liberasurecode,

View File

@ -79,7 +79,7 @@ class build(_build):
print("** PyECLib requires that the liberasurecode ")
print("** library be installed. The liberasurecode ")
print("** library can be obtained from: ")
print("** git@bitbucket.org:elambert/liberasurecode.git")
print("** git@bitbucket.org:tsg-/liberasurecode.git")
print("** ")
print("** Please install liberasurecode and try again.")
print("***************************************************")
@ -187,7 +187,7 @@ module = Extension('pyeclib_c',
sources=['src/c/pyeclib_c/pyeclib_c.c'])
setup(name='PyECLib',
version='0.10.0',
version='0.9.10',
author='Kevin Greenan',
author_email='kmgreen2@gmail.com',
maintainer='Kevin Greenan and Tushar Gohad',

View File

@ -48,8 +48,8 @@ typedef enum {
const char *pyeclib_type_str[] = {
"not_found",
"rs_vand",
"rs_cauchy_orig",
"jerasure_rs_vand",
"jerasure_rs_cauchy_orig",
"flat_xor_3",
"flat_xor_4",
};
@ -129,28 +129,10 @@ unsigned int get_best_w_for_ecc_type(pyeclib_type_t type)
#define PYECC_FLAGS_MASK 0x1
#define PYECC_FLAGS_READ_VERIFY 0x1
#define PYECC_HANDLE_NAME "pyeclib_handle"
#define PYECC_HEADER_MAGIC 0xb0c5ecc
#define PYECC_CAUCHY_PACKETSIZE (sizeof(long) * 128)
#define PYCC_MAX_SIG_LEN 8
/*
* Prevent the compiler from padding
* this by using the __packed__ keyword
*/
typedef struct __attribute__((__packed__)) fragment_header_s
{
uint32_t magic;
uint32_t idx;
uint32_t size;
uint32_t orig_data_size;
// FIXME - reserve 16-bytes for md5
uint32_t chksum;
// We must be aligned to 16-byte boundaries
// So, size this array accordingly
uint32_t aligned_padding[3];
} fragment_header_t;
typedef struct fragment_metadata_s
{
int size;