]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
spec: enable RWL/SSD caches 39049/head
authorlixiaoy1 <xiaoyan.li@intel.com>
Fri, 22 Jan 2021 16:07:40 +0000 (11:07 -0500)
committerlixiaoy1 <xiaoyan.li@intel.com>
Tue, 26 Jan 2021 09:21:30 +0000 (04:21 -0500)
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
ceph.spec.in
debian/rules

index c11b1b76c27d13f727c8a1bc18a73312f8ac6477..b0d999f6d283593a2b4d04938a3630a98da3de45 100644 (file)
@@ -62,6 +62,8 @@
 %endif
 %bcond_with seastar
 %bcond_with jaeger
+%bcond_with rbd_rwl_cache
+%bcond_with rbd_ssd_cache
 %if 0%{?fedora} || 0%{?suse_version} >= 1500
 # distros that ship cmd2 and/or colorama
 %bcond_without cephfs_shell
@@ -1267,6 +1269,12 @@ ${CMAKE} .. \
 %endif
 %if 0%{with cmake_verbose_logging}
     -DCMAKE_VERBOSE_MAKEFILE=ON \
+%endif
+%if 0%{with rbd_rwl_cache}
+    -DWITH_RBD_RWL=ON \
+%endif
+%if 0%{with rbd_ssd_cache}
+    -DWITH_RBD_SSD_CACHE=ON \
 %endif
     -DBOOST_J=$CEPH_SMP_NCPUS \
     -DWITH_GRAFANA=ON
index f8e001549668df94c20d0fcee3f991b55cf0babb..8acd5aa5f683eb596ac199a209ccc74b97ce4e0c 100755 (executable)
@@ -24,6 +24,8 @@ extraopts += -DWITH_CEPHFS_JAVA=ON
 extraopts += -DWITH_CEPHFS_SHELL=ON
 extraopts += -DWITH_SYSTEMD=ON -DCEPH_SYSTEMD_ENV_DIR=/etc/default
 extraopts += -DWITH_GRAFANA=ON
+extraopts += -DWITH_RBD_RWL=ON
+extraopts += -DWITH_RBD_SSD_CACHE=ON
 # assumes that ceph is exmpt from multiarch support, so we override the libdir.
 extraopts += -DCMAKE_INSTALL_LIBDIR=/usr/lib
 extraopts += -DCMAKE_INSTALL_LIBEXECDIR=/usr/libexec