Skip to content

Commit b5bae62

Browse files
authored
Merge pull request ceph#55054 from pereman2/zns-remove
os/bluestore: remove zoned namespace support It has never been finished and now its in the way of future improvements.
2 parents ac9e76f + 03e11ac commit b5bae62

32 files changed

+83
-2409
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
@@ -301,9 +300,6 @@ BuildRequires: socat
301300
BuildRequires: python%{python3_pkgversion}-asyncssh
302301
BuildRequires: python%{python3_pkgversion}-natsort
303302
%endif
304-
%if 0%{with zbd}
305-
BuildRequires: libzbd-devel
306-
%endif
307303
%if 0%{?suse_version}
308304
BuildRequires: libthrift-devel >= 0.13.0
309305
%else
@@ -1422,9 +1418,6 @@ cmake .. \
14221418
%if 0%{without lua_packages}
14231419
-DWITH_RADOSGW_LUA_PACKAGES:BOOL=OFF \
14241420
%endif
1425-
%if 0%{with zbd}
1426-
-DWITH_ZBD:BOOL=ON \
1427-
%endif
14281421
%if 0%{with cmake_verbose_logging}
14291422
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
14301423
%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
@@ -229,19 +224,6 @@ function install_boost_on_ubuntu {
229224

230225
}
231226

232-
function install_libzbd_on_ubuntu {
233-
ci_debug "Running install_libzbd_on_ubuntu() in install-deps.sh"
234-
local codename=$1
235-
local project=libzbd
236-
local sha1=1fadde94b08fab574b17637c2bebd2b1e7f9127b
237-
install_pkg_on_ubuntu \
238-
$project \
239-
$sha1 \
240-
$codename \
241-
check \
242-
libzbd-dev
243-
}
244-
245227
motr_pkgs_url='https://github.com/Seagate/cortx-motr/releases/download/2.0.0-rgw'
246228

247229
function install_cortx_motr_on_ubuntu {
@@ -431,7 +413,6 @@ if [ x$(uname)x = xFreeBSDx ]; then
431413
exit
432414
else
433415
[ $WITH_SEASTAR ] && with_seastar=true || with_seastar=false
434-
[ $WITH_ZBD ] && with_zbd=true || with_zbd=false
435416
[ $WITH_PMEM ] && with_pmem=true || with_pmem=false
436417
[ $WITH_RADOSGW_MOTR ] && with_rgw_motr=true || with_rgw_motr=false
437418
source /etc/os-release
@@ -460,12 +441,10 @@ else
460441
*Bionic*)
461442
ensure_decent_gcc_on_ubuntu 9 bionic
462443
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu bionic
463-
$with_zbd && install_libzbd_on_ubuntu bionic
464444
;;
465445
*Focal*)
466446
ensure_decent_gcc_on_ubuntu 11 focal
467447
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu focal
468-
$with_zbd && install_libzbd_on_ubuntu focal
469448
;;
470449
*Jammy*)
471450
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu jammy
@@ -559,7 +538,7 @@ else
559538
if [ "$INSTALL_EXTRA_PACKAGES" ]; then
560539
$SUDO dnf install -y $INSTALL_EXTRA_PACKAGES
561540
fi
562-
munge_ceph_spec_in $with_seastar $with_zbd $for_make_check $DIR/ceph.spec
541+
munge_ceph_spec_in $with_seastar $for_make_check $DIR/ceph.spec
563542
# for python3_pkgversion macro defined by python-srpm-macros, which is required by python3-devel
564543
$SUDO dnf install -y python3-devel
565544
$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/common/options/global.yaml.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4919,7 +4919,6 @@ options:
49194919
- stupid
49204920
- avl
49214921
- hybrid
4922-
- zoned
49234922
with_legacy: true
49244923
- name: bluestore_freelist_blocks_per_key
49254924
type: size
@@ -6348,7 +6347,6 @@ options:
63486347
- aio
63496348
- spdk
63506349
- pmem
6351-
- hm_smr
63526350
- name: bluestore_cleaner_sleep_interval
63536351
type: float
63546352
level: advanced

0 commit comments

Comments
 (0)