#include <stdio.h>
#include <stdlib.h>
#include "erasurecode.h"
#include "erasurecode_helpers.h"
#include "erasurecode_helpers_ext.h"
#include "erasurecode_backend.h"
Go to the source code of this file.
|
typedef int(* | shss_encode_func )(char **, size_t, int, int, int, int, long long *) |
|
typedef int(* | shss_decode_func )(char **, size_t, int *, int, int, int, int, int, long long *) |
|
typedef int(* | shss_reconstruct_func )(char **, size_t, int *, int, int *, int, int, int, int, int, long long *) |
|
|
static int | shss_encode (void *desc, char **data, char **parity, int blocksize) |
|
static int | shss_decode (void *desc, char **data, char **parity, int *missing_idxs, int blocksize) |
|
static int | shss_reconstruct (void *desc, char **data, char **parity, int *missing_idxs, int destination_idx, int blocksize) |
|
static int | shss_fragments_needed (void *desc, int *missing_idxs, int *fragments_to_exclude, int *fragments_needed) |
|
static int | shss_element_size (void *desc) |
| Return the element-size, which is the number of bits stored on a given device, per codeword. More...
|
|
static void * | shss_init (struct ec_backend_args *args, void *backend_sohandle) |
|
static int | shss_exit (void *desc) |
|
static bool | shss_is_compatible_with (uint32_t version) |
|
#define SHSS_LIB_NAME "shss" |
#define SHSS_LIB_VER_STR "1.0" |
#define SHSS_SO_NAME "libshss.so.1" |
typedef int(* shss_decode_func)(char **, size_t, int *, int, int, int, int, int, long long *) |
typedef int(* shss_encode_func)(char **, size_t, int, int, int, int, long long *) |
typedef int(* shss_reconstruct_func)(char **, size_t, int *, int, int *, int, int, int, int, int, long long *) |
static int shss_decode |
( |
void * |
desc, |
|
|
char ** |
data, |
|
|
char ** |
parity, |
|
|
int * |
missing_idxs, |
|
|
int |
blocksize |
|
) |
| |
|
static |
static int shss_element_size |
( |
void * |
desc | ) |
|
|
static |
Return the element-size, which is the number of bits stored on a given device, per codeword.
This is usually just 'w'.
Definition at line 210 of file shss.c.
References DEFAULT_W.
static int shss_encode |
( |
void * |
desc, |
|
|
char ** |
data, |
|
|
char ** |
parity, |
|
|
int |
blocksize |
|
) |
| |
|
static |
static int shss_exit |
( |
void * |
desc | ) |
|
|
static |
static int shss_fragments_needed |
( |
void * |
desc, |
|
|
int * |
missing_idxs, |
|
|
int * |
fragments_to_exclude, |
|
|
int * |
fragments_needed |
|
) |
| |
|
static |
static void* shss_init |
( |
struct ec_backend_args * |
args, |
|
|
void * |
backend_sohandle |
|
) |
| |
|
static |
static bool shss_is_compatible_with |
( |
uint32_t |
version | ) |
|
|
static |
static int shss_reconstruct |
( |
void * |
desc, |
|
|
char ** |
data, |
|
|
char ** |
parity, |
|
|
int * |
missing_idxs, |
|
|
int |
destination_idx, |
|
|
int |
blocksize |
|
) |
| |
|
static |
struct ec_backend_common backend_shss |
struct ec_backend_op_stubs shss_op_stubs |
Initial value:= {
}
static int shss_element_size(void *desc)
Return the element-size, which is the number of bits stored on a given device, per codeword...
static bool shss_is_compatible_with(uint32_t version)
static int shss_exit(void *desc)
static int shss_decode(void *desc, char **data, char **parity, int *missing_idxs, int blocksize)
static int shss_fragments_needed(void *desc, int *missing_idxs, int *fragments_to_exclude, int *fragments_needed)
static int shss_reconstruct(void *desc, char **data, char **parity, int *missing_idxs, int destination_idx, int blocksize)
static void * shss_init(struct ec_backend_args *args, void *backend_sohandle)
static int shss_encode(void *desc, char **data, char **parity, int blocksize)
Definition at line 289 of file shss.c.
struct ec_backend_op_stubs shss_ops |