vmdk: fix VMFS extent parsing
authorFam Zheng <famz@redhat.com>
Fri, 18 Oct 2013 07:07:33 +0000 (15:07 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 18 Oct 2013 11:41:36 +0000 (13:41 +0200)
commitdbbcaa8d4358fdf3c42bf01e9e2d687300e84770
tree170268960b5523da51985c666c4ff73b869a7f97
parentc338b6ad609699cf352c8dd6338360b7e3895ad0
vmdk: fix VMFS extent parsing

The VMFS extent line in description file doesn't have start offset as
FLAT lines does, and it should be defaulted to 0. The flat_offset
variable is initialized to -1, so we need to set it in this case.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vmdk.c