bugfix: remove QEMU warning during mount of shared directory 95/6895/4
authorMartin Klozik <martinx.klozik@intel.com>
Fri, 15 Jan 2016 10:50:57 +0000 (10:50 +0000)
committerMaryam Tahhan <maryam.tahhan@intel.com>
Thu, 21 Jan 2016 09:41:35 +0000 (09:41 +0000)
Qemu 2.3.0 requires image type to be explicitly set to 'raw'
for shared directories with FAT. Required option "type=raw"
is compatible with older QEMU versions, so it can be passed
to QEMU by default.

Change-Id: Icca5e4249cc2c05c0b9609d7bd34368b4b86f492
JIRA: VSPERF-187
Signed-off-by: Martin Klozik <martinx.klozik@intel.com>
Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com>
Reviewed-by: Brian Castelli <brian.castelli@spirent.com>
vnfs/qemu/qemu.py

index 83eea67..536f1fd 100644 (file)
@@ -83,7 +83,7 @@ class IVnfQemu(IVnf):
                      '-nographic', '-vnc', str(vnc), '-name', name,
                      '-snapshot', '-net none', '-no-reboot',
                      '-drive',
-                     'if=scsi,file=fat:rw:%s,snapshot=off' %
+                     'if=scsi,type=raw,file=fat:rw:%s,snapshot=off' %
                      S.getValue('GUEST_SHARE_DIR')[self._number],
                     ]
         self._configure_logging()