[sheepdog] [PATCH 0/3] use hash for vdi check and object recovery

MORITA Kazutaka morita.kazutaka at gmail.com
Fri May 10 07:28:30 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

On our environment, 'collie vdi check' of a 500 GB volume takes more than 10
hours with the current master, and this series makes it about 6 times faster.

I'd like to know how much faster other users would get with this feature.  Any
feedback would be appreciated.

MORITA Kazutaka (3):
  sheep: add operation to get object sha1 digest
  collie: use hash for collie check
  sheep: recover from local when target node has same content

 collie/Makefile.am       |    2 +-
 collie/vdi.c             |   75 +++++++++++++++++++++++++-
 include/internal_proto.h |    1 +
 include/sha1.h           |    1 +
 include/sheepdog_proto.h |    5 ++
 lib/sha1.c               |   15 ++++++
 sheep/farm/farm.c        |    1 +
 sheep/farm/farm.h        |    1 -
 sheep/farm/sha1_file.c   |   15 ------
 sheep/ops.c              |   18 +++++++
 sheep/plain_store.c      |   41 ++++++++++++++
 sheep/recovery.c         |  134 ++++++++++++++++++++++++++++------------------
 sheep/sheep_priv.h       |    2 +
 13 files changed, 241 insertions(+), 70 deletions(-)

-- 
1.7.9.5




More information about the sheepdog mailing list