From 78977bd96e6b96e81d364a4ccc0a020554f6853a Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 06 2021 08:12:52 +0000 Subject: Apply patch 0026-libmultipath-make-dm_flush_maps-only-return-0-on-suc.patch patch_name: 0026-libmultipath-make-dm_flush_maps-only-return-0-on-suc.patch present_in_specfile: true location_in_specfile: 26 --- diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c index f6204e5..cda83ce 100644 --- a/libmultipath/devmapper.c +++ b/libmultipath/devmapper.c @@ -953,13 +953,13 @@ dm_flush_map_nopaths(const char * mapname, int deferred_remove) int dm_flush_maps (int retries) { - int r = 0; + int r = 1; struct dm_task *dmt; struct dm_names *names; unsigned next = 0; if (!(dmt = libmp_dm_task_create (DM_DEVICE_LIST))) - return 0; + return r; dm_task_no_open_count(dmt); @@ -972,6 +972,7 @@ int dm_flush_maps (int retries) if (!names->dev) goto out; + r = 0; do { r |= dm_suspend_and_flush_map(names->name, retries); next = names->next;