Whamcloud - gitweb
ext2fs: Add Direct I/O support to the ext2fs library
authorTheodore Ts'o <tytso@mit.edu>
Fri, 24 Sep 2010 14:02:25 +0000 (10:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 24 Sep 2010 14:02:25 +0000 (10:02 -0400)
commit7f1a1fbf850f6b73b5c9c82365f01029fb250a1c
tree6b22df25422399b44cf08389520b150e7f81e33c
parentfaafdb765b4ed2bb33070d998426bec0cf774344
ext2fs: Add Direct I/O support to the ext2fs library

This adds the basic support for Direct I/O to unix_io.c, and adds a
new flag EXT_FLAG_DIRECT_IO which can be passed to ext2fs_open() or
ext2fs_open2() to request Direct I/O support.

Note that device mapper devices in Linux don't support Direct I/O, and
in some circumstances using Direct I/O can actually make performance
*worse*!

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/closefs.c
lib/ext2fs/ext2_io.h
lib/ext2fs/ext2fs.h
lib/ext2fs/openfs.c
lib/ext2fs/unix_io.c