[dm-devel] [PATCH v3 13/29] multipathd: print error message if config can't be loaded
mwilck at suse.com
mwilck at suse.com
Wed Dec 16 18:16:52 UTC 2020
From: Martin Wilck <mwilck at suse.com>
Reviewed-by: Benjamin Marzinski <bmarzins at redhat.com>
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
multipathd/main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/multipathd/main.c b/multipathd/main.c
index 6b9e323..7ab3eab 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.29.0
More information about the dm-devel
mailing list