From: Martin Wilck <mwilck@xxxxxxxx> Add debug messages to watch the manager's steps. Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- managemon.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/managemon.c b/managemon.c index f50f954..a655108 100644 --- a/managemon.c +++ b/managemon.c @@ -518,6 +518,7 @@ static void manage_member(struct mdstat_ent *mdstat, /* prevent the kernel from activating the disk(s) before we * finish adding them */ + dprintf("%s: freezing %s\n", __func__, a->info.sys_name); sysfs_set_str(&a->info, NULL, "sync_action", "frozen"); /* Add device to array and set offset/size/slot. @@ -536,6 +537,8 @@ static void manage_member(struct mdstat_ent *mdstat, updates = NULL; replace_array(container, a, newa); sysfs_set_str(&a->info, NULL, "sync_action", "recover"); + dprintf("%s: recovery started on %s\n", __func__, + a->info.sys_name); out: while (newdev) { d = newdev->next; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html