Browse Source

Do not use O_DIRECT by default

Suren A. Chilingaryan 11 years ago
parent
commit
c0326277fc
1 changed files with 10 additions and 1 deletions
  1. 10 1
      default.c

+ 10 - 1
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;
     }