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)
commitba46959b5aa5b74b052ac600778cf2ba163a5eb3
tree6d3a35cdb8e4fe706f109c617f4ddd8dce21c42a
parentebe8443d09f75eca3f772493a92c5a273aaae1d6
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