diff --git a/CMakeLists.txt b/CMakeLists.txt index f623c5e1b79..b42f82d7c98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -487,11 +487,6 @@ if(WITH_MGR) set(MGR_PYTHON_LIBRARIES ${Python3_LIBRARIES}) set(MGR_PYTHON_VERSION_MAJOR ${Python3_VERSION_MAJOR}) set(MGR_PYTHON_VERSION_MINOR ${Python3_VERSION_MINOR}) - # https://tracker.ceph.com/issues/45147 - if(Python3_VERSION VERSION_GREATER_EQUAL 3.8) - set(MGR_DISABLED_MODULES "diskprediction_local") - message(STATUS "mgr module disabled for ${Python3_VERSION}: ${MGR_DISABLED_MODULES}") - endif() # Boost dependency check deferred to Boost section endif(WITH_MGR) endif(NOT WIN32) diff --git a/ceph.spec.in b/ceph.spec.in index f363361e1e5..66e069e5bcd 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -327,6 +327,7 @@ BuildRequires: cunit-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-Cython BuildRequires: python%{python3_pkgversion}-PrettyTable +BuildRequires: python%{python3_pkgversion}-PyYAML BuildRequires: python%{python3_pkgversion}-Sphinx BuildRequires: rdma-core-devel BuildRequires: liblz4-devel >= 1.7 @@ -349,6 +350,7 @@ BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-Cython BuildRequires: python%{python3_pkgversion}-prettytable +BuildRequires: python%{python3_pkgversion}-pyyaml BuildRequires: python%{python3_pkgversion}-sphinx BuildRequires: lz4-devel >= 1.7 %endif diff --git a/debian/control b/debian/control index 1ca1b3b4605..d61dac291a8 100644 --- a/debian/control +++ b/debian/control @@ -98,7 +98,7 @@ Build-Depends: automake, python3-setuptools, python3-sphinx, # Make-Check python3-werkzeug, - python3-setuptools, + python3-yaml, # Crimson ragel, # Make-Check socat, # Crimson systemtap-sdt-dev, diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 98db46226bd..12e8300efaf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -447,6 +447,7 @@ add_subdirectory(arch) set(ceph_common_objs $ $ + $ $ $ $ diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index a2d50aed896..2feaa80800d 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -11,6 +11,8 @@ if(WIN32) add_library(dlfcn_win32 STATIC win32/dlfcn.cc win32/errno.cc) endif() +add_subdirectory(options) + set(common_srcs AsyncOpTracker.cc BackTrace.cc diff --git a/src/common/options.cc b/src/common/options.cc index f2c0104f7d8..5f89980d85a 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4,6 +4,7 @@ #include "acconfig.h" #include "options.h" #include "common/Formatter.h" +#include "common/options/build_options.h" // Helpers for validators #include "include/stringify.h" @@ -336,8843 +337,4 @@ void Option::print(ostream *out) const } } -constexpr unsigned long long operator"" _min (unsigned long long min) { - return min * 60; -} -constexpr unsigned long long operator"" _hr (unsigned long long hr) { - return hr * 60 * 60; -} -constexpr unsigned long long operator"" _day (unsigned long long day) { - return day * 24 * 60 * 60; -} -constexpr unsigned long long operator"" _K (unsigned long long n) { - return n << 10; -} -constexpr unsigned long long operator"" _M (unsigned long long n) { - return n << 20; -} -constexpr unsigned long long operator"" _G (unsigned long long n) { - return n << 30; -} -constexpr unsigned long long operator"" _T (unsigned long long n) { - return n << 40; -} - -std::vector