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

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