Signed-off-by: Kefu Chai <kchai@redhat.com>
#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"
}
if (op == "fuse") {
+#ifdef HAVE_LIBFUSE
FuseStore fuse(fs, mountpoint);
cout << "mounting fuse at " << mountpoint << " ..." << std::endl;
int r = fuse.main();
cerr << "failed to mount fuse: " << cpp_strerror(r) << std::endl;
myexit(1);
}
+#else
+ cerr << "fuse support not enabled" << std::endl;
+#endif
myexit(0);
}