[sheepdog] [PATCH v2 UPDATE 0/4] support user-defined redundancy for erasure code

Liu Yuan namei.unix at gmail.com
Thu Oct 17 20:08:46 CEST 2013


This patch set add user-defined redundancy for erasured vdi.

v2:
 - extend y to 0 < y < 15
 - refine help message

usage:
     $ dog vdi create -c x:y test 10g # create a erasured vdi
     x represent number of data strips and y number of parity strips
     x can be 2, 4, 8, 16 , 0 < y < 15 and x > y

Thanks
Yuan

Liu Yuan (4):
  erasure: make ec_helpers more generic
  erasure: support user-defined redundancy
  tests/func: add a dedicated test for recovery of erasure code
  lib/fec: fix decode_prepare()

 dog/common.c               |    8 +-
 dog/vdi.c                  |   64 +++++++++---
 include/fec.h              |   74 +++++++++-----
 include/internal_proto.h   |    7 +-
 lib/fec.c                  |  231 +++++++++++++++++++++++---------------------
 sheep/gateway.c            |   91 +++++++++--------
 sheep/ops.c                |    2 +-
 sheep/plain_store.c        |   30 ++++--
 sheep/recovery.c           |   52 ++++++----
 tests/functional/022       |    4 +-
 tests/functional/029       |   16 +--
 tests/functional/029.out   |  160 +++++++++++++++++++++++++++---
 tests/functional/031       |    2 +-
 tests/functional/076       |   23 +++++
 tests/functional/076.out   |    4 +
 tests/functional/common.rc |    2 +-
 tests/functional/group     |    1 +
 17 files changed, 534 insertions(+), 237 deletions(-)
 create mode 100755 tests/functional/076
 create mode 100644 tests/functional/076.out

-- 
1.7.9.5




More information about the sheepdog mailing list