Blame SOURCES/0237-RHBZ-1526876-show-sysfs-state.patch
|
|
6add9d |
---
|
|
|
6add9d |
multipath/main.c | 9 ++++++---
|
|
|
6add9d |
1 file changed, 6 insertions(+), 3 deletions(-)
|
|
|
6add9d |
|
|
|
6add9d |
Index: multipath-tools-130222/multipath/main.c
|
|
|
6add9d |
===================================================================
|
|
|
6add9d |
--- multipath-tools-130222.orig/multipath/main.c
|
|
|
6add9d |
+++ multipath-tools-130222/multipath/main.c
|
|
|
6add9d |
@@ -135,7 +135,7 @@ usage (char * progname)
|
|
|
6add9d |
}
|
|
|
6add9d |
|
|
|
6add9d |
static int
|
|
|
6add9d |
-update_paths (struct multipath * mpp)
|
|
|
6add9d |
+update_paths (struct multipath * mpp, int quick)
|
|
|
6add9d |
{
|
|
|
6add9d |
int i, j;
|
|
|
6add9d |
struct pathgroup * pgp;
|
|
|
6add9d |
@@ -149,6 +149,10 @@ update_paths (struct multipath * mpp)
|
|
|
6add9d |
continue;
|
|
|
6add9d |
|
|
|
6add9d |
vector_foreach_slot (pgp->paths, pp, j) {
|
|
|
6add9d |
+ if (quick) {
|
|
|
6add9d |
+ pp->mpp = mpp;
|
|
|
6add9d |
+ continue;
|
|
|
6add9d |
+ }
|
|
|
6add9d |
if (!strlen(pp->dev)) {
|
|
|
6add9d |
if (devt2devname(pp->dev, FILE_NAME_SIZE,
|
|
|
6add9d |
pp->dev_t)) {
|
|
|
6add9d |
@@ -213,8 +217,7 @@ get_dm_mpvec (vector curmp, vector pathv
|
|
|
6add9d |
* If not in "fast list mode", we need to fetch information
|
|
|
6add9d |
* about them
|
|
|
6add9d |
*/
|
|
|
6add9d |
- if (conf->cmd != CMD_LIST_SHORT)
|
|
|
6add9d |
- update_paths(mpp);
|
|
|
6add9d |
+ update_paths(mpp, (conf->cmd == CMD_LIST_SHORT));
|
|
|
6add9d |
|
|
|
6add9d |
if (conf->cmd == CMD_LIST_LONG)
|
|
|
6add9d |
mpp->bestpg = select_path_group(mpp);
|