Message ID | 20110216190053.12944.qmail@sourceware.org (mailing list archive) |
---|---|
State | Deferred, archived |
Headers | show |
--- multipath-tools/libmultipath/configure.c 2010/06/23 16:28:07 1.2.2.9 +++ multipath-tools/libmultipath/configure.c 2011/02/16 19:00:51 1.2.2.10 @@ -77,7 +77,7 @@ if (mpp->pgpolicyfn && mpp->pgpolicyfn(mpp)) return 1; - mpp->nr_active = pathcount(mpp, PATH_UP); + mpp->nr_active = pathcount(mpp, PATH_UP) + pathcount(mpp, PATH_GHOST); /* * ponders each path group and determine highest prio pg --- multipath-tools/libmultipath/structs_vec.c 2010/06/23 16:28:07 1.1.2.5 +++ multipath-tools/libmultipath/structs_vec.c 2011/02/16 19:00:51 1.1.2.6 @@ -285,7 +285,8 @@ } //adopt_paths(vecs->pathvec, mpp); - mpp->hwe = extract_hwe_from_path(mpp); + if (!mpp->hwe) + mpp->hwe = extract_hwe_from_path(mpp); select_rr_weight(mpp); select_pgfailback(mpp); set_no_path_retry(mpp);