Skip to content

Commit 03e11ac

Browse files
committed
os/bluestore: remove zoned from crimson
Signed-off-by: Pere Diaz Bou <[email protected]>
1 parent 169bd85 commit 03e11ac

File tree

16 files changed

+7
-283
lines changed

16 files changed

+7
-283
lines changed

CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,6 @@ endif()
233233

234234
include(CMakeDependentOption)
235235

236-
CMAKE_DEPENDENT_OPTION(WITH_ZBD "Enable libzbd bluestore backend" OFF
237-
"WITH_BLUESTORE" OFF)
238-
if(WITH_ZBD)
239-
find_package(zbd REQUIRED)
240-
set(HAVE_LIBZBD ${ZBD_FOUND})
241-
endif()
242-
243236
CMAKE_DEPENDENT_OPTION(WITH_LIBURING "Enable io_uring bluestore backend" ON
244237
"WITH_BLUESTORE;HAVE_LIBAIO" OFF)
245238
set(HAVE_LIBURING ${WITH_LIBURING})

ceph.spec.in

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
# https://rpm-software-management.github.io/rpm/manual/conditionalbuilds.html
2222
#################################################################################
2323
%bcond_with make_check
24-
%bcond_with zbd
2524
%bcond_with cmake_verbose_logging
2625
%bcond_without ceph_test_package
2726
%ifarch s390
@@ -300,9 +299,6 @@ BuildRequires: socat
300299
BuildRequires: python%{python3_pkgversion}-asyncssh
301300
BuildRequires: python%{python3_pkgversion}-natsort
302301
%endif
303-
%if 0%{with zbd}
304-
BuildRequires: libzbd-devel
305-
%endif
306302
%if 0%{?suse_version}
307303
BuildRequires: libthrift-devel >= 0.13.0
308304
%else
@@ -1403,9 +1399,6 @@ cmake .. \
14031399
%if 0%{without lua_packages}
14041400
-DWITH_RADOSGW_LUA_PACKAGES:BOOL=OFF \
14051401
%endif
1406-
%if 0%{with zbd}
1407-
-DWITH_ZBD:BOOL=ON \
1408-
%endif
14091402
%if 0%{with cmake_verbose_logging}
14101403
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
14111404
%endif

install-deps.sh

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ ARCH=$(uname -m)
3636
function munge_ceph_spec_in {
3737
local with_seastar=$1
3838
shift
39-
local with_zbd=$1
40-
shift
4139
local for_make_check=$1
4240
shift
4341
local OUTFILE=$1
@@ -46,9 +44,6 @@ function munge_ceph_spec_in {
4644
if $with_seastar; then
4745
sed -i -e 's/%bcond_with seastar/%bcond_without seastar/g' $OUTFILE
4846
fi
49-
if $with_zbd; then
50-
sed -i -e 's/%bcond_with zbd/%bcond_without zbd/g' $OUTFILE
51-
fi
5247
if $for_make_check; then
5348
sed -i -e 's/%bcond_with make_check/%bcond_without make_check/g' $OUTFILE
5449
fi
@@ -221,19 +216,6 @@ function install_boost_on_ubuntu {
221216

222217
}
223218

224-
function install_libzbd_on_ubuntu {
225-
ci_debug "Running install_libzbd_on_ubuntu() in install-deps.sh"
226-
local codename=$1
227-
local project=libzbd
228-
local sha1=1fadde94b08fab574b17637c2bebd2b1e7f9127b
229-
install_pkg_on_ubuntu \
230-
$project \
231-
$sha1 \
232-
$codename \
233-
check \
234-
libzbd-dev
235-
}
236-
237219
motr_pkgs_url='https://github.com/Seagate/cortx-motr/releases/download/2.0.0-rgw'
238220

239221
function install_cortx_motr_on_ubuntu {
@@ -423,7 +405,6 @@ if [ x$(uname)x = xFreeBSDx ]; then
423405
exit
424406
else
425407
[ $WITH_SEASTAR ] && with_seastar=true || with_seastar=false
426-
[ $WITH_ZBD ] && with_zbd=true || with_zbd=false
427408
[ $WITH_PMEM ] && with_pmem=true || with_pmem=false
428409
[ $WITH_RADOSGW_MOTR ] && with_rgw_motr=true || with_rgw_motr=false
429410
source /etc/os-release
@@ -452,12 +433,10 @@ else
452433
*Bionic*)
453434
ensure_decent_gcc_on_ubuntu 9 bionic
454435
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu bionic
455-
$with_zbd && install_libzbd_on_ubuntu bionic
456436
;;
457437
*Focal*)
458438
ensure_decent_gcc_on_ubuntu 11 focal
459439
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu focal
460-
$with_zbd && install_libzbd_on_ubuntu focal
461440
;;
462441
*Jammy*)
463442
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu jammy
@@ -549,7 +528,7 @@ else
549528
if [ "$INSTALL_EXTRA_PACKAGES" ]; then
550529
$SUDO dnf install -y $INSTALL_EXTRA_PACKAGES
551530
fi
552-
munge_ceph_spec_in $with_seastar $with_zbd $for_make_check $DIR/ceph.spec
531+
munge_ceph_spec_in $with_seastar $for_make_check $DIR/ceph.spec
553532
# for python3_pkgversion macro defined by python-srpm-macros, which is required by python3-devel
554533
$SUDO dnf install -y python3-devel
555534
$SUDO $builddepcmd $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out

