Signed-off-by: Adam Litke <agl@us.ibm.com>
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);
ret = 0;
VIR_ENUM_IMPL(virStorageFileFormat,
VIR_STORAGE_FILE_LAST,
- "raw", "dir", "bochs",
+ "raw", "probe", "dir", "bochs",
"cloop", "cow", "dmg", "iso",
"qcow", "qcow2", "qed", "vmdk", "vpc")
enum virStorageFileFormat {
VIR_STORAGE_FILE_AUTO = -1,
VIR_STORAGE_FILE_RAW = 0,
+ VIR_STORAGE_FILE_AUTO_SAFE,
VIR_STORAGE_FILE_DIR,
VIR_STORAGE_FILE_BOCHS,
VIR_STORAGE_FILE_CLOOP,