Blame SOURCES/0017-libmultipath-silence-dm_is_mpath-error-messages.patch

a1c519
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a1c519
From: Benjamin Marzinski <bmarzins@redhat.com>
a1c519
Date: Thu, 28 Mar 2019 17:49:38 -0500
a1c519
Subject: [PATCH] libmultipath: silence dm_is_mpath error messages
a1c519
a1c519
When "multipath -F" is run, dm_is_mpath was printing error messages
a1c519
about partition devices, because they had already been removed, when
a1c519
it checked.  Lower the error logging level so this doesn't happen on
a1c519
the default verbosity.
a1c519
a1c519
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
a1c519
---
a1c519
 libmultipath/devmapper.c | 2 +-
a1c519
 1 file changed, 1 insertion(+), 1 deletion(-)
a1c519
a1c519
diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c
a1c519
index 3294bd4..2e79667 100644
a1c519
--- a/libmultipath/devmapper.c
a1c519
+++ b/libmultipath/devmapper.c
a1c519
@@ -746,7 +746,7 @@ out_task:
a1c519
 	dm_task_destroy(dmt);
a1c519
 out:
a1c519
 	if (r < 0)
a1c519
-		condlog(2, "%s: dm command failed in %s", name, __FUNCTION__);
a1c519
+		condlog(3, "%s: dm command failed in %s: %s", name, __FUNCTION__, strerror(errno));
a1c519
 	return r;
a1c519
 }
a1c519
 
a1c519
-- 
a1c519
2.17.2
a1c519