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>
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 += \
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 \
#include "mds/events/EUpdate.h"
TYPE(EUpdate)
+#ifdef WITH_RBD
#include "librbd/JournalTypes.h"
TYPE(librbd::journal::EventEntry)
#include "librbd/WatchNotifyTypes.h"
#include "rbd_replay/ActionTypes.h"
TYPE(rbd_replay::action::Dependency)
TYPE(rbd_replay::action::ActionEntry);
+#endif
#ifdef WITH_RADOSGW
#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