qemuBuildDriveSourceStr omits the disk format string when we are
emulating a 'fat' filesystem froma directory. The logic should decide
based on the 'actualType' as a disk type=pool may be converted to a
directory.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_command.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index b767a1e15f..c04bba4f02 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -1730,7 +1730,7 @@ qemuBuildDriveSourceStr(virDomainDiskDefPtr disk,
}
if (disk->src->format > 0 &&
- disk->src->type != VIR_STORAGE_TYPE_DIR) {
+ actualType != VIR_STORAGE_TYPE_DIR) {
const char *qemuformat =
virStorageFileFormatTypeToString(disk->src->format);
if (rawluks)
qemuformat = "luks";
--
2.21.0