summaryrefslogtreecommitdiffstats
path: root/default.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-03-07 05:30:11 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-03-07 05:30:11 +0100
commit4ae94ae7f2bad17d45fc86436d6f0272545ab475 (patch)
tree873ed8c3472abe5b5b02259d8ba6058e0a00ecfb /default.c
parent59fc684596b21cca65636649144c1a0932a4dfd6 (diff)
downloadfastwriter-4ae94ae7f2bad17d45fc86436d6f0272545ab475.tar.gz
fastwriter-4ae94ae7f2bad17d45fc86436d6f0272545ab475.tar.bz2
fastwriter-4ae94ae7f2bad17d45fc86436d6f0272545ab475.tar.xz
fastwriter-4ae94ae7f2bad17d45fc86436d6f0272545ab475.zip
Clean open flags in raw mode
Diffstat (limited to 'default.c')
-rw-r--r--default.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/default.c b/default.c
index 6f9d1cb..3cc2ea0 100644
--- a/default.c
+++ b/default.c
@@ -84,6 +84,7 @@ int fastwriter_default_open(fastwriter_t *fw, const char *name, fastwriter_flags
#ifdef SYNC_MODE
ctx->sync_mode = 0;
#endif /* SYNC_MODE */
+ open_flags &= ~(O_CREAT|O_NOATIME|O_LARGEFILE);
} else if (!strcmp(fs, "ext4")) {
ctx->wr_block = EXT4_WRITEBLOCK;
ctx->pa_block = EXT4_PREALLOCATE;