Skip to content

Commit 33a9dc1

Browse files
authored
Merge pull request ceph#62325 from Matan-B/wip-matanb-with-crimson
src: sed -i 's/WITH_SEASTAR/WITH_CRIMSON/' Reviewed-by: Samuel Just <[email protected]> Reviewed-by: Yingxin Cheng <[email protected]> Reviewed-by: Casey Bodley <[email protected]>
2 parents 1798676 + e1aa80e commit 33a9dc1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+196
-196
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,8 @@ if (WITH_SYSTEM_ROCKSDB)
705705
find_package(RocksDB 5.14 REQUIRED)
706706
endif()
707707

708-
option(WITH_SEASTAR "Build seastar components")
709-
set(HAVE_SEASTAR ${WITH_SEASTAR})
708+
option(WITH_CRIMSON "Build seastar components")
709+
set(HAVE_SEASTAR ${WITH_CRIMSON})
710710

711711
# Boost
712712
option(WITH_SYSTEM_BOOST "require and build with system Boost" OFF)
@@ -721,7 +721,7 @@ if(WITH_MGR)
721721
list(APPEND BOOST_COMPONENTS
722722
python${MGR_PYTHON_VERSION_MAJOR}${MGR_PYTHON_VERSION_MINOR})
723723
endif()
724-
if(WITH_SEASTAR)
724+
if(WITH_CRIMSON)
725725
list(APPEND BOOST_COMPONENTS timer)
726726
endif()
727727

ceph.spec.in

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
%bcond_with lua_packages
9292
%endif
9393
%endif
94-
%bcond_with seastar
94+
%bcond_with crimson
9595
%if 0%{?suse_version} || 0%{?openEuler}
9696
%bcond_with jaeger
9797
%else
@@ -150,7 +150,7 @@
150150
%{!?python3_pkgversion: %global python3_pkgversion 3}
151151
%{!?python3_version_nodots: %global python3_version_nodots 3}
152152
%{!?python3_version: %global python3_version 3}
153-
%if 0%{with seastar}
153+
%if 0%{with crimson}
154154
%{!?gts_version: %global gts_version 13}
155155
%else
156156
%if 0%{?rhel} == 8
@@ -325,7 +325,7 @@ BuildRequires: xmlstarlet
325325
BuildRequires: nasm
326326
BuildRequires: lua-devel
327327
BuildRequires: lmdb-devel
328-
%if 0%{with seastar} || 0%{with jaeger}
328+
%if 0%{with crimson} || 0%{with jaeger}
329329
BuildRequires: yaml-cpp-devel >= 0.6
330330
%endif
331331
%if 0%{with amqp_endpoint}
@@ -387,7 +387,7 @@ BuildRequires: utf8proc-devel
387387
BuildRequires: qatlib-devel
388388
BuildRequires: qatzip-devel
389389
%endif
390-
%if 0%{with seastar}
390+
%if 0%{with crimson}
391391
BuildRequires: c-ares-devel
392392
BuildRequires: gnutls-devel
393393
BuildRequires: hwloc-devel
@@ -514,7 +514,7 @@ BuildRequires: redhat-rpm-config
514514
%if 0%{?openEuler}
515515
BuildRequires: openEuler-rpm-config
516516
%endif
517-
%if 0%{with seastar}
517+
%if 0%{with crimson}
518518
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
519519
BuildRequires: cryptopp-devel
520520
%endif
@@ -943,7 +943,7 @@ Provides: ceph-test:/usr/bin/ceph-osdomap-tool
943943
Requires: ceph-base = %{_epoch_prefix}%{version}-%{release}
944944
Requires: sudo
945945
Requires: libstoragemgmt
946-
%if 0%{with seastar}
946+
%if 0%{with crimson}
947947
Requires: protobuf
948948
%endif
949949
%if 0%{?weak_deps}
@@ -954,7 +954,7 @@ ceph-osd is the object storage daemon for the Ceph distributed file
954954
system. It is responsible for storing objects on a local file system
955955
and providing access to them over the network.
956956

957-
%if 0%{with seastar}
957+
%if 0%{with crimson}
958958
%package crimson-osd
959959
Summary: Ceph Object Storage Daemon (crimson)
960960
%if 0%{?suse_version}
@@ -1431,7 +1431,7 @@ export CFLAGS="$RPM_OPT_FLAGS"
14311431
export CXXFLAGS="$RPM_OPT_FLAGS"
14321432
export LDFLAGS="$RPM_LD_FLAGS"
14331433

