VMware: Use virtual disk size instead of image size
The image size is different from the virtual disk size when the image is
sparse. For sparse images we get the size of the virtual disk by quering
the -flat file after converting the disk to preallocated.
Reviewed: https:/ /review. openstack. org/168013 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=2f15d304f01 a94a788db4175de 3905bdd3a3cc62
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2f15d304f01a94a 788db4175de3905 bdd3a3cc62
Author: Radoslav Gerganov <email address hidden>
Date: Thu Mar 26 16:22:30 2015 +0200
VMware: Use virtual disk size instead of image size
The image size is different from the virtual disk size when the image is
sparse. For sparse images we get the size of the virtual disk by quering
the -flat file after converting the disk to preallocated.
Co-Authored-By: Qin Zhao <email address hidden>
Change-Id: I18628fe3a180f7 22936c680c6be30 d5ed4d50bd9
Closes-Bug: #1240373
Closes-Bug: #1472955