[multipath] re-enable path checks in "multipath -ll"
authorChristophe Varoqui <christophe.varoqui@free.fr>
Mon, 3 Nov 2008 23:26:42 +0000 (00:26 +0100)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Mon, 3 Nov 2008 23:26:42 +0000 (00:26 +0100)
Path checker state was reported as [undef], even when the -ll
flag was passed to multipath. This was regression.

libmultipath/dmparser.c
multipath/main.c

index bc3f231..531b433 100644 (file)
@@ -289,6 +289,8 @@ disassemble_map (vector pathvec, char * params, struct multipath * mpp)
                        if (store_path(pgp->paths, pp))
                                goto out;
 
+                       pp->mpp = mpp;
+
                        /*
                         * Update wwid for multipaths which are not setup
                         * in the get_dm_mpvec() code path
index 4c65808..225a087 100644 (file)
@@ -141,7 +141,8 @@ update_paths (struct multipath * mpp)
                                continue;
                        }
                        pp->mpp = mpp;
-                       if (pp->state == PATH_UNCHECKED)
+                       if (pp->state == PATH_UNCHECKED ||
+                           pp->state == PATH_WILD)
                                pathinfo(pp, conf->hwtable, DI_CHECKER);
 
                        if (pp->priority == PRIO_UNDEF)