]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
storage: Add debug message
authorJohn Ferlan <jferlan@redhat.com>
Tue, 24 Nov 2015 14:23:46 +0000 (09:23 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 9 Dec 2015 21:31:14 +0000 (16:31 -0500)
I found this useful while processing a volume that wouldn't end up
showing up in the resulting list of block volumes. In this case, the
partition type wasn't found in the disk_types table.

src/storage/storage_backend.c

index c29b16234492890c28fce43e781e0fd7239007e8..6915b8a10b00bd2f42b9661268e37587fb375f11 100644 (file)
@@ -1444,6 +1444,10 @@ virStorageBackendDetectBlockVolFormatFD(virStorageSourcePtr target,
         }
     }
 
+    if (target->format == VIR_STORAGE_POOL_DISK_UNKNOWN)
+        VIR_DEBUG("cannot determine the target format for '%s'",
+                  target->path);
+
     return 0;
 }