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

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Fri Aug 2 09:52:04 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

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            |   99 +++++++++++++++++++++++++++++++++++++++++++---
 include/internal_proto.h |   13 ++++++
 sheep/ops.c              |    4 +-
 sheep/recovery.c         |   22 ++++++++---
 sheep/sheep_priv.h       |    1 +
 5 files changed, 126 insertions(+), 13 deletions(-)

-- 
1.7.10.4




More information about the sheepdog mailing list