From: Xose Vazquez Perez Subject: [PATCH RFC] multipath-tools: *untested* use sysfs prio also for arrays with dual implicit/explicit alua support Date: Sat, 25 Jul 2020 00:34:27 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Martin Wilck , Benjamin Marzinski , Hannes Reinecke , DM-DEVEL ML List-Id: dm-devel.ids Cc: Martin Wilck Cc: Benjamin Marzinski Cc: Hannes Reinecke Cc: DM-DEVEL ML Signed-off-by: Xose Vazquez Perez --- diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c index 897e48ca..5a82234f 100644 --- a/libmultipath/propsel.c +++ b/libmultipath/propsel.c @@ -595,7 +595,7 @@ detect_prio(struct config *conf, struct path * pp) tpgs = path_get_tpgs(pp); if (tpgs == TPGS_NONE) return; - if ((tpgs == TPGS_EXPLICIT || !check_rdac(pp)) && + if ((tpgs == TPGS_EXPLICIT || tpgs == TPGS_BOTH || !check_rdac(pp)) && sysfs_get_asymmetric_access_state(pp, buff, 512) >= 0) default_prio = PRIO_SYSFS; else In short: diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c index 897e48ca..a9609a01 100644 --- a/libmultipath/propsel.c +++ b/libmultipath/propsel.c @@ -595,7 +595,7 @@ detect_prio(struct config *conf, struct path * pp) tpgs = path_get_tpgs(pp); if (tpgs == TPGS_NONE) return; - if ((tpgs == TPGS_EXPLICIT || !check_rdac(pp)) && + if ((tpgs != TPGS_IMPLICIT || !check_rdac(pp)) && sysfs_get_asymmetric_access_state(pp, buff, 512) >= 0) default_prio = PRIO_SYSFS; else