[sheepdog] [PATCH v2 1/2] sheep: introduce strict mode for write

Hitoshi Mitake mitake.hitoshi at gmail.com
Thu Dec 12 07:12:06 CET 2013


At Thu, 12 Dec 2013 13:45:33 +0800,
Liu Yuan wrote:
> 
> We make sure we write the exact number of copies to honor the promise of the
> redundancy for "strict mode". This means that after writing of targeted data,
> they are redundant as promised and can withstand the random node failures.
> 
> For example, with a 4:2 policy, we need at least write to 6 nodes with data
> strip and parity strips. For non-strict mode, we allow to write successfully
> only if the data are written fully with 4 nodes alive.
> 
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  dog/cluster.c            |   10 +++++++++-
>  include/internal_proto.h |    2 ++
>  include/sheep.h          |    3 ++-
>  include/sheepdog_proto.h |    2 +-
>  sheep/ops.c              |    2 +-
>  sheep/request.c          |   34 +++++++++++++++++++++++++++++++---
>  6 files changed, 46 insertions(+), 7 deletions(-)

Looks good to me.
Reviewed-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>

Thanks,
Hitoshi



More information about the sheepdog mailing list