From 67ade7b062a13d896187d1bc784baded59f73fcf Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Mon, 17 May 2010 07:10:22 +0000 Subject: 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 Signed-off-by: Anand V. Avati BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361 --- glusterfsd/src/glusterfsd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'glusterfsd') diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 8ffa3ac461b..fa4e1a0054f 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); } -- cgit