From d90edf1c6d04c41b0d26003bee7ccd4381af212a Mon Sep 17 00:00:00 2001 From: Christophe Varoqui Date: Tue, 15 Nov 2005 15:38:48 +0100 Subject: [PATCH] [multipath] fill in the wwid field for path discovered by the map parser There is a false assumption in the involved code path : - the devmap parser adds paths to the vector and fills only the dev_t field - update_paths() fills the rest but assumes that the wwid is already set by the parser. It could have, as the map uuid is available, but it did not because we can't trust the map. So teach update_paths() to refresh the wwid too. --- multipath/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/multipath/main.c b/multipath/main.c index cdda429..b4a2eaa 100644 --- a/multipath/main.c +++ b/multipath/main.c @@ -893,9 +893,7 @@ update_paths (struct multipath * mpp) pp->state = PATH_DOWN; continue; } - pathinfo(pp, conf->hwtable, - DI_SYSFS | DI_CHECKER | \ - DI_SERIAL | DI_PRIO); + pathinfo(pp, conf->hwtable, DI_ALL); continue; } if (pp->state == PATH_UNCHECKED) -- 2.7.4