diff mbox

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

Message ID 1461755458-29225-42-git-send-email-hare@suse.de (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Hannes Reinecke April 27, 2016, 11:10 a.m. UTC
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@suse.de>
---
 multipathd/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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);