summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorPádraig Brady <pbrady@redhat.com>2013-01-16 16:50:57 +0000
committerPádraig Brady <pbrady@redhat.com>2013-01-21 12:15:40 +0000
commitdf749aea97cd8578952cc21b5289ae9c32f73c98 (patch)
tree4aa587f7a2463516b52e91ca3e9134e3da2e6fe3 /nova/openstack
parentcd4093e0f2a7d07fa81915dc4866f4ac7324a028 (diff)
downloadnova-df749aea97cd8578952cc21b5289ae9c32f73c98.tar.gz
nova-df749aea97cd8578952cc21b5289ae9c32f73c98.tar.xz
nova-df749aea97cd8578952cc21b5289ae9c32f73c98.zip
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
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions