Skip to content

Commit 2a0a131

Browse files
bmarzinsmwilck
authored andcommitted
multipathd: print path offline message even without a checker
If a path has a checker selected and is offline, multipathd will print a "path offline" message. However if the checker isn't selected, for instance because multipathd was started or reconfigured while the path was offline, multipathd was not printing the "path offline" message. Fix that. Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> Reviewed-by: Martin Wilck <mwilck@suse.com> (cherry picked from commit 1a364a1)
1 parent 4299f78 commit 2a0a131

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

multipathd/main.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,11 @@ void * mpath_pr_event_handler_fn (void * );
9494

9595
#define LOG_MSG(lvl, pp) \
9696
do { \
97-
if (pp->mpp && checker_selected(&pp->checker) && \
98-
lvl <= libmp_verbosity) { \
99-
if (pp->sysfs_state == PATH_DOWN) \
97+
if (pp->mpp && lvl <= libmp_verbosity) { \
98+
if (pp->sysfs_state != PATH_UP) \
10099
condlog(lvl, "%s: %s - path offline", \
101100
pp->mpp->alias, pp->dev); \
102-
else { \
101+
else if (checker_selected(&pp->checker)) { \
103102
const char *__m = \
104103
checker_message(&pp->checker); \
105104
\

0 commit comments

Comments
 (0)