]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
ext2fs: don't use O_DIRECT if not available
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 11 Jun 2011 15:50:01 +0000 (11:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 11 Jun 2011 15:50:01 +0000 (11:50 -0400)
commit534a4c3db58064caee4fc3e9e294251240d9d28a
tree66a67ca37c6ce19c552e3a01e11371f2f2e40595
parenta1a769987b0604d8836541cefe89661ec8db02c7
ext2fs: don't use O_DIRECT if not available

O_DIRECT is not defined on OSX.  Since direct IO is only a new
optimization and not needed for correct functionality, disable
it if O_DIRECT is unavailable.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/unix_io.c