diff options
author | Tushar Gohad <tushar.gohad@intel.com> | 2014-06-30 09:06:05 -0700 |
---|---|---|
committer | Tushar Gohad <tushar.gohad@intel.com> | 2014-06-30 19:52:28 -0700 |
commit | de4b779b849ad2fdbcc46998969bbd0835da436e (patch) | |
tree | 9eeca84541ae2682704e16073b278f4fa99f31ba | |
parent | de3dbc5421fc8f21f8a91269a7efb1bb8707302f (diff) | |
download | liberasurecode-de4b779b849ad2fdbcc46998969bbd0835da436e.tar.gz |
Add placeholder xor backend routines
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/backends/xor/flat_xor_3.c | 51 | ||||
-rw-r--r-- | src/utils/chksum/Makefile.am | 4 |
4 files changed, 39 insertions, 19 deletions
diff --git a/Makefile.am b/Makefile.am index 3f276e8..9b71055 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,4 @@ # Top-level liberasurecode automake configuration -SUBDIRS = src/utils/chksum - ACLOCAL_AMFLAGS = -I m4 if DEBUG diff --git a/configure.ac b/configure.ac index 4a9695e..9027395 100644 --- a/configure.ac +++ b/configure.ac @@ -125,7 +125,6 @@ AC_SUBST(BUILD_LDFLAGS) AC_SUBST(EXTRA_LDFLAGS) AC_CONFIG_FILES([Makefile \ - src/utils/chksum/Makefile \ erasurecode.pc \ Xorcode.pc]) AC_OUTPUT diff --git a/src/backends/xor/flat_xor_3.c b/src/backends/xor/flat_xor_3.c index b1ff5f6..7ad14bc 100644 --- a/src/backends/xor/flat_xor_3.c +++ b/src/backends/xor/flat_xor_3.c @@ -24,9 +24,45 @@ #include "erasurecode.h" +static int flat_xor_3_encode() +{ +} + +static int flat_xor_3_decode() +{ +} + +static int flat_xor_3_reconstruct() +{ +} + +static int flat_xor_3_min_fragments() +{ +} + +static int flat_xor_3_fragment_metadata() +{ +} + +static int flat_xor_3_verify_frag_metadata() +{ +} + +static int flat_xor_3_verify_stripe_metadata() +{ +} + +static ec_backend_handle_t flat_xor_3_open(void) +{ + +} + +static void flat_xor_3_close(ec_backend_handle_t handle) +{ + +} + struct ec_backend_ops flat_xor_3_ops = { - .init = flat_xor_3_init, - .exit = flat_xor_3_exit, .open = flat_xor_3_open, .close = flat_xor_3_close, .encode = flat_xor_3_encode, @@ -47,16 +83,6 @@ struct ec_backend flat_xor_3 = { .ops = &flat_xor_3_ops, }; -static ec_backend_handle_t flat_xor_3_open(void) -{ - -} - -static void flat_xor_3_close(ec_backend_handle_t handle) -{ - -} - static int flat_xor_3_init(void) { return liberasurecode_backend_register(&flat_xor_3); @@ -66,3 +92,4 @@ static int flat_xor_3_exit(void) { return liberasurecode_backend_unregister(&flat_xor_3); } + diff --git a/src/utils/chksum/Makefile.am b/src/utils/chksum/Makefile.am deleted file mode 100644 index d89c380..0000000 --- a/src/utils/chksum/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -INCLUDES=-I./ -I../../../include -AM_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC $(INCLUDES) - -SOURCES = crc32.c alg_sig.c galois.c |