[multipathd] add more checkers message printing upon path failures
authorChristophe Varoqui <root@xa-s05.(none)>
Sun, 12 Mar 2006 13:29:27 +0000 (14:29 +0100)
committerChristophe Varoqui <root@xa-s05.(none)>
Sun, 12 Mar 2006 13:29:27 +0000 (14:29 +0100)
Edward Goggin, EMC

libmultipath/discovery.c
multipathd/main.c

index 966434d..cf8289c 100644 (file)
@@ -619,6 +619,9 @@ get_state (struct path * pp)
        }
        pp->state = checker_check(c);
        condlog(3, "%s: state = %i", pp->dev, pp->state);
+       if (pp->state == PATH_DOWN)
+               condlog(2, "%s: checker msg is \"%s\"",
+                       pp->dev, checker_message(c));
        return 0;
 }
 
index a0d33fe..55a2c49 100644 (file)
@@ -1304,8 +1304,10 @@ checkerloop (void *ap)
                                pp->tick = pp->checkint;
                                condlog(4, "%s: delay next check %is",
                                                pp->dev_t, pp->tick);
-
                        }
+                       else if (newstate == PATH_DOWN)
+                               LOG_MSG(2, checker_message(&pp->checker));
+
                        pp->state = newstate;
 
                        /*