diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-06-16 15:50:07 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-06-16 15:50:07 -0700 |
commit | 4e6e574a3e8eb2351ba1d850369630bf8879dfaf (patch) | |
tree | de7b753eaf5e22dff7e9232b2561e56eba510a49 /managemon.c | |
parent | a862209dc38f716db00365d5b5d3f24d3d0e6626 (diff) | |
download | mdadm-4e6e574a3e8eb2351ba1d850369630bf8879dfaf.tar.gz mdadm-4e6e574a3e8eb2351ba1d850369630bf8879dfaf.tar.xz mdadm-4e6e574a3e8eb2351ba1d850369630bf8879dfaf.zip |
mdmon: add debug print statements for profiling mdmon
for development only as console output can block leading to monitor deadlocks
in low mem situations
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'managemon.c')
-rw-r--r-- | managemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/managemon.c b/managemon.c index 43db566..9f3520e 100644 --- a/managemon.c +++ b/managemon.c @@ -105,6 +105,7 @@ static void free_aa(struct active_array *aa) /* Note that this doesn't close fds if they are being used * by a clone. ->container will be set for a clone */ + dprintf("%s: devnum: %d\n", __func__, aa->devnum); if (!aa->container) close_aa(aa); while (aa->info.devs) { @@ -380,6 +381,8 @@ static void manage_new(struct mdstat_ent *mdstat, new->info.state_fd = sysfs_open(new->devnum, NULL, "array_state"); new->resync_start_fd = sysfs_open(new->devnum, NULL, "resync_start"); new->resync_start = 0; + dprintf("%s: inst: %d action: %d state: %d\n", __func__, atoi(inst), + new->action_fd, new->info.state_fd); sysfs_free(mdi); // finds and compares. |