]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: disable fuse support if !HAVE_LIBFUSE 7393/head
authorKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2016 12:43:45 +0000 (20:43 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2016 15:36:45 +0000 (23:36 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/tools/ceph_objectstore_tool.cc

index f487bbb55a7af6d4e0d009e4aab54d5bf9cb5758..beb2c7bf6a3b6ddf24c1a60094f3b1cbfc8abd68 100644 (file)
@@ -26,7 +26,9 @@
 
 #include "os/ObjectStore.h"
 #include "os/filestore/FileJournal.h"
+#ifdef HAVE_LIBFUSE
 #include "os/FuseStore.h"
+#endif
 
 #include "osd/PGLog.h"
 #include "osd/OSD.h"
@@ -2485,6 +2487,7 @@ int main(int argc, char **argv)
   }
 
   if (op == "fuse") {
+#ifdef HAVE_LIBFUSE
     FuseStore fuse(fs, mountpoint);
     cout << "mounting fuse at " << mountpoint << " ..." << std::endl;
     int r = fuse.main();
@@ -2492,6 +2495,9 @@ int main(int argc, char **argv)
       cerr << "failed to mount fuse: " << cpp_strerror(r) << std::endl;
       myexit(1);
     }
+#else
+    cerr << "fuse support not enabled" << std::endl;
+#endif
     myexit(0);
   }