Checks image virtual size before qemu-img resize.
Checks image virtual size before qemu-img resize.

Checks virtual size instead of file size. Fixes bug 905350.

Change-Id: I1772b0996b7c9a2e07d3e298b156f777df67ef5f

cloudbase/nova,savi-dev/nova,maelnor/nova,thomasem/nova,saleemjaveds/https-github.com-openstack-nova,Juniper/nova,rickerc/nova_audit,joker946/nova,rahulunair/nova,tanglei528/nova,NoBodyCam/TftpPxeBootBareMetal,eharney/nova,maoy/zknova,cyx1231st/nova,JioCloud/nova,tealover/nova,qwefi/nova,usc-isi/nova,mikalstill/nova,devendermishrajio/nova,orbitfp7/nova,eayunstack/nova,bclau/nova,maoy/zknova,Francis-Liu/animated-broccoli,yrobla/nova,hanlind/nova,mgagne/nova,usc-isi/nova,sileht/deb-openstack-nova,JioCloud/nova,spring-week-topos/nova-week,jeffrey4l/nova,cloudbase/nova-virtualbox,yosshy/nova,LoHChina/nova,phenoxim/nova,DirectXMan12/nova-hacking,klmitch/nova,citrix-openstack-build/nova,akash1808/nova,fajoy/nova,aristanetworks/arista-ovs-nova,eonpatapon/nova,yosshy/nova,isyippee/nova,bclau/nova,saleemjaveds/https-github.com-openstack-nova,bigswitch/nova,tangfeixiong/nova,petrutlucian94/nova_dev,Stavitsky/nova,affo/nova,kimjaejoong/nova,shail2810/nova,barnsnake351/nova,Metaswitch/calico-nova,belmiromoreira/nova,gspilio/nova,leilihh/nova,double12gzh/nova,varunarya10/nova_test_latest,iuliat/nova,ted-gould/nova,Francis-Liu/animated-broccoli,felixma/nova,projectcalico/calico-nova,rajalokan/nova,savi-dev/nova,imsplitbit/nova,shootstar/novatest,badock/nova,MountainWei/nova,mahak/nova,openstack/nova,BeyondTheClouds/nova,gooddata/openstack-nova,sridevikoushik31/openstack,leilihh/nova,tudorvio/nova,silenceli/nova,eneabio/nova,sebrandon1/nova,blueboxgroup/nova,angdraug/nova,dims/nova,fnordahl/nova,LoHChina/nova,JianyuWang/nova,ted-gould/nova,apporc/nova,Juniper/nova,cloudbase/nova,sridevikoushik31/nova,takeshineshiro/nova,sridevikoushik31/openstack,TwinkleChawla/nova,devoid/nova,Juniper/nova,devendermishrajio/nova_test_latest,CCI-MOC/nova,houshengbo/nova_vmware_compute_driver,Triv90/Nova,klmitch/nova,felixma/nova,badock/nova,josephsuh/extra-specs,sacharya/nova,virtualopensystems/nova,rajalokan/nova,gooddata/openstack-nova,rahulunair/nova,houshengbo/nova_vmware_compute_driver,zhimin711/nova,jianghuaw/nova,cloudbase/nova-virtualbox,psiwczak/openstack,rajalokan/nova,imsplitbit/nova,gooddata/openstack-nova,joker946/nova,bigswitch/nova,SUSE-Cloud/nova,zhimin711/nova,vmturbo/nova,maheshp/novatest,Metaswitch/calico-nova,dawnpower/nova,OpenAcademy-OpenStack/nova-scheduler,raildo/nova,NeCTAR-RC/nova,petrutlucian94/nova_dev,CloudServer/nova,DirectXMan12/nova-hacking,tealover/nova,gspilio/nova,CiscoSystems/nova,thomasem/nova,CiscoSystems/nova,sebrandon1/nova,hanlind/nova,plumgrid/plumgrid-nova,luogangyi/bcec-nova,adelina-t/nova,devendermishrajio/nova,tudorvio/nova,aristanetworks/arista-ovs-nova,tianweizhang/nova,houshengbo/nova_vmware_compute_driver,yatinkumbhare/openstack-nova,akash1808/nova_test_latest,Yuriy-Leonov/nova,shail2810/nova,yrobla/nova,ewindisch/nova,vladikr/nova_drafts,angdraug/nova,Tehsmash/nova,Yusuke1987/openstack_template,noironetworks/nova,Yusuke1987/openstack_template,yatinkumbhare/openstack-nova,watonyweng/nova,Juniper/nova,dims/nova,gooddata/openstack-nova,Stavitsky/nova,dstroppa/openstack-smartos-nova-grizzly,sebrandon1/nova,shootstar/novatest,virtualopensystems/nova,maheshp/novatest,bgxavier/nova,maelnor/nova,maheshp/novatest,mmnelemane/nova,whitepages/nova,fajoy/nova,luogangyi/bcec-nova,vmturbo/nova,alvarolopez/nova,klmitch/nova,jianghuaw/nova,eharney/nova,edulramirez/nova,Tehsmash/nova,OpenAcademy-OpenStack/nova-scheduler,mandeepdhami/nova,petrutlucian94/nova,klmitch/nova,noironetworks/nova,apporc/nova,vmturbo/nova,JioCloud/nova_test_latest,dstroppa/openstack-smartos-nova-grizzly,josephsuh/extra-specs,NewpTone/stacklab-nova,openstack/nova,sridevikoushik31/nova,eonpatapon/nova,phenoxim/nova,ntt-sic/nova,CCI-MOC/nova,jianghuaw/nova,BeyondTheClouds/nova,barnsnake351/nova,scripnichenko/nova,NewpTone/stacklab-nova,iuliat/nova,DirectXMan12/nova-hacking,j-carpentier/nova,rrader/nova-docker-plugin,cernops/nova,orbitfp7/nova,citrix-openstack-build/nova,cyx1231st/nova,belmiromoreira/nova,silenceli/nova,zzicewind/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,akash1808/nova,redhat-openstack/nova,alexandrucoman/vbox-nova-driver,mahak/nova,rahulunair/nova,NewpTone/stacklab-nova,Yuriy-Leonov/nova,aristanetworks/arista-ovs-nova,paulmathews/nova,viggates/nova,qwefi/nova,zaina/nova,TieWei/nova,zzicewind/nova,TwinkleChawla/nova,vladikr/nova_drafts,rrader/nova-docker-plugin,Triv90/Nova,tangfeixiong/nova,viggates/nova,mmnelemane/nova,ewindisch/nova,blueboxgroup/nova,NoBodyCam/TftpPxeBootBareMetal,sileht/deb-openstack-nova,cloudbau/nova,alvarolopez/nova,josephsuh/extra-specs,cloudbau/nova,SUSE-Cloud/nova,berrange/nova,bgxavier/nova,BeyondTheClouds/nova,takeshineshiro/nova,NoBodyCam/TftpPxeBootBareMetal,isyippee/nova,hanlind/nova,usc-isi/extra-specs,mandeepdhami/nova,jeffrey4l/nova,nikesh-mahalka/nova,adelina-t/nova,leilihh/novaha,rajalokan/nova,ruslanloman/nova,devendermishrajio/nova_test_latest,CEG-FYP-OpenStack/scheduler,rickerc/nova_audit,cernops/nova,projectcalico/calico-nova,gspilio/nova,sridevikoushik31/openstack,fnordahl/nova,watonyweng/nova,paulmathews/nova,JioCloud/nova_test_latest,alaski/nova,dstroppa/openstack-smartos-nova-grizzly,devoid/nova,usc-isi/extra-specs,maoy/zknova,tanglei528/nova,mahak/nova,sridevikoushik31/nova,fajoy/nova,edulramirez/nova,Triv90/Nova,plumgrid/plumgrid-nova,zaina/nova,jianghuaw/nova,usc-isi/extra-specs,sacharya/nova,raildo/nova,usc-isi/nova,spring-week-topos/nova-week,JianyuWang/nova,ruslanloman/nova,CEG-FYP-OpenStack/scheduler,affo/nova,scripnichenko/nova,kimjaejoong/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,eneabio/nova,savi-dev/nova,mikalstill/nova,yrobla/nova,psiwczak/openstack,mikalstill/nova,dawnpower/nova,ntt-sic/nova,mgagne/nova,petrutlucian94/nova,sridevikoushik31/nova,varunarya10/nova_test_latest,eayunstack/nova,j-carpentier/nova,NeCTAR-RC/nova,shahar-stratoscale/nova,CloudServer/nova,nikesh-mahalka/nova,TieWei/nova,shahar-stratoscale/nova,openstack/nova,vmturbo/nova,alexandrucoman/vbox-nova-driver,tianweizhang/nova,leilihh/novaha,redhat-openstack/nova,eneabio/nova,alaski/nova,cloudbase/nova,sileht/deb-openstack-nova,cernops/nova,double12gzh/nova,paulmathews/nova,whitepages/nova,MountainWei/nova,akash1808/nova_test_latest,psiwczak/openstack,berrange/nova