CHECK_FUNCTION_EXISTS(fuse_getgroups HAVE_FUSE_GETGROUPS)
endif(${WITH_FUSE})
+option(WITH_XFS "XFS is here" ON)
+if(${WITH_XFS})
+find_package(xfs)
+set(HAVE_XFS ${XFS_FOUND})
+endif(${WITH_XFS})
+
find_package(blkid REQUIRED)
set(HAVE_LIBBLKID ${BLKID_FOUND})
--- /dev/null
+# Try to find xfs
+# Once done, this will define
+#
+# XFS_FOUND - system has Profiler
+# XFS_INCLUDE_DIR - the Profiler include directories
+# XFS_LIBRARIES - link these to use Profiler
+
+if(XFS_INCLUDE_DIR AND XFS_LIBRARIES)
+ set(XFS_FIND_QUIETLY TRUE)
+endif(XFS_INCLUDE_DIR AND XFS_LIBRARIES)
+
+INCLUDE(CheckCXXSymbolExists)
+
+# include dir
+
+find_path(XFS_INCLUDE_DIR xfs.h NO_DEFAULT_PATH PATHS
+ /usr/include
+ /usr/include/xfs
+ /opt/local/include
+ /usr/local/include
+)
+
+
+# finally the library itself
+find_library(LIBXFS NAMES handle)
+set(XFS_LIBRARIES ${LIBXFS})
+
+# handle the QUIETLY and REQUIRED arguments and set XFS_FOUND to TRUE if
+# all listed variables are TRUE
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(xfs DEFAULT_MSG XFS_LIBRARIES XFS_INCLUDE_DIR)
+
+mark_as_advanced(XFS_LIBRARIES XFS_INCLUDE_DIR)
install(TARGETS ceph-mon DESTINATION bin)
# OSD
+if(${HAVE_XFS})
+ set(libos_xfs_srcs
+ os/XfsFileStoreBackend.cc
+ os/fs/XFS.cc)
+endif(${HAVE_XFS})
set(libos_srcs
os/FileJournal.cc
os/FileStore.cc
os/GenericFileStoreBackend.cc
os/BtrfsFileStoreBackend.cc
os/ZFSFileStoreBackend.cc
- os/XfsFileStoreBackend.cc
os/KeyValueStore.cc
os/KeyValueDB.cc
os/MemStore.cc
os/newstore/NewStore.cc
os/newstore/newstore_types.cc
os/fs/FS.cc
- os/fs/XFS.cc)
+ ${libos_xfs_srcs})
+
set(os_mon_files
os/LevelDBStore.cc)
add_library(os_mon_objs OBJECT ${os_mon_files})