Check whether O_DIRECT is supported to iflag and oflag separately
The problem is when this is used for volume clear and the clear method
specifies use of the 'zero' option (/dev/zero) setting iflag direct is
not a valid option for that input file, but oflag direct is a valid
option for output file, so we should check iflag and oflag separately.
Reviewed: https:/ /review. openstack. org/93461 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=2448ffd53bd 224564b8fca17e4 cbbace2e039597
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2448ffd53bd2245 64b8fca17e4cbba ce2e039597
Author: vitas.yuzhou <email address hidden>
Date: Tue May 13 02:57:48 2014 +0800
Check whether O_DIRECT is supported to iflag and oflag separately
The problem is when this is used for volume clear and the clear method
specifies use of the 'zero' option (/dev/zero) setting iflag direct is
not a valid option for that input file, but oflag direct is a valid
option for output file, so we should check iflag and oflag separately.
Change-Id: I4b627e95b68d56 e3011cddc577c62 fad0c384dba
Close-Bug: 1318748