]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Improve diskinfo debug output
authorOliver Kurth <okurth@vmware.com>
Thu, 30 Nov 2017 23:38:03 +0000 (15:38 -0800)
committerOliver Kurth <okurth@vmware.com>
Thu, 30 Nov 2017 23:38:03 +0000 (15:38 -0800)
Add more debug information so that it is easier to figure out why some
partitions are not being found.

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

index 7b236881e6be40758e2324556841df8e336bea47..a0458329e59c2fa0611d8d2b7a21bd52696a4696 100644 (file)
@@ -133,6 +133,13 @@ GuestInfoGetDiskInfoWiper(Bool includeReserved)  // IN
          partEntry->totalBytes = totalBytes;
 
          di->partitionList = newPartitionList;
+         g_debug("%s added partition #%d %s type %d free %"FMT64"u total %"FMT64"u\n",
+                 __FUNCTION__, partCount, partEntry->name, part->type,
+                 partEntry->freeBytes, partEntry->totalBytes);
+      } else {
+         g_debug("%s ignoring unsupported partition %s %s\n",
+                 __FUNCTION__, part->mountPoint,
+                 part->comment ? part->comment : "");
       }
    }