]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/ceph-dencoder: conditionally link against mds 25255/head
authorKefu Chai <kchai@redhat.com>
Mon, 26 Nov 2018 07:49:51 +0000 (15:49 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 26 Nov 2018 10:13:28 +0000 (18:13 +0800)
ceph-dencoder should not link against libmds if WITH_CEPHFS is OFF.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/tools/ceph-dencoder/CMakeLists.txt
src/tools/ceph-dencoder/types.h

index d500b5f591109564b573d6d54114b1cb1566016c..8ae397e6844d6f425d78a8d007a471f31858a8e3 100644 (file)
@@ -36,11 +36,15 @@ if(WITH_RBD)
   endif()
 endif()
 
+if(WITH_CEPHFS)
+  list(APPEND DENCODER_EXTRALIBS
+    mds)
+endif()
+
 target_link_libraries(ceph-dencoder
   global
   os
   osd
-  mds
   mon
   journal
   ${DENCODER_EXTRALIBS}
index 8bff4e05251b25b736ce31e166f637bedb3508fe..c609a27faac922bff2241ca77ecf59d6104ba248 100644 (file)
@@ -1,3 +1,5 @@
+#include "acconfig.h"
+
 #include "ceph_time.h"
 TYPE(real_time_wrapper)
 TYPE(coarse_real_time_wrapper)
@@ -204,6 +206,7 @@ TYPE(FSSuperblock)
 TYPE(kstore_cnode_t)
 TYPE(kstore_onode_t)
 
+#ifdef WITH_CEPHFS
 #include "mds/JournalPointer.h"
 TYPE(JournalPointer)
 
@@ -313,6 +316,7 @@ TYPE_FEATUREFUL_NOCOPY(ETableServer)
 
 #include "mds/events/EUpdate.h"
 TYPE_FEATUREFUL_NOCOPY(EUpdate)
+#endif // WITH_CEPHFS
 
 #ifdef WITH_RBD
 #include "librbd/journal/Types.h"