mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 08:05:24 +00:00
842f6fd338
The vmx file parsing code was reporting errors when parsing floppy.fileName entries if the filename didn't end in .flp. There is no such restriction in ESX; even using the GUI to configure floppy filenames you can specify any arbitrary file with any extension. Fix by changing the vmx parsing code so that it uses the floppy.fileType value to determine whether floppy.fileName refers to a block device or a regular file. Also remove code that would have generated an error if no floppy.fileName was specified. This is not an error either. Updated the floppy tests in vmx2xmltest.c and xml2vmxtest.c.
19 lines
467 B
XML
19 lines
467 B
XML
<domain type='vmware'>
|
|
<name>floppy-file</name>
|
|
<uuid>564d9bef-acd9-b4e0-c8f0-aea8b9103515</uuid>
|
|
<memory unit='KiB'>4096</memory>
|
|
<os>
|
|
<type>hvm</type>
|
|
</os>
|
|
<devices>
|
|
<disk type='file' device='floppy'>
|
|
<source file='[testing] floppy.flp'/>
|
|
<target dev='fda' bus='fdc'/>
|
|
</disk>
|
|
<disk type='file' device='floppy'>
|
|
<source file='[testing] floppy1'/>
|
|
<target dev='fdb' bus='fdc'/>
|
|
</disk>
|
|
</devices>
|
|
</domain>
|