]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: don't include unsupported mount options on DARWIN/FreeBSD
authorYan, Zheng <zyan@redhat.com>
Sun, 5 Jul 2015 07:54:27 +0000 (15:54 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 31 Aug 2015 08:00:22 +0000 (16:00 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/client/fuse_ll.cc

index e2d3cc1ef890d8ecd7266db64cd74adc659e59a2..551984b23be4bc2a992f9a4932856a72981efb0d 100644 (file)
@@ -14,8 +14,6 @@
 
 #define FUSE_USE_VERSION 30
 
-#include <fuse.h>
-#include <fuse_lowlevel.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -34,6 +32,8 @@
 #include "common/config.h"
 #include "include/assert.h"
 
+#include <fuse.h>
+#include <fuse_lowlevel.h>
 #include "fuse_ll.h"
 
 #define FINO_INO(x) ((x) & ((1ull<<48)-1ull))
@@ -917,6 +917,7 @@ int CephFuse::Handle::init(int argc, const char *argv[])
     newargv[newargc++] = "-o";
     newargv[newargc++] = "default_permissions";
   }
+#if defined(__linux__)
   if (client->cct->_conf->fuse_big_writes) {
     newargv[newargc++] = "-o";
     newargv[newargc++] = "big_writes";
@@ -925,7 +926,7 @@ int CephFuse::Handle::init(int argc, const char *argv[])
     newargv[newargc++] = "-o";
     newargv[newargc++] = "atomic_o_trunc";
   }
-
+#endif
   if (client->cct->_conf->fuse_debug)
     newargv[newargc++] = "-d";