diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-12-04 19:52:59 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-12-04 19:52:59 +0100 |
commit | c0326277fc2ee0436621904c9f968a3312ae9c10 (patch) | |
tree | d677a9ed5bfa9b2c8369c8d4c5e5b8f910685f7f /default.c | |
parent | 382ba1a1630cb1647c8e5ed3feb37364a8f3329f (diff) | |
download | fastwriter-c0326277fc2ee0436621904c9f968a3312ae9c10.tar.gz fastwriter-c0326277fc2ee0436621904c9f968a3312ae9c10.tar.bz2 fastwriter-c0326277fc2ee0436621904c9f968a3312ae9c10.tar.xz fastwriter-c0326277fc2ee0436621904c9f968a3312ae9c10.zip |
Do not use O_DIRECT by default
Diffstat (limited to 'default.c')
-rw-r--r-- | default.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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; } |