[libvirt] [PATCH v2 4/5] storage: Add debug message

John Ferlan jferlan at redhat.com
Tue Nov 24 20:57:15 UTC 2015


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.

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 src/storage/storage_backend.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c
index da830d6..d7ba916 100644
--- a/src/storage/storage_backend.c
+++ b/src/storage/storage_backend.c
@@ -1450,6 +1450,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;
 }
 
-- 
2.5.0




More information about the libvir-list mailing list