[sheepdog] [PATCH v4 0/2] provide recovery progress information to users
Hitoshi Mitake
mitake.hitoshi at gmail.com
Fri Aug 2 16:14:21 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
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 | 97 +++++++++++++++++++++++++++++++++++++++++++--
include/internal_proto.h | 13 ++++++
sheep/ops.c | 4 +-
sheep/recovery.c | 22 ++++++++---
sheep/sheep_priv.h | 1 +
5 files changed, 124 insertions(+), 13 deletions(-)
--
1.7.5.1
More information about the sheepdog
mailing list