[PATCH 08/10] mdmon: manage_member: debug messages for array state
From: <hidden>
Date: 2013-07-30 21:18:32
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: <hidden>
Date: 2013-07-30 21:18:32
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Martin Wilck <redacted> Add debug messages to watch the manager's steps. Signed-off-by: Martin Wilck <redacted> --- 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