]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: fix build with "--without-rbd" 6899/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Fri, 11 Dec 2015 15:42:51 +0000 (16:42 +0100)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Mon, 14 Dec 2015 17:20:45 +0000 (18:20 +0100)
It's not possible to build Ceph configured with "--without-rbd", as
tests and FileStore depends on components provided by RBD. This changeset
fixes this.

Fixes: #14058
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
src/common/Makefile.am
src/test/Makefile.am
src/test/encoding/types.h

index 4e1ce9bc2ea438be5972b3e2eb224af5696fa463..182295f9e6d629f970620c2ef109438618a3f3c8 100644 (file)
@@ -97,12 +97,11 @@ libcommon_internal_la_SOURCES += \
         common/aix_errno.cc
 endif
 
-if WITH_RBD
+# used by RBD and FileStore
 if LINUX
 libcommon_internal_la_SOURCES += \
        common/blkdev.cc
 endif
-endif
 
 if ENABLE_XIO
 libcommon_internal_la_SOURCES += \
index 3d6353534d14c5db1827d42a3257e88cd9f6ce13..ab665040060197e2af70577f6d92fe3043eed946 100644 (file)
@@ -433,9 +433,11 @@ bin_DEBUGPROGRAMS += ceph_test_objectcacher_stress
 ceph_test_cfuse_cache_invalidate_SOURCES = test/test_cfuse_cache_invalidate.cc
 bin_DEBUGPROGRAMS += ceph_test_cfuse_cache_invalidate
 
+if LINUX
 ceph_test_get_blkdev_size_SOURCES = test/test_get_blkdev_size.cc
 ceph_test_get_blkdev_size_LDADD = $(LIBCOMMON)
 bin_DEBUGPROGRAMS += ceph_test_get_blkdev_size
+endif
 
 noinst_HEADERS += \
        test/bench/backend.h \
index 5e06c2c9e6ca876030d069ed5ee22cc8a114a025..26e672c73499d4832f362d3ee348c63520b6902b 100644 (file)
@@ -226,6 +226,7 @@ TYPE(ETableServer)
 #include "mds/events/EUpdate.h"
 TYPE(EUpdate)
 
+#ifdef WITH_RBD
 #include "librbd/JournalTypes.h"
 TYPE(librbd::journal::EventEntry)
 #include "librbd/WatchNotifyTypes.h"
@@ -235,6 +236,7 @@ TYPE(librbd::watch_notify::ResponseMessage)
 #include "rbd_replay/ActionTypes.h"
 TYPE(rbd_replay::action::Dependency)
 TYPE(rbd_replay::action::ActionEntry);
+#endif
 
 #ifdef WITH_RADOSGW
 
@@ -331,12 +333,14 @@ TYPE(rgw_obj)
 #include "rgw/rgw_log.h"
 TYPE(rgw_log_entry)
 
+#ifdef WITH_RBD
 #include "cls/rbd/cls_rbd.h"
 TYPE(cls_rbd_parent)
 TYPE(cls_rbd_snap)
 
 #include "cls/rbd/cls_rbd_types.h"
 TYPE(cls::rbd::MirrorPeer)
+#endif
 
 #endif