summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-03-08 05:05:59 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-03-08 05:05:59 +0100
commit792cb8124ebb8f119f678d5d4df1a8d30d568564 (patch)
treeef11d1fe2508aa53fd5e64c461283bd57b3b103a
parent4ae94ae7f2bad17d45fc86436d6f0272545ab475 (diff)
downloadfastwriter-792cb8124ebb8f119f678d5d4df1a8d30d568564.tar.gz
fastwriter-792cb8124ebb8f119f678d5d4df1a8d30d568564.tar.bz2
fastwriter-792cb8124ebb8f119f678d5d4df1a8d30d568564.tar.xz
fastwriter-792cb8124ebb8f119f678d5d4df1a8d30d568564.zip
Use sync-io with raw devices (significantly improves speed)
-rw-r--r--default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.c b/default.c
index 3cc2ea0..6c7970b 100644
--- a/default.c
+++ b/default.c
@@ -82,7 +82,7 @@ int fastwriter_default_open(fastwriter_t *fw, const char *name, fastwriter_flags
ctx->pa_block = 0;
ctx->prior_size = (size_t)-1;
#ifdef SYNC_MODE
- ctx->sync_mode = 0;
+// ctx->sync_mode = 0;
#endif /* SYNC_MODE */
open_flags &= ~(O_CREAT|O_NOATIME|O_LARGEFILE);
} else if (!strcmp(fs, "ext4")) {