From c0326277fc2ee0436621904c9f968a3312ae9c10 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 4 Dec 2012 19:52:59 +0100 Subject: Do not use O_DIRECT by default --- default.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'default.c') diff --git a/default.c b/default.c index 71c6ab1..4c55144 100644 --- a/default.c +++ b/default.c @@ -148,8 +148,17 @@ int fastwriter_default_open(fastwriter_t *fw, const char *name, fastwriter_flags ctx->wr_block = EXT4_WRITEBLOCK; #endif /* !DISABLE_AIO */ ctx->pa_block = EXT4_PREALLOCATE; +/* } else if (!strcmp(fs, "fhgfs")) { + ctx->sync_mode = 0; + ctx->wr_block = OCFS_WRITEBLOCK; + ctx->pa_block = EXT4_PREALLOCATE; + } else if (strstr(fs, "gluster")) { + ctx->sync_mode = 0; + ctx->wr_block = OCFS_WRITEBLOCK; + ctx->pa_block = EXT4_PREALLOCATE;*/ } else { - ctx->wr_block = EXT4_WRITEBLOCK; + ctx->sync_mode = 0; + ctx->wr_block = OCFS_WRITEBLOCK; ctx->pa_block = 0; } -- cgit v1.2.3