]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdmon: manage_member: debug messages for array state
authorMartin Wilck <mwilck@arcor.de>
Tue, 30 Jul 2013 21:18:32 +0000 (23:18 +0200)
committerNeilBrown <neilb@suse.de>
Wed, 31 Jul 2013 03:00:32 +0000 (13:00 +1000)
Add debug messages to watch the manager's steps.

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
managemon.c

index f50f95475aa7d33ff43b2aa206a4d7134543d94f..a6551081424b094a7d16f0207016248d0746f251 100644 (file)
@@ -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;