repo
stringlengths
1
152
file
stringlengths
15
205
code
stringlengths
0
41.6M
file_length
int64
0
41.6M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
90 values
null
ceph-main/src/crimson/crush/CrushLocation.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iosfwd> #include <map> #include <string> #if FMT_VERSION >= 90000 #include <fmt/ostream.h> #endif #include <seastar/core/seastar.hh> namespace crimson::crush { class CrushLocation { public: exp...
884
22.289474
93
h
null
ceph-main/src/crimson/mgr/client.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "client.h" #include <seastar/core/sleep.hh> #include "crimson/common/log.h" #include "crimson/net/Connection.h" #include "crimson/net/Messenger.h" #include "messages/MMgrConfigure.h" #include "messages/MMgrMap....
4,411
24.211429
82
cc
null
ceph-main/src/crimson/mgr/client.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/timer.hh> #include "crimson/common/gated.h" #include "crimson/net/Dispatcher.h" #include "crimson/net/Fwd.h" #include "mon/MgrMap.h" template<typename Message> using Ref = boost::int...
1,908
25.887324
84
h
null
ceph-main/src/crimson/mon/MonClient.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "MonClient.h" #include <random> #include <fmt/ranges.h> #include <seastar/core/future-util.hh> #include <seastar/core/lowres_clock.hh> #include <seastar/core/shared_future.hh> #include <seastar/util/log.hh> #in...
36,898
30.727429
94
cc
null
ceph-main/src/crimson/mon/MonClient.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <memory> #include <vector> #include <seastar/core/future.hh> #include <seastar/core/gate.hh> #include <seastar/core/lowres_clock.hh> #include <seastar/core/shared_ptr.hh> #include <seastar/core/tim...
6,818
30.136986
84
h
null
ceph-main/src/crimson/net/Connection.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
3,853
25.763889
88
h
null
ceph-main/src/crimson/net/Dispatcher.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
2,071
36
100
h
null
ceph-main/src/crimson/net/Errors.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
1,363
25.230769
70
cc
null
ceph-main/src/crimson/net/Errors.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
1,133
20
74
h
null
ceph-main/src/crimson/net/FrameAssemblerV2.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "FrameAssemblerV2.h" #include "Errors.h" #include "SocketConnection.h" #ifdef UNIT_TESTS_BUILT #include "Interceptor.h" #endif using ceph::msgr::v2::FrameAssembler; using ceph::msgr::v2::FrameError; using ce...
13,943
29.247289
106
cc
null
ceph-main/src/crimson/net/FrameAssemblerV2.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include "msg/async/frames_v2.h" #include "msg/async/crypto_onwire.h" #include "msg/async/compression_onwire.h" #include "crimson/common/gated.h" #include "crimson/net/Socket.h" namespace crimson::net { ...
5,163
22.797235
81
h
null
ceph-main/src/crimson/net/Fwd.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
1,446
26.301887
83
h
null
ceph-main/src/crimson/net/Interceptor.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <variant> #include <seastar/core/sharded.hh> #include <seastar/core/sleep.hh> #include "Fwd.h" #include "msg/async/frames_v2.h" namespace crimson::net { enum class custom_bp_t : uint8_t { BANNE...
6,237
34.443182
95
h
null
ceph-main/src/crimson/net/Messenger.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "Messenger.h" #include "SocketMessenger.h" namespace crimson::net { MessengerRef Messenger::create(const entity_name_t& name, const std::string& lname, uint64_t nonce, ...
503
24.2
70
cc
null
ceph-main/src/crimson/net/Messenger.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
3,456
25.389313
87
h
null
ceph-main/src/crimson/net/ProtocolV2.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "ProtocolV2.h" #include <fmt/format.h> #include <fmt/ranges.h> #include "include/msgr.h" #include "include/random.h" #include "msg/msg_fmt.h" #include "crimson/auth/AuthClient.h" #include "crimson/auth/AuthServ...
90,658
37.660554
97
cc
null
ceph-main/src/crimson/net/ProtocolV2.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/shared_future.hh> #include <seastar/core/sleep.hh> #include "io_handler.h" namespace crimson::net { class ProtocolV2 final : public HandshakeListener { using AuthConnectionMetaRef...
8,992
27.015576
101
h
null
ceph-main/src/crimson/net/Socket.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "Socket.h" #include <seastar/core/sleep.hh> #include <seastar/core/when_all.hh> #include <seastar/net/packet.hh> #include "crimson/common/log.h" #include "Errors.h" using crimson::common::local_conf; namespac...
15,839
29.403071
96
cc
null
ceph-main/src/crimson/net/Socket.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/gate.hh> #include <seastar/core/reactor.hh> #include <seastar/core/sharded.hh> #include "include/buffer.h" #include "crimson/common/log.h" #include "Errors.h" #include "Fwd.h" #ifde...
5,090
24.20297
150
h
null
ceph-main/src/crimson/net/SocketConnection.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
5,666
25.985714
75
cc
null
ceph-main/src/crimson/net/SocketConnection.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
5,624
23.141631
94
h
null
ceph-main/src/crimson/net/SocketMessenger.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
15,763
31.436214
89
cc
null
ceph-main/src/crimson/net/SocketMessenger.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
5,289
26.409326
93
h
null
ceph-main/src/crimson/net/chained_dispatchers.cc
#include "crimson/common/log.h" #include "crimson/net/chained_dispatchers.h" #include "crimson/net/Connection.h" #include "crimson/net/Dispatcher.h" #include "msg/Message.h" namespace { seastar::logger& logger() { return crimson::get_logger(ceph_subsys_ms); } } namespace crimson::net { seastar::future<> Chai...
2,706
26.343434
88
cc
null
ceph-main/src/crimson/net/chained_dispatchers.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/smp.hh> #include "Fwd.h" #include "crimson/common/log.h" namespace crimson::net { class Dispatcher; class ChainedDispatchers { public: void assign(const dispatchers_t& _dispat...
960
23.641026
94
h
null
ceph-main/src/crimson/net/io_handler.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "io_handler.h" #include "auth/Auth.h" #include "crimson/common/formatter.h" #include "crimson/common/log.h" #include "crimson/net/Errors.h" #include "crimson/net/chained_dispatchers.h" #include "crimson/net/Soc...
41,451
32.082203
92
cc
null
ceph-main/src/crimson/net/io_handler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/shared_future.hh> #include <seastar/util/later.hh> #include "crimson/common/gated.h" #include "Fwd.h" #include "SocketConnection.h" #include "FrameAssemblerV2.h" namespace crimson::n...
15,166
23.863934
104
h
null
ceph-main/src/crimson/os/futurized_collection.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "osd/osd_types.h" namespace crimson::os { class FuturizedStore; class Fut...
915
23.105263
70
h
null
ceph-main/src/crimson/os/futurized_store.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "futurized_store.h" #include "cyanstore/cyan_store.h" #ifdef WITH_BLUESTORE #include "alienstore/alien_store.h" #endif #include "seastore/seastore.h" namespace crimson::os { std::unique_ptr<FuturizedStore> Futu...
971
25.27027
70
cc
null
ceph-main/src/crimson/os/futurized_store.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> #include <map> #include <optional> #include <vector> #include <seastar/core/future.hh> #include "os/Transaction.h" #include "crimson/common/smp_helpers.h" #include "crimson/common/smp_hel...
5,948
29.352041
90
h
null
ceph-main/src/crimson/os/alienstore/alien_collection.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "os/ObjectStore.h" #include "crimson/os/futurized_collection.h" #include "crimson/os/futurized_store.h" #include "alien_store.h" namespace crimson::os { class AlienCollection final : public Futur...
1,233
29.85
72
h
null
ceph-main/src/crimson/os/alienstore/alien_log.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "alien_log.h" #include "log/SubsystemMap.h" #include <seastar/core/alien.hh> #include "crimson/common/log.h" namespace ceph::logging { CnLog::CnLog(const SubsystemMap *s, seastar::alien::instance& inst, unsigned...
752
21.147059
83
cc
null
ceph-main/src/crimson/os/alienstore/alien_log.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef ALIEN_LOG_H #define ALIEN_LOG_H #include "log/Log.h" namespace ceph { namespace logging { class SubsystemMap; } } namespace seastar::alien { class instance; } namespace ceph::logging { class CnLog : public ce...
565
16.6875
79
h
null
ceph-main/src/crimson/os/alienstore/alien_store.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "alien_collection.h" #include "alien_store.h" #include "alien_log.h" #include <algorithm> #include <iterator> #include <map> #include <string_view> #include <boost/algorithm/string/trim.hpp> #include <boost/iter...
18,895
29.428341
98
cc
null
ceph-main/src/crimson/os/alienstore/alien_store.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <seastar/core/future.hh> #include <seastar/core/shared_mutex.hh> #include "common/ceph_context.h" #include "os/ObjectStore.h" #include "osd/osd_types.h" #include "crimson/os/alienstore...
4,743
34.402985
80
h
null
ceph-main/src/crimson/os/alienstore/semaphore.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <semaphore.h> #include <ctime> #include <cerrno> #include <exception> #include <chrono> namespace crimson { // an implementation of std::counting_semaphore<> in C++17 using the POSIX //...
2,219
23.395604
93
h
null
ceph-main/src/crimson/os/alienstore/thread_pool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include "thread_pool.h" #include <chrono> #include <pthread.h> #include "include/ceph_assert.h" #include "crimson/common/config_proxy.h" using crimson::common::local_conf; namespace crimson::os { ThreadP...
2,520
24.464646
92
cc
null
ceph-main/src/crimson/os/alienstore/thread_pool.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <atomic> #include <condition_variable> #include <tuple> #include <type_traits> #include <boost/lockfree/queue.hpp> #include <boost/optional.hpp> #include <seastar/core/future.hh> #include...
5,335
27.843243
102
h
null
ceph-main/src/crimson/os/cyanstore/cyan_collection.cc
#include "cyan_collection.h" #include "cyan_object.h" using std::make_pair; namespace crimson::os { Collection::Collection(const coll_t& c) : FuturizedCollection{c} {} Collection::~Collection() = default; Collection::ObjectRef Collection::create_object() const { return new crimson::os::Object; } Collection::...
1,537
18.468354
70
cc
null
ceph-main/src/crimson/os/cyanstore/cyan_collection.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> #include <unordered_map> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include "include/buffer.h" #include "osd/osd_types.h" #include "crimson/o...
1,446
26.826923
75
h
null
ceph-main/src/crimson/os/cyanstore/cyan_object.cc
#include "cyan_object.h" #include "include/encoding.h" namespace crimson::os { size_t Object::get_size() const { return data.length(); } ceph::bufferlist Object::read(uint64_t offset, uint64_t len) { bufferlist ret; ret.substr_of(data, offset, len); return ret; } int Object::write(uint64_t offset, const buf...
1,755
18.511111
68
cc
null
ceph-main/src/crimson/os/cyanstore/cyan_object.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <cstddef> #include <map> #include <string> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include "include/buffer.h" namespace crimson::os { struct Object...
1,198
25.065217
70
h
null
ceph-main/src/crimson/os/cyanstore/cyan_store.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "cyan_store.h" #include <boost/algorithm/string/trim.hpp> #include <fmt/format.h> #include <fmt/ostream.h> #include "common/safe_io.h" #include "os/Transaction.h" #include "crimson/common/buffer_io.h" #include...
25,327
25.577125
94
cc
null
ceph-main/src/crimson/os/cyanstore/cyan_store.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> #include <unordered_map> #include <map> #include <typeinfo> #include <vector> #include <optional> #include <seastar/core/future.hh> #include <seastar/core/future-util.hh> #include "osd/os...
6,408
28.131818
82
h
null
ceph-main/src/crimson/os/seastore/async_cleaner.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <fmt/chrono.h> #include <seastar/core/metrics.hh> #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/async_cleaner.h" #include "crimson/os/seastore/backref_manager.h" #include "crimson/os/se...
58,318
31.078658
88
cc
null
ceph-main/src/crimson/os/seastore/async_cleaner.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/intrusive/set.hpp> #include <seastar/core/metrics_types.hh> #include "common/ceph_time.h" #include "osd/osd_types.h" #include "crimson/os/seastore/cached_extent.h" #include "crimson/os/sea...
47,920
26.196935
121
h
null
ceph-main/src/crimson/os/seastore/backref_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/cache.h" #include "crimson/os/seastore/backref_manager.h" #include "crimson/os/seastore/backref/btree_backref_manager.h" namespace crimson::os::seastore { BackrefManagerRef create_backref_m...
470
23.789474
70
cc
null
ceph-main/src/crimson/os/seastore/backref_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/cache.h" #include "crimson/os/seastore/cached_extent.h" #include "crimson/os/seastore/transaction.h" namespace crimson::os::seastore { /** * Abstract interface for managing b...
4,580
28.365385
87
h
null
ceph-main/src/crimson/os/seastore/cache.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/cache.h" #include <sstream> #include <string_view> #include <seastar/core/metrics.hh> #include "crimson/os/seastore/logging.h" #include "crimson/common/config_proxy.h" #include "crimson/os...
66,429
31.420693
92
cc
null
ceph-main/src/crimson/os/seastore/cache.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include "seastar/core/shared_future.hh" #include "include/buffer.h" #include "crimson/common/errorator.h" #include "crimson/os/seastore/cached_extent.h" #include "crimson/os/seastore/...
53,387
30.66548
99
h
null
ceph-main/src/crimson/os/seastore/cached_extent.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/cached_extent.h" #include "crimson/os/seastore/transaction.h" #include "crimson/common/log.h" #include "crimson/os/seastore/btree/fixed_kv_node.h" namespace { [[maybe_unused]] seastar::l...
4,805
26.152542
79
cc
null
ceph-main/src/crimson/os/seastore/cached_extent.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <boost/intrusive/list.hpp> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include "seastar/core/shared_future.hh" #include "include/b...
36,763
27.744332
106
h
null
ceph-main/src/crimson/os/seastore/collection_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab // #include "crimson/os/seastore/collection_manager.h" #include "crimson/os/seastore/transaction_manager.h" #include "crimson/os/seastore/collection_manager/flat_collection_manager.h" namespace crimson::os::seastore::coll...
494
32
77
cc
null
ceph-main/src/crimson/os/seastore/collection_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/future.hh> #include "osd/osd_types.h" #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/transaction_manager.h" namespace crimson::os::seastore { struct ...
2,088
23.576471
70
h
null
ceph-main/src/crimson/os/seastore/device.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "device.h" #include "segment_manager.h" #include "random_block_manager.h" #include "random_block_manager/rbm_device.h" namespace crimson::os::seastore { std::ostream& operator<<(std::ostream& out, const devi...
1,359
25.153846
79
cc
null
ceph-main/src/crimson/os/seastore/device.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <memory> #include "include/buffer_fwd.h" #include "crimson/common/errorator.h" #include "crimson/os/seastore/seastore_types.h" namespace crimson::os::seastore { using magic_t = uint64_t; stru...
4,399
24
102
h
null
ceph-main/src/crimson/os/seastore/extent_placement_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include "crimson/os/seastore/extent_placement_manager.h" #include "crimson/common/config_proxy.h" #include "crimson/os/seastore/logging.h" SET_SUBSYS(seastore_epm); namespace crimson::os::seastore { Segme...
27,189
32.609394
89
cc
null
ceph-main/src/crimson/os/seastore/extent_placement_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include "seastar/core/gate.hh" #include "crimson/os/seastore/async_cleaner.h" #include "crimson/os/seastore/cached_extent.h" #include "crimson/os/seastore/journal/segment_allocator.h" #include ...
27,137
28.626638
97
h
null
ceph-main/src/crimson/os/seastore/extentmap_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <experimental/iterator> #include <iostream> #include "crimson/os/seastore/transaction_manager.h" #include "crimson/os/seastore/extentmap_manager.h" #include "crimson/os/seastore/extentmap_manager/btree/btree_exte...
997
28.352941
95
cc
null
ceph-main/src/crimson/os/seastore/journal.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal.h" #include "journal/segmented_journal.h" #include "journal/circular_bounded_journal.h" namespace crimson::os::seastore::journal { JournalRef make_segmented( SegmentProvider &provider, JournalTrimm...
628
23.192308
73
cc
null
ceph-main/src/crimson/os/seastore/journal.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <memory> #include "crimson/os/seastore/ordering_handle.h" #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/segment_seq_allocator.h" namespace crimson::os::seastore { ...
3,215
25.146341
71
h
null
ceph-main/src/crimson/os/seastore/lba_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/lba_manager.h" #include "crimson/os/seastore/lba_manager/btree/btree_lba_manager.h" namespace crimson::os::seastore { LBAManager::update_mappings_ret LBAManager::update_mappings( Transact...
822
24.71875
70
cc
null
ceph-main/src/crimson/os/seastore/lba_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "include/ceph_assert.h" #include "include/buffer_fwd....
5,641
26.125
76
h
null
ceph-main/src/crimson/os/seastore/logging.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <fmt/format.h> #include "crimson/common/log.h" #define LOGT(level_, MSG, t, ...) \ LOCAL_LOGGER.log(level_, "{} trans.{} {}: " MSG, (void*)&t, \ (t).get_trans_id(), FNAME , ##__VA_ARGS__) #d...
1,259
39.645161
90
h
null
ceph-main/src/crimson/os/seastore/object_data_handler.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <utility> #include <functional> #include "crimson/common/log.h" #include "crimson/os/seastore/object_data_handler.h" namespace { seastar::logger& logger() { return crimson::get_logger(ceph_subsys_seastor...
45,422
30.347826
102
cc
null
ceph-main/src/crimson/os/seastore/object_data_handler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <limits> #include "include/buffer.h" #include "test/crimson/seastore/test_block.h" // TODO #include "crimson/os/seastore/onode.h" #include "crimson/os/seastore/transaction_man...
3,997
27.15493
102
h
null
ceph-main/src/crimson/os/seastore/omap_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <experimental/iterator> #include <iostream> #include "crimson/os/seastore/transaction_manager.h" #include "crimson/os/seastore/omap_manager.h" #include "crimson/os/seastore/omap_manager/btree/btree_omap_manager.h...
1,225
27.511628
104
cc
null
ceph-main/src/crimson/os/seastore/omap_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "crimson/osd/exceptions.h" #include "crimson/os/seast...
6,586
30.218009
91
h
null
ceph-main/src/crimson/os/seastore/onode.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "onode.h" #include <iostream> namespace crimson::os::seastore { std::ostream& operator<<(std::ostream &out, const Onode &rhs) { auto &layout = rhs.get_layout(); return out << "Onode(" << "siz...
389
19.526316
72
cc
null
ceph-main/src/crimson/os/seastore/onode.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iosfwd> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include "include/byteorder.h" #include "seastore_types.h" namespace crimson::os::seastore { st...
2,578
27.977528
91
h
null
ceph-main/src/crimson/os/seastore/onode_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "include/buffer_fwd.h" #include "include/ceph_assert...
2,691
29.942529
79
h
null
ceph-main/src/crimson/os/seastore/ordering_handle.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/shared_mutex.hh> #include "crimson/common/operation.h" #include "crimson/osd/osd_operation.h" namespace crimson::os::seastore { struct WritePipeline { struct ReserveProjectedUsage...
5,404
28.697802
90
h
null
ceph-main/src/crimson/os/seastore/random_block_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/random_block_manager.h" #include "crimson/os/seastore/random_block_manager/nvme_block_device.h" #include "crimson/os/seastore/random_block_manager/rbm...
639
28.090909
71
cc
null
ceph-main/src/crimson/os/seastore/random_block_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iosfwd> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include "include/ceph_assert.h" #include "crimson/os/seastore/se...
5,353
29.248588
107
h
null
ceph-main/src/crimson/os/seastore/randomblock_manager_group.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <set> #include "crimson/common/errorator.h" #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/random_block_manager.h" #include "crimson/os/seastore/random_bl...
1,787
23.833333
72
h
null
ceph-main/src/crimson/os/seastore/root_block.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/root_block.h" #include "crimson/os/seastore/lba_manager/btree/lba_btree_node.h" #include "crimson/os/seastore/backref/backref_tree_node.h" namespace crimson::os::seastore { void RootBlock::...
884
30.607143
71
cc
null
ceph-main/src/crimson/os/seastore/root_block.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/cached_extent.h" namespace crimson::os::seastore { /** * RootBlock * * Holds the physical addresses of all metadata roots. * In-memory values may be * - absolute: referen...
3,419
30.090909
96
h
null
ceph-main/src/crimson/os/seastore/seastore.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "seastore.h" #include <algorithm> #include <boost/algorithm/string/trim.hpp> #include <fmt/format.h> #include <fmt/ostream.h> #include <seastar/core/file.hh> #include <seastar/core/fstream.hh> #include <seasta...
60,842
28.40696
85
cc
null
ceph-main/src/crimson/os/seastore/seastore.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> #include <unordered_map> #include <map> #include <typeinfo> #include <vector> #include <optional> #include <seastar/core/future.hh> #include <seastar/core/metrics_types.hh> #include "incl...
15,257
27.897727
95
h
null
ceph-main/src/crimson/os/seastore/seastore_types.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/seastore_types.h" #include "crimson/common/log.h" namespace { seastar::logger& journal_logger() { return crimson::get_logger(ceph_subsys_seastore_journal); } } namespace crimson::os::se...
24,803
27.642032
82
cc
null
ceph-main/src/crimson/os/seastore/seastore_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <limits> #include <numeric> #include <optional> #include <iostream> #include <vector> #include <boost/core/ignore_unused.hpp> #include <seastar/core/lowres_clock.hh> #include "include/byteorder.h"...
62,336
27.980474
112
h
null
ceph-main/src/crimson/os/seastore/segment_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/segment_manager.h" #include "crimson/os/seastore/segment_manager/block.h" #include "crimson/os/seastore/logging.h" #ifdef HAVE_ZNS #include "crimson/os/seastore/segment_manager/zbd.h" SET_SU...
2,743
24.407407
78
cc
null
ceph-main/src/crimson/os/seastore/segment_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iosfwd> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <boost/iterator/counting_iterator.hpp> #include <seastar/core/future.hh> #include "include...
6,414
28.562212
108
h
null
ceph-main/src/crimson/os/seastore/segment_manager_group.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include "crimson/os/seastore/segment_manager_group.h" #include "crimson/os/seastore/logging.h" SET_SUBSYS(seastore_journal); namespace crimson::os::seastore { SegmentManagerGroup::read_segment_tail_ret Se...
13,652
35.701613
96
cc
null
ceph-main/src/crimson/os/seastore/segment_manager_group.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <set> #include "crimson/common/errorator.h" #include "crimson/os/seastore/seastore_types.h" #include "crimson/os/seastore/segment_manager.h" namespace crimson::os::seastore { class Se...
5,917
32.247191
85
h
null
ceph-main/src/crimson/os/seastore/segment_seq_allocator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/seastore_types.h" namespace crimson::os::seastore { class AsyncCleaner; } namespace crimson::os::seastore::journal { class SegmentedJo...
1,222
22.980392
70
h
null
ceph-main/src/crimson/os/seastore/transaction.cc
#include "transaction.h" #include "crimson/common/interruptible_future.h" namespace crimson::interruptible { template thread_local interrupt_cond_t<::crimson::os::seastore::TransactionConflictCondition> interrupt_cond<::crimson::os::seastore::TransactionConflictCondition>; }
277
29.888889
84
cc
null
ceph-main/src/crimson/os/seastore/transaction.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <boost/intrusive/list.hpp> #include "crimson/common/log.h" #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/ordering_handle.h" #include "crimson/os/seasto...
17,815
26.24159
96
h
null
ceph-main/src/crimson/os/seastore/transaction_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab expandtab #include "include/denc.h" #include "include/intarith.h" #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/transaction_manager.h" #include "crimson/os/seastore/journal.h" #include "crimson/o...
25,265
32.244737
86
cc
null
ceph-main/src/crimson/os/seastore/transaction_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <optional> #include <vector> #include <utility> #include <functional> #include <boost/intrusive_ptr.hpp> #include <boost/iterator/counting_iterator.hpp> #include <boost/smart_pt...
24,436
28.764921
89
h
null
ceph-main/src/crimson/os/seastore/backref/backref_tree_node.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/backref/backref_tree_node.h" namespace crimson::os::seastore::backref { std::ostream& operator<<(std::ostream &out, const backref_map_val_t& val) { return out << "backref_map_val_t(" ...
416
26.8
75
cc
null
ceph-main/src/crimson/os/seastore/backref/backref_tree_node.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/btree/fixed_kv_node.h" namespace crimson::os::seastore::backref { using backref_node_meta_t = fixed_kv_node_meta_t<paddr_t>; using backref_node_meta_le_t = fixed_kv_node_meta_...
3,877
27.101449
115
h
null
ceph-main/src/crimson/os/seastore/backref/btree_backref_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/backref/btree_backref_manager.h" SET_SUBSYS(seastore_backref); namespace crimson::os::seastore { template<> Transaction::tree_stats_t& get_tree_stats< crimson::os::seastore::backref::Bac...
19,198
29.916264
89
cc
null
ceph-main/src/crimson/os/seastore/backref/btree_backref_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/os/seastore/backref_manager.h" #include "crimson/os/seastore/backref/backref_tree_node.h" #include "crimson/os/seastore/btree/fixed_kv_btree.h" namespace crimson::os::seastore::backref { ...
2,677
21.888889
71
h
null
ceph-main/src/crimson/os/seastore/btree/btree_range_pin.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/btree/btree_range_pin.h" #include "crimson/os/seastore/btree/fixed_kv_node.h" namespace crimson::os::seastore { template <typename key_t, typename val_t> get_child_ret_t<LogicalCachedExtent...
804
27.75
70
cc
null
ceph-main/src/crimson/os/seastore/btree/btree_range_pin.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/intrusive/set.hpp> #include "crimson/common/log.h" #include "crimson/os/seastore/cache.h" #include "crimson/os/seastore/cached_extent.h" #include "crimson/os/seastore/seastore_types.h" nam...
5,120
23.270142
94
h
null
ceph-main/src/crimson/os/seastore/btree/fixed_kv_btree.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <boost/container/static_vector.hpp> #include <sys/mman.h> #include <memory> #include <string.h> #include "crimson/os/seastore/logging.h" #include "crimson/os/seastore/cache.h" #include...
69,399
29.926916
105
h
null
ceph-main/src/crimson/os/seastore/btree/fixed_kv_node.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/os/seastore/btree/fixed_kv_node.h" namespace crimson::os::seastore { bool is_valid_child_ptr(ChildableCachedExtent* child) { return child != nullptr && child != RESERVATION_PTR; } } // namespace cri...
339
25.153846
70
cc
null
ceph-main/src/crimson/os/seastore/btree/fixed_kv_node.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <sys/mman.h> #include <memory> #include <string.h> #include "include/buffer.h" #include "crimson/common/fixed_kv_node_layout.h" #include "crimson/common/errorator.h" #include "crimson/os/seastore...
37,347
29.588043
84
h
null
ceph-main/src/crimson/os/seastore/collection_manager/collection_flat_node.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/buffer.h" #include "osd/osd_types.h" #include "crimson/os/seastore/transaction_manager.h" #include "crimson/os/seastore/collection_manager/collection_flat_node.h" namespace { seastar::logger& logger()...
3,052
23.821138
76
cc