1434-
%if 0%{with seastar}
1434+
%if 0%{with crimson}
14351435
# seastar uses longjmp() to implement coroutine. and this annoys longjmp_chk()
14361436
export CXXFLAGS=$(echo $RPM_OPT_FLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g')
14371437
# remove from CFLAGS too because it causes the arrow submodule to fail with:
@@ -1543,8 +1543,8 @@ cmake .. \
15431543
-DWITH_SYSTEM_QATLIB:BOOL=ON \
15441544
-DWITH_SYSTEM_QATZIP:BOOL=ON \
15451545
%endif
1546-
%if 0%{with seastar}
1547-
-DWITH_SEASTAR:BOOL=ON \
1546+
%if 0%{with crimson}
1547+
-DWITH_CRIMSON:BOOL=ON \
15481548
-DWITH_JAEGER:BOOL=OFF \
15491549
%endif
15501550
-DWITH_GRAFANA:BOOL=ON \
@@ -1591,7 +1591,7 @@ pushd %{_vpath_builddir}
15911591
rm -f %{buildroot}/%{_sysconfdir}/init.d/ceph
15921592
popd
15931593

1594-
%if 0%{with seastar}
1594+
%if 0%{with crimson}
15951595
# package crimson-osd with the name of ceph-osd
15961596
install -m 0755 %{buildroot}%{_bindir}/crimson-osd %{buildroot}%{_bindir}/ceph-osd
15971597
%endif
@@ -2364,7 +2364,7 @@ if [ $1 -ge 1 ] ; then
23642364
fi
23652365
fi
23662366

2367-
%if 0%{with seastar}
2367+
%if 0%{with crimson}
23682368
%files crimson-osd
23692369
%{_bindir}/crimson-osd
23702370
%endif
@@ -2614,7 +2614,7 @@ fi
26142614
%{_bindir}/ceph-debugpack
26152615
%{_bindir}/ceph-dedup-tool
26162616
%{_bindir}/ceph-dedup-daemon
2617-
%if 0%{with seastar}
2617+
%if 0%{with crimson}
26182618
%{_bindir}/crimson-store-nbd
26192619
%endif
26202620
%{_mandir}/man8/ceph-debugpack.8*

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ifneq (,$(findstring WITH_STATIC_LIBSTDCXX,$(CEPH_EXTRA_CMAKE_ARGS)))
1212
# see http://tracker.ceph.com/issues/25209
1313
export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
1414
endif
15-
ifeq (,$(findstring WITH_SEASTAR,$(CEPH_EXTRA_CMAKE_ARGS)))
15+
ifeq (,$(findstring WITH_CRIMSON,$(CEPH_EXTRA_CMAKE_ARGS)))
1616
export CEPH_OSD_BASENAME = ceph-osd
1717
else
1818
export CEPH_OSD_BASENAME = crimson-osd

do_freebsd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ mkdir ${BUILD_DIR}
4949
-D WITH_SYSTEM_NPM=ON \
5050
-D WITH_LTTNG=OFF \
5151
-D WITH_BABELTRACE=OFF \
52-
-D WITH_SEASTAR=OFF \
52+
-D WITH_CRIMSON=OFF \
5353
-D WITH_FUSE=ON \
5454
-D WITH_KRBD=OFF \
5555
-D WITH_XFS=OFF \

doc/dev/crimson/crimson.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Building Crimson
1515

1616
Crimson is not enabled by default. Enable it at build time by running::
1717

18-
$ WITH_SEASTAR=true ./install-deps.sh
19-
$ ./do_cmake.sh -DWITH_SEASTAR=ON
18+
$ WITH_CRIMSON=true ./install-deps.sh
19+
$ ./do_cmake.sh -DWITH_CRIMSON=ON
2020

2121
Please note, `ASan`_ is enabled by default if Crimson is built from a source
2222
cloned using ``git``.

etc/sysctl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
44
set(sysctl_pid_max "kernel.pid_max = 4194304")
55
endif()
66

7-
if(WITH_SEASTAR)
7+
if(WITH_CRIMSON)
88
configure_file(90-crimson-osd.conf.in
99
${CMAKE_CURRENT_SOURCE_DIR}/90-ceph-osd.conf
1010
@ONLY)

install-deps.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ ARCH=$(uname -m)
3232

3333

3434
function munge_ceph_spec_in {
35-
local with_seastar=$1
35+
local with_crimson=$1
3636
shift
3737
local for_make_check=$1
3838
shift
3939
local OUTFILE=$1
4040
sed -e 's/@//g' < ceph.spec.in > $OUTFILE
4141
# http://rpm.org/user_doc/conditional_builds.html
42-
if $with_seastar; then
43-
sed -i -e 's/%bcond_with seastar/%bcond_without seastar/g' $OUTFILE
42+
if $with_crimson; then
43+
sed -i -e 's/%bcond_with crimson/%bcond_without crimson/g' $OUTFILE
4444
fi
4545
if $for_make_check; then
4646
sed -i -e 's/%bcond_with make_check/%bcond_without make_check/g' $OUTFILE
@@ -372,7 +372,7 @@ if [ x$(uname)x = xFreeBSDx ]; then
372372
sysutils/fusefs-libs \
373373
exit
374374
else
375-
[ $WITH_SEASTAR ] && with_seastar=true || with_seastar=false
375+
[ $WITH_CRIMSON ] && with_crimson=true || with_crimson=false
376376
[ $WITH_PMEM ] && with_pmem=true || with_pmem=false
377377
source /etc/os-release
378378
case "$ID" in
@@ -435,15 +435,15 @@ else
435435
if $for_make_check; then
436436
build_profiles+=",pkg.ceph.check"
437437
fi
438-
if $with_seastar; then
438+
if $with_crimson; then
439439
build_profiles+=",pkg.ceph.crimson"
440440
fi
441441
if $with_pmem; then
442442
build_profiles+=",pkg.ceph.pmdk"
443443
fi
444444

445445
ci_debug "for_make_check=$for_make_check"
446-
ci_debug "with_seastar=$with_seastar"
446+
ci_debug "with_crimson=$with_crimson"
447447
ci_debug "with_jaeger=$with_jaeger"
448448
ci_debug "build_profiles=$build_profiles"
449449
ci_debug "Now running 'mk-build-deps' and installing ceph-build-deps package"
@@ -502,7 +502,7 @@ else
502502
if [ "$INSTALL_EXTRA_PACKAGES" ]; then
503503
$SUDO dnf install -y $INSTALL_EXTRA_PACKAGES
504504
fi
505-
munge_ceph_spec_in $with_seastar $for_make_check $DIR/ceph.spec
505+
munge_ceph_spec_in $with_crimson $for_make_check $DIR/ceph.spec
506506
# for python3_pkgversion macro defined by python-srpm-macros, which is required by python3-devel
507507
$SUDO dnf install -y python3-devel
508508
$SUDO $builddepcmd $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out
@@ -520,7 +520,7 @@ else
520520
if [ "$INSTALL_EXTRA_PACKAGES" ]; then
521521
$SUDO $zypp_install $INSTALL_EXTRA_PACKAGES
522522
fi
523-
munge_ceph_spec_in $with_seastar $for_make_check $DIR/ceph.spec
523+
munge_ceph_spec_in $with_crimson $for_make_check $DIR/ceph.spec
524524
$SUDO $zypp_install $(rpmspec -q --buildrequires $DIR/ceph.spec) || exit 1
525525
;;
526526
*)

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ set_target_properties(Boost::MPL PROPERTIES
391391
INTERFACE_COMPILE_DEFINITIONS
392392
"BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS;BOOST_MPL_LIMIT_LIST_SIZE=30")
393393

394-
if(WITH_SEASTAR)
394+
if(WITH_CRIMSON)
395395
find_package(c-ares 1.13.0 QUIET)
396396
if(NOT c-ares_FOUND)
397397
message(STATUS "Could not find c-ares, will build it")

src/auth/AuthSessionHandler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ AuthSessionHandler *get_auth_session_handler(
3131
{
3232

3333
// Should add code to only print the SHA1 hash of the key, unless in secure debugging mode
34-
#ifndef WITH_SEASTAR
34+
#ifndef WITH_CRIMSON
3535
ldout(cct,10) << "In get_auth_session_handler for protocol " << protocol << dendl;
3636
#endif
3737
switch (protocol) {

src/auth/cephx/CephxProtocol.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ bool cephx_verify_authorizer(CephContext *cct, const KeyStore& keys,
526526
// generate a connection secret
527527
connection_secret->resize(connection_secret_required_len);
528528
if (connection_secret_required_len) {
529-
#ifdef WITH_SEASTAR
529+
#ifdef WITH_CRIMSON
530530
std::random_device rd;
531531
std::generate_n(connection_secret->data(),
532532
connection_secret_required_len,

0 commit comments

Comments
 (0)