[dm-devel] [PATCH 41/57] multipathd: accept zero-size paths in ev_add_path()

Hannes Reinecke hare at suse.de
Wed Apr 27 11:10:42 UTC 2016


Paths in ALUA 'standby' state are not required to support
READ CAPACITY, and hence might report a size of '0'. However,
they are valid devices and should be added to the existing
topology.

Signed-off-by: Hannes Reinecke <hare at suse.de>
---
 multipathd/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/multipathd/main.c b/multipathd/main.c
index c1b94bd..c56672a 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -560,7 +560,7 @@ ev_add_path (struct path * pp, struct vectors * vecs)
 	pp->mpp = mpp;
 rescan:
 	if (mpp) {
-		if (mpp->size != pp->size) {
+		if (pp->size && mpp->size != pp->size) {
 			condlog(0, "%s: failed to add new path %s, "
 				"device size mismatch",
 				mpp->alias, pp->dev);
-- 
2.6.6




More information about the dm-devel mailing list