dm_get_maps() traverses the entire list of dm maps. We shouldn't give up just because probing a single map failed. Based on an earlier patch from Benjamin Marzinski <bmarzins@xxxxxxxxxx> Fixes: bf3a4ad ("libmultipath: simplify dm_get_maps()") Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- libmultipath/devmapper.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c index c497c22..52bfe9c 100644 --- a/libmultipath/devmapper.c +++ b/libmultipath/devmapper.c @@ -1262,10 +1262,8 @@ int dm_get_maps(vector mp) } vector_set_slot(mp, mpp); break; - case DMP_NO_MATCH: - break; default: - return 1; + break; } next = names->next; names = (void *) names + next; -- 2.47.0