[dm-devel] [PATCH v2 46/54] libmultipath: path_discover(): explain pathinfo flags
mwilck at suse.com
mwilck at suse.com
Wed Aug 12 11:34:29 UTC 2020
From: Martin Wilck <mwilck at suse.com>
Add a comment explaining why we use different flags for "new" and
existing paths.
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
libmultipath/discovery.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
index 5f4ebf0..64d3473 100644
--- a/libmultipath/discovery.c
+++ b/libmultipath/discovery.c
@@ -137,6 +137,11 @@ path_discover (vector pathvec, struct config * conf,
udevice, flag | DI_BLACKLIST,
NULL);
else
+ /*
+ * Don't use DI_BLACKLIST on paths already in pathvec. We rely
+ * on the caller to pre-populate the pathvec with valid paths
+ * only.
+ */
return pathinfo(pp, conf, flag);
}
--
2.28.0
More information about the dm-devel
mailing list