summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2010-05-17 07:10:22 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-05-21 00:31:56 -0700
commit67ade7b062a13d896187d1bc784baded59f73fcf (patch)
treee5817b2b98bfbd7100aa77887d13e2ff5ba98b5d /glusterfsd
parent11fb070964adf57eea4191d315a752c96f80a426 (diff)
OS X: enable mac-compat for OS X clients.
Injecting volumes at startup this way is pretty hacky but it will do for now. Refactoring that part will come as separate commit. Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 8ffa3ac46..fa4e1a005 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -1371,12 +1371,16 @@ main (int argc, char *argv[])
"on client side, exiting\n");
return -1;
}
- if (cmd_args->mac_compat)
- graph = _add_volume (graph, ZR_XLATOR_MAC_COMPAT);
if (graph && !fuse_volume_found && (cmd_args->mount_point != NULL)) {
/* Check for read-only option and add a read-only translator */
if (cmd_args->read_only)
graph = _add_volume (graph, ZR_XLATOR_READ_ONLY);
+ if (graph
+#ifndef GF_DARWIN_HOST_OS
+ && cmd_args->mac_compat
+#endif
+ )
+ graph = _add_volume (graph, ZR_XLATOR_MAC_COMPAT);
if (graph)
graph = _add_fuse_mount (graph);
}