[sheepdog] [PATCH v5 0/2] provide recovery progress information to users

Hitoshi Mitake mitake.hitoshi at gmail.com
Sun Aug 4 10:30:20 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

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 (2):
  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         |   22 ++++++++---
 sheep/sheep_priv.h       |    1 +
 5 files changed, 123 insertions(+), 13 deletions(-)

-- 
1.7.5.1




More information about the sheepdog mailing list