src/blk/BlockDevice.cc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
#include "pmem/PMEMDevice.h"
3232
#endif
3333

34-
#if defined(HAVE_LIBZBD)
35-
#include "zoned/HMSMRDevice.h"
36-
#endif
37-
3834
#include "common/debug.h"
3935
#include "common/EventTrace.h"
4036
#include "common/errno.h"
@@ -113,11 +109,6 @@ BlockDevice::detect_device_type(const std::string& path)
113109
return block_device_t::pmem;
114110
}
115111
#endif
116-
#if (defined(HAVE_LIBAIO) || defined(HAVE_POSIXAIO)) && defined(HAVE_LIBZBD)
117-
if (HMSMRDevice::support(path)) {
118-
return block_device_t::hm_smr;
119-
}
120-
#endif
121112
#if defined(HAVE_LIBAIO) || defined(HAVE_POSIXAIO)
122113
return block_device_t::aio;
123114
#else
@@ -142,11 +133,6 @@ BlockDevice::device_type_from_name(const std::string& blk_dev_name)
142133
if (blk_dev_name == "pmem") {
143134
return block_device_t::pmem;
144135
}
145-
#endif
146-
#if (defined(HAVE_LIBAIO) || defined(HAVE_POSIXAIO)) && defined(HAVE_LIBZBD)
147-
if (blk_dev_name == "hm_smr") {
148-
return block_device_t::hm_smr;
149-
}
150136
#endif
151137
return block_device_t::unknown;
152138
}
@@ -168,10 +154,6 @@ BlockDevice* BlockDevice::create_with_type(block_device_t device_type,
168154
#if defined(HAVE_BLUESTORE_PMEM)
169155
case block_device_t::pmem:
170156
return new PMEMDevice(cct, cb, cbpriv);
171-
#endif
172-
#if (defined(HAVE_LIBAIO) || defined(HAVE_POSIXAIO)) && defined(HAVE_LIBZBD)
173-
case block_device_t::hm_smr:
174-
return new HMSMRDevice(cct, cb, cbpriv, d_cb, d_cbpriv);
175157
#endif
176158
default:
177159
ceph_abort_msg("unsupported device");

src/blk/BlockDevice.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ class BlockDevice {
156156
unknown,
157157
#if defined(HAVE_LIBAIO) || defined(HAVE_POSIXAIO)
158158
aio,
159-
#if defined(HAVE_LIBZBD)
160-
hm_smr,
161-
#endif
162159
#endif
163160
#if defined(HAVE_SPDK)
164161
spdk,

src/blk/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ if(WITH_SPDK)
2020
spdk/NVMEDevice.cc)
2121
endif()
2222

23-
if(WITH_ZBD)
24-
list(APPEND libblk_srcs
25-
zoned/HMSMRDevice.cc)
26-
endif()
27-
2823
if(libblk_srcs)
2924
add_library(blk STATIC ${libblk_srcs})
3025
target_include_directories(blk PRIVATE "./")
@@ -39,10 +34,6 @@ if(WITH_SPDK)
3934
PRIVATE spdk::spdk)
4035
endif()
4136

42-
if(WITH_ZBD)
43-
target_link_libraries(blk PRIVATE ${ZBD_LIBRARIES})
44-
endif()
45-
4637
if(WITH_BLUESTORE_PMEM)
4738
if(HAVE_LIBDML)
4839
target_link_libraries(blk PRIVATE dml::dml dml::dmlhl)

src/blk/zoned/HMSMRDevice.cc

Lines changed: 0 additions & 131 deletions
This file was deleted.

src/blk/zoned/HMSMRDevice.h

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/crimson/os/alienstore/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ set(alien_store_srcs
6363
${PROJECT_SOURCE_DIR}/src/os/bluestore/StupidAllocator.cc
6464
${PROJECT_SOURCE_DIR}/src/os/bluestore/BitmapAllocator.cc
6565
${PROJECT_SOURCE_DIR}/src/os/memstore/MemStore.cc)
66-
if(WITH_ZBD)
67-
list(APPEND alien_store_srcs
68-
${PROJECT_SOURCE_DIR}/src/os/bluestore/ZonedFreelistManager.cc
69-
${PROJECT_SOURCE_DIR}/src/os/bluestore/ZonedAllocator.cc)
70-
endif()
7166
add_library(crimson-alienstore STATIC
7267
${alien_store_srcs})
7368
if(WITH_LTTNG)

src/include/config-h.in.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@
8787
/* Defined if you have libdml */
8888
#cmakedefine HAVE_LIBDML
8989

90-
/* Defined if you have libzbd */
91-
#cmakedefine HAVE_LIBZBD
92-
9390
/* Defined if you have liburing */
9491
#cmakedefine HAVE_LIBURING
9592

0 commit comments

Comments
 (0)