vpc: use current_size field for XenServer VHD images
commit9bdfb9e8ac9ae3171f0fba4635afda5c90db2a1e
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 23 Mar 2016 03:33:39 +0000 (22 23:33 -0400)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Apr 2016 15:22:12 +0000 (15 17:22 +0200)
tree5288ee3b40bc1b667368b5615abdd552d187ea43
parent0211b9becc0d763e4866e229488cbc700ba64a1f
vpc: use current_size field for XenServer VHD images

The vpc driver has two methods of determining virtual disk size.  The
correct one to use depends on the software that generated the image
file.  Add the XenServer creator_app signature so that image size is
correctly detected for those images.

Reported-by: Grant Wu <grantwwu@gmail.com>
Reported-by: Spencer Baugh <sbaugh@catern.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
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