[sheepdog] [PATCH v6 0/3] provide recovery progress information to users

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Mon Aug 5 13:26:42 CEST 2013


Current sheepdog doesn't have a capability of showing progress of
recovery process. This patchset implements the feature. After applying
this set, users can see the progress like this:

$ sudo collie node recovery --progress
 99.7 % [==============================================>] 7047 / 7068

v6:
 - let the recovery process count the objects with uint64_t
 - fix a minor problem of indentation

v5:
 - remove an unnecesary comment in collie side
 - fix an invalid usage of recovery_state in showing 100% progress

v4:
 - change type of recovery_state->in_progress from uint32_t to uint8_t
 - refactor the loop of get_recovery_state()

v3:
 - clean coding style
 - make struct recovery_state a general mechanism for getting recovery
   status. Ordinal "collie node recovery" uses struct recovery_state
   for detecting recovery state instead of a result of request.

v2:
 - make this feature as an option of "node recovery", not a new subcommand
 - clean coding style, especially in collie side
 - don't use new variables for indicating the progress in sheep side

Hitoshi Mitake (3):
  sheep: count recovered objects with uint64_t
  sheep: enhance STAT_RECOVERY for prividing information of recovery
    state
  collie: add a new option --progress to "node recovery" for showing
    recovery progress

 collie/node.c            |   96 +++++++++++++++++++++++++++++++++++++++++++---
 include/internal_proto.h |   13 +++++++
 sheep/ops.c              |    4 +-
 sheep/recovery.c         |   57 +++++++++++++++------------
 sheep/sheep_priv.h       |    1 +
 5 files changed, 140 insertions(+), 31 deletions(-)

-- 
1.7.10.4




More information about the sheepdog mailing list