[sheepdog] [PATCH v4 0/2] dog: repair objects based on majority vote

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Tue Nov 12 03:40:04 CET 2013


Current object repair strategy of "dog vdi check" doesn't work well if
objects are corrupted. The first one adds a test for the case, and the
second patch adds a mechanism for majority voting in the command.

v4: separate the patch for smooth backporting to stable branches

v3: use _random() for test 077

v2: determine majoriby based on a number of live copies

Hitoshi Mitake (2):
  tests/functional: add a new test for lost and corrupted objects
  dog: repair objects based on majority vote

 dog/vdi.c                |   84 ++++++++++++++++++++++++++++++++++++++-------
 tests/functional/077     |   85 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/functional/077.out |   16 +++++++++
 tests/functional/078     |   53 +++++++++++++++++++++++++++++
 tests/functional/group   |    1 +
 5 files changed, 227 insertions(+), 12 deletions(-)
 create mode 100644 tests/functional/077
 create mode 100644 tests/functional/077.out
 create mode 100644 tests/functional/078

-- 
1.7.10.4




More information about the sheepdog mailing list