31 lines
855 B
Diff
31 lines
855 B
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Martin Wilck <mwilck@suse.com>
|
||
|
Date: Wed, 23 Sep 2020 18:45:51 +0200
|
||
|
Subject: [PATCH] multipathd: print error message if config can't be loaded
|
||
|
|
||
|
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
|
||
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
||
|
---
|
||
|
multipathd/main.c | 4 +++-
|
||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/multipathd/main.c b/multipathd/main.c
|
||
|
index 6b9e323e..7ab3eab8 100644
|
||
|
--- a/multipathd/main.c
|
||
|
+++ b/multipathd/main.c
|
||
|
@@ -3074,8 +3074,10 @@ child (__attribute__((unused)) void *param)
|
||
|
condlog(2, "read " DEFAULT_CONFIGFILE);
|
||
|
|
||
|
conf = load_config(DEFAULT_CONFIGFILE);
|
||
|
- if (!conf)
|
||
|
+ if (!conf) {
|
||
|
+ condlog(0, "failed to load configuration");
|
||
|
goto failed;
|
||
|
+ }
|
||
|
|
||
|
if (verbosity)
|
||
|
conf->verbosity = verbosity;
|
||
|
--
|
||
|
2.17.2
|
||
|
|