summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorVijay Bellur <vijay@dev.gluster.com>2010-09-03 02:49:30 -0700
committerVijay Bellur <vijay@dev.gluster.com>2010-09-03 02:49:30 -0700
commitb3a4a0e88587c113137a838afbfab7069f1660df (patch)
treed666d468979847d15ed69d70ac1076a224d962c8 /glusterfsd
parenta0fbf69e7c7689466549db8815f2d87f5c16f664 (diff)
Revert "fuse: introduce pre-test micro-framework, check for execve-over-direct-IO"v3.1.0qa15
This reverts commit 588d807bdcbf5ed4df4d903428ab701479e9f8ac.
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 31fbaa9692b..bce5bfd4ca5 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -896,10 +896,14 @@ glusterfs_ctx_defaults_init (glusterfs_ctx_t *ctx)
cmd_args->log_level = DEFAULT_LOG_LEVEL;
#ifdef GF_DARWIN_HOST_OS
cmd_args->mac_compat = GF_OPTION_DEFERRED;
+ /* On Darwin machines, O_APPEND is not handled,
+ * which may corrupt the data
+ */
+ cmd_args->fuse_direct_io_mode = GF_OPTION_DISABLE;
#else
cmd_args->mac_compat = GF_OPTION_DISABLE;
-#endif
cmd_args->fuse_direct_io_mode = GF_OPTION_DEFERRED;
+#endif
cmd_args->fuse_attribute_timeout = -1;
INIT_LIST_HEAD (&cmd_args->xlator_options);