From: Kefu Chai Date: Thu, 28 Jan 2016 12:43:45 +0000 (+0800) Subject: ceph-objectstore-tool: disable fuse support if !HAVE_LIBFUSE X-Git-Tag: v10.0.4~143^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=157bf3eb61395cce195ff057fc19a95e378e115a;p=ceph.git ceph-objectstore-tool: disable fuse support if !HAVE_LIBFUSE Signed-off-by: Kefu Chai --- diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index f487bbb55a7a..beb2c7bf6a3b 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -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); }