]> xenbits.xensource.com Git - libvirt.git/commit
esx: Fix floppy.fileName handling in the vmx file parser
authorGeoff Hickey <ghickey@datagravity.com>
Mon, 14 Oct 2013 22:14:33 +0000 (18:14 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 15 Oct 2013 10:39:02 +0000 (11:39 +0100)
commit842f6fd3384d58c7b1cc6b56ddb9f0eeab9a99a3
tree9c9acdb4dcd2dd526da0a3a12133b4f4b2d764db
parent8f35fd21cca2bd703bb47e3066d96ec699accbeb
esx: Fix floppy.fileName handling in the vmx file parser

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.
src/vmx/vmx.c
tests/vmx2xmldata/vmx2xml-floppy-file.vmx
tests/vmx2xmldata/vmx2xml-floppy-file.xml
tests/xml2vmxdata/xml2vmx-floppy-file.vmx
tests/xml2vmxdata/xml2vmx-floppy-file.xml