[Ocfs2-commits] mfasheh commits r1285 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Tue Jul 20 00:03:32 CDT 2004
Author: mfasheh
Date: 2004-07-19 23:03:30 -0500 (Mon, 19 Jul 2004)
New Revision: 1285
Modified:
trunk/src/file.c
Log:
* include a nasty O_DIRECT workaround...
Modified: trunk/src/file.c
===================================================================
--- trunk/src/file.c 2004-07-20 02:53:04 UTC (rev 1284)
+++ trunk/src/file.c 2004-07-20 04:03:30 UTC (rev 1285)
@@ -694,6 +694,12 @@
LOG_TRACE_ARGS("O_APPEND: inode->i_size=%llu, ppos was %llu\n",
inode->i_size, *ppos);
*ppos = inode->i_size;
+
+ /* ugh, work around some applications which open
+ * everything O_DIRECT + O_APPEND and really don't
+ * mean to use O_DIRECT. */
+#warning this is wrong wrong wrong
+ filp->f_flags &= ~O_DIRECT;
}
if (filp->f_flags & O_DIRECT) {
More information about the Ocfs2-commits
mailing list