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

Liu Yuan namei.unix at gmail.com
Fri Mar 14 13:04:36 CET 2014


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




More information about the sheepdog mailing list