block/vpc: use current_size field for XenConverter VHD images
commitbab246db1dbb37fe55fb84c95ad086f550f443a5
authorJeff Cody <jcody@redhat.com>
Wed, 23 Mar 2016 03:33:40 +0000 (22 23:33 -0400)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Apr 2016 15:22:12 +0000 (15 17:22 +0200)
tree39d49f756b87557f0137b9364810cbf0a3660b34
parent9bdfb9e8ac9ae3171f0fba4635afda5c90db2a1e
block/vpc: use current_size field for XenConverter VHD images

XenConverter VHD images are another VHD image where current_size is
different from the CHS values in the the format header.  Use
current_size as the default, by looking at the creator_app signature
field.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vpc.c