Automatic detection of new devices with find_multipaths
doesn't work correctly currently. Therefore, for now,
imply ignore_new_devs if find_multipaths is seen.

Signed-off-by: Martin Wilck <[email protected]>
---
 multipathd/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/multipathd/main.c b/multipathd/main.c
index cf44778b..8f464bfb 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -2183,6 +2183,10 @@ reconfigure (struct vectors * vecs)
                conf->verbosity = verbosity;
        if (bindings_read_only)
                conf->bindings_read_only = bindings_read_only;
+       if (conf->find_multipaths) {
+               condlog(2, "find_multipaths is set: -n is implied");
+               ignore_new_devs = 1;
+       }
        if (ignore_new_devs)
                conf->ignore_new_devs = ignore_new_devs;
        uxsock_timeout = conf->uxsock_timeout;
-- 
2.11.0

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to