device-mapper-multipath/0139-multipathd-reduce-log-levels-in-cli_add_map.patch
Benjamin Marzinski b05147c356 device-mapper-multipath-0.8.5-6
Change patch format to remove Git version
  * Patches 0001-0122 only have the patch format modified
Update to the head of the upstream staging branch plus redhat patches
  * Patches 0123-0134 & 1036-0142 are from the upstream staging branch
  * Patches 0143-1046 have been submitted upstream
  * Patch 0156 is a Red Hat only patch. Red Hat udev rules set ID_SERIAL
    from 60-persistent-storage.rules instead of 55-scsi-sg3_id.rules.
    Multipath's parse_vpd_pg83() function needs to match the ID_SERIAL
    value from udev.
Rename files
  * Previous patches 0123-0132 are now patches 1035 & 0147-0155
2021-03-26 13:33:56 -05:00

37 lines
1.3 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Martin Wilck <mwilck@suse.com>
Date: Fri, 19 Mar 2021 09:50:46 +0100
Subject: [PATCH] multipathd: reduce log levels in cli_add_map()
Normally "add map" will be used to add a map which doesn't exist
yet. Thus not finding this map in the first place is not a problem
indicator and should be logged at level 3 only.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
multipathd/cli_handlers.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/multipathd/cli_handlers.c b/multipathd/cli_handlers.c
index 7f3e61f6..1de6ad8e 100644
--- a/multipathd/cli_handlers.c
+++ b/multipathd/cli_handlers.c
@@ -852,14 +852,15 @@ cli_add_map (void * v, char ** reply, int * len, void * data)
}
do {
if (dm_get_major_minor(param, &major, &minor) < 0)
- condlog(2, "%s: not a device mapper table", param);
+ condlog(count ? 2 : 3,
+ "%s: not a device mapper table", param);
else {
sprintf(dev_path, "dm-%d", minor);
alias = dm_mapname(major, minor);
}
/*if there is no mapname found, we first create the device*/
if (!alias && !count) {
- condlog(2, "%s: mapname not found for %d:%d",
+ condlog(3, "%s: mapname not found for %d:%d",
param, major, minor);
get_refwwid(CMD_NONE, param, DEV_DEVMAP,
vecs->pathvec, &refwwid);