On 11/19/2010 09:18 AM, Adam Litke wrote:
Signed-off-by: Adam Litke <agl(a)us.ibm.com>
---
src/conf/domain_conf.c | 4 ++++
src/util/storage_file.c | 2 +-
src/util/storage_file.h | 1 +
3 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 2d11785..a08c846 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -7825,6 +7825,10 @@ int virDomainDiskDefForeachPath(virDomainDiskDefPtr disk,
if (format == VIR_STORAGE_FILE_AUTO &&
!allowProbing)
format = VIR_STORAGE_FILE_RAW; /* Stops further recursion */
+
+ /* Allow probing for image formats that are safe */
+ if (format == VIR_STORAGE_FILE_AUTO_SAFE)
+ format = VIR_STORAGE_FILE_AUTO;
} while (nextpath);
ACK.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org