[sheepdog] [PATCH 0/4] restore default redundancy for cluster snapshot

Hitoshi Mitake mitake.hitoshi at gmail.com
Mon Mar 24 15:43:21 CET 2014


At Fri, 14 Mar 2014 20:04:36 +0800,
Liu Yuan wrote:
> 
> As previously discussed, after
>  $ dog cluster snapshot load ./path
> 
> we will lose the default redudancy in the previous cluster and simply get '3'
> set for '-c'.
> 
> This patch kill this problem by storing cluster state in the header of snap log
> file.
> 
> Liu Yuan (4):
>   dog/farm: kill snap file
>   sheep: add a operation to get cluster info
>   dog/farm: add snap log header
>   dog: restore default redundancy scheme for 'cluster snapshot load'
> 
>  dog/cluster.c            | 10 ++++-
>  dog/farm/farm.c          | 59 +++++++++++++++++++++---------
>  dog/farm/farm.h          | 21 +++++++----
>  dog/farm/snap.c          | 95 ++++++++++++++++++++++++++++++++++++++----------
>  include/internal_proto.h |  1 +
>  sheep/ops.c              | 15 ++++++++
>  6 files changed, 154 insertions(+), 47 deletions(-)

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

> 
> -- 
> 1.8.1.2
> 
> -- 
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog



More information about the sheepdog mailing list