Blame SOURCES/ovt-Rectify-a-log-spew-in-vmsvc-logging-vmware-vmsvc-roo.patch

d75d53
From 6536375aa0f30fe9226ec687d7854d5c2aef5a7d Mon Sep 17 00:00:00 2001
d75d53
From: Cathy Avery <cavery@redhat.com>
d75d53
Date: Fri, 14 Feb 2020 12:23:09 +0100
d75d53
Subject: [PATCH] Rectify a log spew in vmsvc logging (vmware-vmsvc-root.log )
d75d53
d75d53
RH-Author: Cathy Avery <cavery@redhat.com>
d75d53
Message-id: <20200214122309.5769-1-cavery@redhat.com>
d75d53
Patchwork-id: 93876
d75d53
O-Subject: [RHEL8.2 open-vm-tools PATCH] Rectify a log spew in vmsvc logging (vmware-vmsvc-root.log )
d75d53
Bugzilla: 1800812
d75d53
RH-Acked-by: Eduardo Otubo <otubo@redhat.com>
d75d53
RH-Acked-by: Mohammed Gamal <mgamal@redhat.com>
d75d53
d75d53
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1800812
d75d53
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=26372468
d75d53
Branch: rhel8/master-11.0.0
d75d53
Tested: By QE
d75d53
Upstream Status: stable-11.0.5-suse-bug-1162435 targeted for 11.1.0
d75d53
d75d53
commit 4ee0bd3c8ead89541ab7d196fb54e940e397420d
d75d53
Author: Oliver Kurth <okurth@vmware.com>
d75d53
Date: Fri, 7 Feb 2020 10:39:38 -0800
d75d53
d75d53
    Rectify a log spew in vmsvc logging (vmware-vmsvc-root.log )
d75d53
d75d53
    When a LSI Logic Parallel SCSI controller sits in PCI bus 0
d75d53
    (SCSI controller 0), the Linux disk device enumeration does not provide
d75d53
    a "label" file with the controller name.  This results in messages like
d75d53
d75d53
    "GuestInfoGetDiskDevice: Missing disk device name; VMDK mapping unavailable for "/var/log", fsName: "/dev/sda2"
d75d53
d75d53
    repeatedly appearing in the vmsvc logging.  The patch converts what previously
d75d53
    was a warning message to a debug message and thus avoids the log spew.
d75d53
d75d53
Signed-off-by: Cathy Avery <cavery@redhat.com>
d75d53
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
d75d53
---
d75d53
 open-vm-tools/services/plugins/guestInfo/diskInfo.c | 6 +++---
d75d53
 1 file changed, 3 insertions(+), 3 deletions(-)
d75d53
d75d53
diff --git a/open-vm-tools/services/plugins/guestInfo/diskInfo.c b/open-vm-tools/services/plugins/guestInfo/diskInfo.c
d75d53
index a8234a4..c974dbd 100644
d75d53
--- a/open-vm-tools/services/plugins/guestInfo/diskInfo.c
d75d53
+++ b/open-vm-tools/services/plugins/guestInfo/diskInfo.c
d75d53
@@ -837,9 +837,9 @@ GuestInfoGetDiskDevice(const char *fsName,
d75d53
     */
d75d53
    for (indx = 0; indx < partEntry->diskDevCnt; indx++) {
d75d53
       if (partEntry->diskDevNames[indx][0] == '\0') {
d75d53
-         g_warning("%s: Missing disk device name; VMDK mapping unavailable "
d75d53
-                   "for \"%s\", fsName: \"%s\"\n", __FUNCTION__,
d75d53
-                   partEntry->name, fsName);
d75d53
+         g_debug("%s: Missing disk device name; VMDK mapping unavailable "
d75d53
+                 "for \"%s\", fsName: \"%s\"\n", __FUNCTION__,
d75d53
+                 partEntry->name, fsName);
d75d53
          partEntry->diskDevCnt = 0;
d75d53
          free(partEntry->diskDevNames);
d75d53
          partEntry->diskDevNames = NULL;
d75d53
-- 
d75d53
1.8.3.1
d75d53