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

Liu Yuan namei.unix at gmail.com
Wed Mar 19 15:24:30 CET 2014


On Fri, Mar 14, 2014 at 08:04:36PM +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(-)
> 
> -- 
> 1.8.1.2
> 

Anyone give it a review?

Thanks
Yuan



More information about the sheepdog mailing list