diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-03-08 05:05:59 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2012-03-08 05:05:59 +0100 |
commit | 792cb8124ebb8f119f678d5d4df1a8d30d568564 (patch) | |
tree | ef11d1fe2508aa53fd5e64c461283bd57b3b103a /default.c | |
parent | 4ae94ae7f2bad17d45fc86436d6f0272545ab475 (diff) | |
download | fastwriter-792cb8124ebb8f119f678d5d4df1a8d30d568564.tar.gz fastwriter-792cb8124ebb8f119f678d5d4df1a8d30d568564.tar.bz2 fastwriter-792cb8124ebb8f119f678d5d4df1a8d30d568564.tar.xz fastwriter-792cb8124ebb8f119f678d5d4df1a8d30d568564.zip |
Use sync-io with raw devices (significantly improves speed)
Diffstat (limited to 'default.c')
-rw-r--r-- | default.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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")) { |