[dm-devel] [PATCH v3 17/17] libmultipath: silence dm_is_mpath error messages

Benjamin Marzinski bmarzins at redhat.com
Sat Mar 30 06:06:06 UTC 2019


When "multipath -F" is run, dm_is_mpath was printing error messages
about partition devices, because they had already been removed, when
it checked.  Lower the error logging level so this doesn't happen on
the default verbosity.

Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
---
 libmultipath/devmapper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c
index 3294bd4..2e79667 100644
--- a/libmultipath/devmapper.c
+++ b/libmultipath/devmapper.c
@@ -746,7 +746,7 @@ out_task:
 	dm_task_destroy(dmt);
 out:
 	if (r < 0)
-		condlog(2, "%s: dm command failed in %s", name, __FUNCTION__);
+		condlog(3, "%s: dm command failed in %s: %s", name, __FUNCTION__, strerror(errno));
 	return r;
 }
 
-- 
2.17.2




More information about the dm-devel mailing list