forked from pool/multipath-tools
86 lines
2.5 KiB
Plaintext
86 lines
2.5 KiB
Plaintext
|
commit d3f2f760250ff40f31ea5ddab7d45c86ba32bab6
|
||
|
Author: Hannes Reinecke <hare@suse.de>
|
||
|
Date: Wed Jan 7 11:05:45 2009 +0100
|
||
|
|
||
|
Add more debugging output
|
||
|
|
||
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
||
|
|
||
|
diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
|
||
|
index c4a53ab..868dcc7 100644
|
||
|
--- a/libmultipath/discovery.c
|
||
|
+++ b/libmultipath/discovery.c
|
||
|
@@ -689,11 +689,15 @@ get_state (struct path * pp)
|
||
|
|
||
|
if (!checker_selected(c)) {
|
||
|
select_checker(pp);
|
||
|
- if (!checker_selected(c))
|
||
|
+ if (!checker_selected(c)) {
|
||
|
+ condlog(3, "%s: No checker selected", pp->dev);
|
||
|
return 1;
|
||
|
+ }
|
||
|
checker_set_fd(c, pp->fd);
|
||
|
- if (checker_init(c, pp->mpp?&pp->mpp->mpcontext:NULL))
|
||
|
+ if (checker_init(c, pp->mpp?&pp->mpp->mpcontext:NULL)) {
|
||
|
+ condlog(3, "%s: checker init failed", pp->dev);
|
||
|
return 1;
|
||
|
+ }
|
||
|
}
|
||
|
pp->state = checker_check(c);
|
||
|
condlog(3, "%s: state = %i", pp->dev, pp->state);
|
||
|
@@ -711,8 +715,10 @@ get_prio (struct path * pp)
|
||
|
|
||
|
if (!pp->prio) {
|
||
|
select_prio(pp);
|
||
|
- if (!pp->prio)
|
||
|
+ if (!pp->prio) {
|
||
|
+ condlog(3, "%s: no prio selected", pp->dev);
|
||
|
return 1;
|
||
|
+ }
|
||
|
}
|
||
|
pp->priority = prio_getprio(pp->prio, pp);
|
||
|
if (pp->priority < 0) {
|
||
|
diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c
|
||
|
index 3770566..a1d9632 100644
|
||
|
--- a/libmultipath/structs_vec.c
|
||
|
+++ b/libmultipath/structs_vec.c
|
||
|
@@ -282,6 +282,7 @@ update_multipath_status (struct multipath *mpp)
|
||
|
extern int
|
||
|
update_multipath_strings (struct multipath *mpp, vector pathvec)
|
||
|
{
|
||
|
+ condlog(4, "%s: %s", mpp->alias, __FUNCTION__);
|
||
|
free_multipath_attributes(mpp);
|
||
|
free_pgvec(mpp->pg, KEEP_PATHS);
|
||
|
mpp->pg = NULL;
|
||
|
@@ -477,6 +478,9 @@ verify_paths(struct multipath * mpp, struct vectors * vecs, vector rpvec)
|
||
|
vector_del_slot(vecs->pathvec, j);
|
||
|
free_path(pp);
|
||
|
}
|
||
|
+ } else {
|
||
|
+ condlog(4, "%s: verified path %s dev_t %s",
|
||
|
+ mpp->alias, pp->dev, pp->dev_t);
|
||
|
}
|
||
|
}
|
||
|
return count;
|
||
|
diff --git a/multipathd/main.c b/multipathd/main.c
|
||
|
index c60d075..b39ba90 100644
|
||
|
--- a/multipathd/main.c
|
||
|
+++ b/multipathd/main.c
|
||
|
@@ -396,6 +396,8 @@ ev_add_path (char * devname, struct vectors * vecs)
|
||
|
mpp = pp->mpp = find_mp_by_wwid(vecs->mpvec, pp->wwid);
|
||
|
rescan:
|
||
|
if (mpp) {
|
||
|
+ condlog(4,"%s: adopting all paths for path %s",
|
||
|
+ mpp->alias, pp->dev);
|
||
|
if (adopt_paths(vecs->pathvec, mpp))
|
||
|
return 1; /* leave path added to pathvec */
|
||
|
|
||
|
@@ -403,6 +405,7 @@ rescan:
|
||
|
mpp->action = ACT_RELOAD;
|
||
|
}
|
||
|
else {
|
||
|
+ condlog(4,"%s: creating new map", pp->dev);
|
||
|
if ((mpp = add_map_with_path(vecs, pp, 1)))
|
||
|
mpp->action = ACT_CREATE;
|
||
|
else
|