]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Rectify a log spew in vmsvc logging (vmware-vmsvc-root.log)
authorOliver Kurth <okurth@vmware.com>
Wed, 4 Mar 2020 20:07:11 +0000 (12:07 -0800)
committerOliver Kurth <okurth@vmware.com>
Wed, 4 Mar 2020 20:07:11 +0000 (12:07 -0800)
When a LSI Logic Parallel SCSI controller sits in PCI bus 0
(SCSI controller 0), the Linux disk device enumeration does not provide
a "label" file with the controller name.  This results in messages like

'GuestInfoGetDiskDevice: Missing disk device name; VMDK mapping
unavailable for "/var/log", fsName: "/dev/sda2"'

repeatedly appearing in the vmsvc logging.  The patch converts what
previously was a warning message to a debug message and thus avoids
the log spew.

This patch has been made available for open-vm-tools 11.0.x on the
open-vm-tools github repo.

https://github.com/vmware/open-vm-tools/issues/404

open-vm-tools/services/plugins/guestInfo/diskInfo.c

index 878276ce71805eaeb0878e167b258aed330f55b3..032c09285113cf0cfded609a0c2fbc9cf7951912 100644 (file)
@@ -846,9 +846,9 @@ GuestInfoGetDiskDevice(const char *fsName,
     */
    for (indx = 0; indx < partEntry->diskDevCnt; indx++) {
       if (partEntry->diskDevNames[indx][0] == '\0') {
-         g_warning("%s: Missing disk device name; VMDK mapping unavailable "
-                   "for \"%s\", fsName: \"%s\"\n", __FUNCTION__,
-                   partEntry->name, fsName);
+         g_debug("%s: Missing disk device name; VMDK mapping unavailable "
+                 "for \"%s\", fsName: \"%s\"\n", __FUNCTION__,
+                 partEntry->name, fsName);
          partEntry->diskDevCnt = 0;
          free(partEntry->diskDevNames);
          partEntry->diskDevNames = NULL;