From: John Ferlan Date: Tue, 24 Nov 2015 14:23:46 +0000 (-0500) Subject: storage: Add debug message X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b3df72c4dd1a35e4e2ac4eaa5e044e49084973c4;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git storage: Add debug message 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. --- diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index c29b16234..6915b8a10 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -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; }