[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1254523031.4095.208.camel@mingming-laptop>
Date: Fri, 02 Oct 2009 15:37:11 -0700
From: Mingming <cmm@...ibm.com>
To: Andreas Dilger <adilger@....com>
Cc: linux-ext4@...r.kernel.org, Eric Sandeen <esandeen@...hat.com>,
Subrata Modak <subrata@...ux.vnet.ibm.com>,
Dave Jones <davej@...hat.com>, linux-fsdevel@...r.kernel.org
Subject: Re: Updated fsx.c program (fixed fallocate)
On Tue, 2009-09-29 at 16:39 -0600, Andreas Dilger wrote:
> I've done some work to merge some of the existing fsx.c mods into a
> single version. Over & above the version that is in the LTP, I've
> included AKPM's O_DIRECT fixes (with a twist), the BSD mmap page and
> segfault handling, and per-write fsync.
>
> The twist for the O_DIRECT feature is that it will randomly open file
> descriptors with O_DIRECT, and if you use the Lustre-inspired multi-fd
> support (by specifying multiple pathnames for the output file) fsx will
> be testing buffered and O_DIRECT and mmap IO on the same file.
>
> Updated patch to have proper fallocate() handling in case glibc doesn't
> have this, for non-x86 architectures from MingMing Cao, based on code
> used by DB2.
>
> Signed-off-by: Andreas Dilger <adilger@....com>
On top of this, a little update to add O_DIRECT define.
Signed-off-by: Mingming Cao <cmm@...ibm.com>
--- fsx.c.orig 2009-10-02 14:22:12.299565348 -0700
+++ fsx.c 2009-10-01 16:36:17.271593794 -0700
@@ -78,6 +78,10 @@
#define LOGSIZE 100000
+#ifndef O_DIRECT
+#define O_DIRECT 040000 /* direct disk access hint */
+#endif
+
struct log_entry oplog[LOGSIZE]; /* the log */
int logptr = 0; /* current position in log */
int logcount = 0; /* total ops */
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists