ensure zeros are written out when clearing volumes
ensure zeros are written out when clearing volumes

Note O_DIRECT is _not_ used at the end of devices to
avoid issues with odd sized blocks etc. so instead
we arrange to have dd issue an fdatasync()
to ensure the data is persisted, lest it be discarded
from the write cache when the device is unprovisioned.

* nova/virt/libvirt/utils.py (clear_logical_volume): Add 'conv=fdatasync'
to the dd option list if O_DIRECT isn't used when clearing.

Fixes bug: 1100363
Change-Id: I76789557754ebaeb6d52bb34548a2ef17808fbf6

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