]>
Commit | Line | Data |
---|---|---|
289c5516 MT |
1 | --- |
2 | libmultipath/propsel.c | 11 +++++++++-- | |
3 | 1 file changed, 9 insertions(+), 2 deletions(-) | |
4 | ||
5 | Index: multipath-tools-130222/libmultipath/propsel.c | |
6 | =================================================================== | |
7 | --- multipath-tools-130222.orig/libmultipath/propsel.c | |
8 | +++ multipath-tools-130222/libmultipath/propsel.c | |
9 | @@ -384,10 +384,17 @@ select_getuid (struct path * pp) | |
10 | void | |
11 | detect_prio(struct path * pp) | |
12 | { | |
13 | + int ret; | |
14 | struct prio *p = &pp->prio; | |
15 | ||
16 | - if (get_target_port_group_support(pp->fd) > 0) | |
17 | - prio_get(p, PRIO_ALUA, DEFAULT_PRIO_ARGS); | |
18 | + if (get_target_port_group_support(pp->fd) <= 0) | |
19 | + return; | |
20 | + ret = get_target_port_group(pp->fd); | |
21 | + if (ret < 0) | |
22 | + return; | |
23 | + if (get_asymmetric_access_state(pp->fd, ret) < 0) | |
24 | + return; | |
25 | + prio_get(p, PRIO_ALUA, DEFAULT_PRIO_ARGS); | |
26 | } | |
27 | ||
28 | extern int |