From b3df72c4dd1a35e4e2ac4eaa5e044e49084973c4 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Tue, 24 Nov 2015 09:23:46 -0500 Subject: [PATCH] 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. --- 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 c29b162344..6915b8a10b 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; } -- GitLab