]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
use O_DIRECT when copying from /dev/zero too
authorPádraig Brady <pbrady@redhat.com>
Fri, 23 Nov 2012 11:24:44 +0000 (11:24 +0000)
committerPádraig Brady <pbrady@redhat.com>
Fri, 23 Nov 2012 11:29:00 +0000 (11:29 +0000)
commit1405a6440d646524d41adfed4fc1344948e2871f
tree4c3b8b80c85edf5006dfd23fe53181161396228b
parent5023fb58d448ad2baad6139c34353f70b27a7ed2
use O_DIRECT when copying from /dev/zero too

We need to avoid trying O_DIRECT with virtual
devices like /dev/zero and /dev/urandom etc.
as it's not supported there, which because of
our later check, would cause O_DIRECT to be
not applied to the output device either.

Related to bug 937694
Possibly related to bug 1023755
Change-Id: I034d8345c3d00689c1f1fffcc2c110735c49ee01
cinder/volume/driver.py