]> git.proxmox.com Git - qemu.git/commit
VMDK: probe for monolithicFlat images
authorFam Zheng <famcool@gmail.com>
Tue, 12 Jul 2011 11:56:30 +0000 (19:56 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 19 Jul 2011 13:39:06 +0000 (15:39 +0200)
commit01fc99d6a8f56c8dc4a7466476d6dcb0ad91f589
tree6d3a35cdb8e4fe706f109c617f4ddd8dce21c42a
parent0e69c543946957fe8450ebb13874bb1ef280d55b
VMDK: probe for monolithicFlat images

Probe as the same behavior as VMware does.
Recognize image as monolithicFlat descriptor file when the file is text
and the first effective line (not '#' leaded comment or space line) is
either 'version=1' or 'version=2'. No space or upper case charactors
accepted.

Signed-off-by: Fam Zheng <famcool@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c