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/osd/osd_meta.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <map> #include <string> #include <seastar/core/future.hh> #include "osd/osd_types.h" #include "crimson/os/futurized_collection.h" #include "crimson/os/futurized_store.h" namespace ceph::os { clas...
1,698
26.852459
82
h
null
ceph-main/src/crimson/osd/osd_operation.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "osd_operation.h" #include "common/Formatter.h" #include "crimson/common/log.h" #include "crimson/osd/osd_operations/client_request.h" namespace { seastar::logger& logger() { return crimson::get_logger(cep...
7,522
31.995614
111
cc
null
ceph-main/src/crimson/osd/osd_operation.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/common/operation.h" #include "crimson/osd/pg_interval_interrupt_condition.h" #include "crimson/osd/scheduler/scheduler.h" #include "osd/osd_types.h" namespace crimson::os::seastore { tem...
7,670
26.202128
85
h
null
ceph-main/src/crimson/osd/osd_operation_external_tracking.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/osd/osd.h" #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operations/background_recovery.h" #include "crimson/osd/osd_operations/client_request.h" #include "crimson/osd/osd_...
10,245
32.266234
88
h
null
ceph-main/src/crimson/osd/osdmap_gate.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/common/exception.h" #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/shard_services.h" #include "common/Formatter.h" namespace { seastar::logger& logger() { return crimson::get_logger(ce...
2,578
28.643678
80
cc
null
ceph-main/src/crimson/osd/osdmap_gate.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <functional> #include <map> #include <optional> #include <seastar/core/future.hh> #include <seastar/core/shared_future.hh> #include "include/types.h" #include "crimson/osd/osd_operation.h" namesp...
2,053
23.452381
73
h
null
ceph-main/src/crimson/osd/osdmap_service.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "include/types.h" #include "osd/OSDMap.h" class OSDMap; class OSDMapService { public: using cached_map_t = OSDMapRef; using local_cached_map_t = LocalOSDMapRef; virtual ~OSDMapService() = d...
508
22.136364
70
h
null
ceph-main/src/crimson/osd/pg.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include "pg.h" #include <functional> #include <boost/range/adaptor/filtered.hpp> #include <boost/range/adaptor/map.hpp> #include <boost/range/adaptor/transformed.hpp> #include <boost/range/algorithm/copy.hp...
50,516
31.718264
92
cc
null
ceph-main/src/crimson/osd/pg.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <memory> #include <optional> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include <seastar/core/shared_future.hh> #include "common/dout.h" #in...
23,713
28.385378
84
h
null
ceph-main/src/crimson/osd/pg_activation_blocker.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include "crimson/osd/pg.h" #include "crimson/osd/pg_activation_blocker.h" namespace crimson::osd { void PGActivationBlocker::dump_detail(Formatter *f) const { f->dump_stream("pgid") << pg->get_pgid(); } ...
821
21.216216
81
cc
null
ceph-main/src/crimson/osd/pg_activation_blocker.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_future.hh> #include "crimson/common/operation.h" #include "crimson/osd/osd_operation.h" namespace crimson::osd { class PG; clas...
815
21.666667
75
h
null
ceph-main/src/crimson/osd/pg_backend.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "pg_backend.h" #include <charconv> #include <optional> #include <boost/range/adaptor/filtered.hpp> #include <boost/range/adaptor/transformed.hpp> #include <boost/range/algorithm/copy.hpp> #include <fmt/format.h>...
58,718
31.405629
88
cc
null
ceph-main/src/crimson/osd/pg_backend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <map> #include <memory> #include <string> #include <boost/container/flat_set.hpp> #include "include/rados.h" #include "crimson/os/futurized_store.h" #include "crimson/os/futurized_collection.h" #i...
14,909
32.207127
84
h
null
ceph-main/src/crimson/osd/pg_interval_interrupt_condition.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "pg_interval_interrupt_condition.h" #include "pg.h" #include "crimson/common/log.h" SET_SUBSYS(osd); namespace crimson::osd { IOInterruptCondition::IOInterruptCondition(Ref<PG>& pg) : pg(pg), e(pg->get_osdm...
1,088
23.75
81
cc
null
ceph-main/src/crimson/osd/pg_interval_interrupt_condition.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include "include/types.h" #include "crimson/common/errorator.h" #include "crimson/common/exception.h" #include "crimson/common/type_helpers.h" namespace crimson::osd { class PG; class IOInter...
1,445
24.368421
72
h
null
ceph-main/src/crimson/osd/pg_map.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/osd/pg_map.h" #include "crimson/osd/pg.h" #include "common/Formatter.h" namespace { seastar::logger& logger() { return crimson::get_logger(ceph_subsys_osd); } } using std::make_pair; namespac...
2,470
22.990291
75
cc
null
ceph-main/src/crimson/osd/pg_map.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <map> #include <algorithm> #include <seastar/core/future.hh> #include <seastar/core/shared_future.hh> #include "include/types.h" #include "crimson/common/type_helpers.h" #include "crimson/common/s...
6,427
30.821782
86
h
null
ceph-main/src/crimson/osd/pg_meta.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "pg_meta.h" #include <string_view> #include "crimson/os/futurized_collection.h" #include "crimson/os/futurized_store.h" using std::string; using std::string_view; // prefix pgmeta_oid keys with _ so that PGLog...
3,325
28.963964
81
cc
null
ceph-main/src/crimson/osd/pg_meta.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <tuple> #include <seastar/core/future.hh> #include "osd/osd_types.h" #include "crimson/os/futurized_store.h" /// PG related metadata class PGMeta { crimson::os::FuturizedStore::Shard& store; co...
516
23.619048
70
h
null
ceph-main/src/crimson/osd/pg_recovery.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <fmt/format.h> #include <fmt/ostream.h> #include <fmt/ranges.h> #include "crimson/common/type_helpers.h" #include "crimson/osd/backfill_facades.h" #include "crimson/osd/osd_operations/background_recovery.h" #inc...
19,003
32.340351
102
cc
null
ceph-main/src/crimson/osd/pg_recovery.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 "crimson/osd/backfill_state.h" #include "crimson/osd/pg_interval_interrupt_condition.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/pg_recovery_li...
3,761
30.613445
73
h
null
ceph-main/src/crimson/osd/pg_recovery_listener.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 "common/hobject.h" #include "include/types.h" #include "osd/osd_types.h" namespace crimson::osd { class ShardServices; }; class RecoveryBackend; class PGRecove...
1,286
31.175
83
h
null
ceph-main/src/crimson/osd/pg_shard_manager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/osd/pg_shard_manager.h" #include "crimson/osd/pg.h" namespace { seastar::logger& logger() { return crimson::get_logger(ceph_subsys_osd); } } namespace crimson::osd { seastar::future<> PGShardM...
3,164
28.036697
78
cc
null
ceph-main/src/crimson/osd/pg_shard_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 <seastar/core/shared_future.hh> #include <seastar/core/sharded.hh> #include "crimson/osd/shard_services.h" #include "crimson/osd/pg_map.h" namespace crimson::os {...
13,064
32.586118
92
h
null
ceph-main/src/crimson/osd/recovery_backend.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <fmt/format.h> #include "crimson/common/exception.h" #include "crimson/osd/recovery_backend.h" #include "crimson/osd/pg.h" #include "crimson/osd/pg_backend.h" #include "crimson/osd/osd_operations/background_reco...
10,747
31.668693
93
cc
null
ceph-main/src/crimson/osd/recovery_backend.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 "crimson/common/type_helpers.h" #include "crimson/os/futurized_store.h" #include "crimson/os/futurized_collection.h" #include "crimson/osd/pg_interval_interrupt_co...
7,161
29.606838
79
h
null
ceph-main/src/crimson/osd/replicated_backend.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "replicated_backend.h" #include "messages/MOSDRepOpReply.h" #include "crimson/common/exception.h" #include "crimson/common/log.h" #include "crimson/os/futurized_store.h" #include "crimson/osd/shard_services.h" ...
6,094
33.828571
93
cc
null
ceph-main/src/crimson/osd/replicated_backend.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 <seastar/core/future.hh> #include <seastar/core/weak_ptr.hh> #include "include/buffer_fwd.h" #include "osd/osd_types.h" #include "acked_peers.h" #include "pg_back...
2,109
33.032258
82
h
null
ceph-main/src/crimson/osd/replicated_recovery_backend.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include <fmt/format.h> #include <fmt/ostream.h> #include <seastar/core/future.hh> #include <seastar/core/do_with.hh> #include "crimson/osd/pg.h" #include "crimson/osd/pg_backend.h" #include "osd/osd_types_fm...
44,916
36.968724
100
cc
null
ceph-main/src/crimson/osd/replicated_recovery_backend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/common/interruptible_future.h" #include "crimson/osd/pg_interval_interrupt_condition.h" #include "crimson/osd/recovery_backend.h" #include "messages/MOSDPGPull.h" #include "messages/MOSDPG...
5,714
32.617647
77
h
null
ceph-main/src/crimson/osd/shard_services.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <boost/smart_ptr/make_local_shared.hpp> #include "crimson/osd/shard_services.h" #include "messages/MOSDAlive.h" #include "messages/MOSDMap.h" #include "messages/MOSDPGCreated.h" #include "messages/MOSDPGTemp.h"...
22,449
28.461942
85
cc
null
ceph-main/src/crimson/osd/shard_services.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 <boost/intrusive_ptr.hpp> #include <seastar/core/future.hh> #include "include/common_fwd.h" #include "osd_operation.h" #include "msg/MessageRef.h" #include "crimson/common/except...
17,439
28.509306
106
h
null
ceph-main/src/crimson/osd/state.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string_view> #include <ostream> #include <seastar/core/shared_future.hh> class OSDMap; namespace crimson::osd { // seastar::sharded puts start_single on core 0 constexpr core_id_t PRIMARY_CORE ...
3,658
26.931298
80
h
null
ceph-main/src/crimson/osd/stop_signal.h
/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License. * * You may ...
2,412
27.72619
92
h
null
ceph-main/src/crimson/osd/watch.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <algorithm> #include <boost/range/adaptor/transformed.hpp> #include <boost/range/algorithm_ext/insert.hpp> #include "crimson/osd/watch.h" #include "crimson/osd/osd_operations/internal_client_request.h" #includ...
10,816
29.470423
97
cc
null
ceph-main/src/crimson/osd/watch.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iterator> #include <map> #include <set> #include <seastar/core/shared_ptr.hh> #include "crimson/net/Connection.h" #include "crimson/osd/object_context.h" #include "crimson/osd/pg.h" #include "inc...
7,146
26.809339
92
h
null
ceph-main/src/crimson/osd/osd_operations/background_recovery.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <seastar/core/future.hh> #include <seastar/core/sleep.hh> #include "messages/MOSDOp.h" #include "crimson/osd/pg.h" #include "crimson/osd/shard_services.h" #include "common/Formatter.h" #include "crimson/osd/osd...
5,825
27.009615
81
cc
null
ceph-main/src/crimson/osd/osd_operations/background_recovery.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/statechart/event_base.hpp> #include "crimson/net/Connection.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/recovery_backend.h" #include "crimson/common/type_helpers.h" #incl...
3,950
26.248276
107
h
null
ceph-main/src/crimson/osd/osd_operations/client_request.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include "messages/MOSDOp.h" #include "messages/MOSDOpReply.h" #include "crimson/common/exception.h" #include "crimson/osd/pg.h" #include "crimson/osd/osd.h" #include "common/Formatter.h" #include "crimson/os...
12,887
32.131105
85
cc
null
ceph-main/src/crimson/osd/osd_operations/client_request.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 <boost/intrusive/list.hpp> #include <boost/intrusive_ptr.hpp> #include "osd/osd_op_util.h" #include "crimson/net/Connection.h" #include "crimson/osd/object_contex...
9,103
31.283688
91
h
null
ceph-main/src/crimson/osd/osd_operations/client_request_common.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include "crimson/osd/osd_operations/client_request_common.h" #include "crimson/osd/pg.h" #include "crimson/osd/osd_operations/background_recovery.h" namespace { seastar::logger& logger() { return crims...
2,027
30.2
84
cc
null
ceph-main/src/crimson/osd/osd_operations/client_request_common.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/common/operation.h" #include "crimson/common/type_helpers.h" #include "crimson/osd/osd_operation.h" namespace crimson::osd { struct CommonClientRequest { static InterruptibleOperation::...
539
24.714286
70
h
null
ceph-main/src/crimson/osd/osd_operations/internal_client_request.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #include <seastar/core/future.hh> #include "crimson/osd/osd_operations/internal_client_request.h" namespace { seastar::logger& logger() { return crimson::get_logger(ceph_subsys_osd); } } namespace c...
4,159
30.755725
78
cc
null
ceph-main/src/crimson/osd/osd_operations/internal_client_request.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/common/type_helpers.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/client_request_common.h" #include "crimson/osd/osd_operations/common/pg_pipeline.h" #inclu...
1,855
25.898551
99
h
null
ceph-main/src/crimson/osd/osd_operations/logmissing_request.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "logmissing_request.h" #include "common/Formatter.h" #include "crimson/osd/osd.h" #include "crimson/osd/osd_connection_priv.h" #include "crimson/osd/osd_operation_external_tracking.h" #include "crimson/osd/pg.h...
1,771
24.681159
72
cc
null
ceph-main/src/crimson/osd/osd_operations/logmissing_request.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/net/Connection.h" #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/client_request.h" #include "crimson/osd/pg_map.h" #include...
2,211
26.65
95
h
null
ceph-main/src/crimson/osd/osd_operations/logmissing_request_reply.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "logmissing_request_reply.h" #include "common/Formatter.h" #include "crimson/osd/osd.h" #include "crimson/osd/osd_connection_priv.h" #include "crimson/osd/osd_operation_external_tracking.h" #include "crimson/os...
1,794
25.014493
70
cc
null
ceph-main/src/crimson/osd/osd_operations/logmissing_request_reply.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/net/Connection.h" #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/client_request.h" #include "crimson/osd/pg_map.h" #include...
2,252
27.1625
100
h
null
ceph-main/src/crimson/osd/osd_operations/osdop_params.h
#pragma once #include "messages/MOSDOp.h" #include "osd/osd_types.h" #include "crimson/common/type_helpers.h" // The fields in this struct are parameters that may be needed in multiple // level of processing. I inclosed all those parameters in this struct to // avoid passing each of them as a method parameter. struct...
627
26.304348
74
h
null
ceph-main/src/crimson/osd/osd_operations/peering_event.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <seastar/core/future.hh> #include <seastar/core/sleep.hh> #include "messages/MOSDPGLog.h" #include "common/Formatter.h" #include "crimson/osd/pg.h" #include "crimson/osd/osd.h" #include "crimson/osd/osd_operati...
5,487
27.732984
78
cc
null
ceph-main/src/crimson/osd/osd_operations/peering_event.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/future.hh> #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operation.h" #include "osd/osd_types.h" #include "osd/PGPeeringEvent.h" #include "osd/Pee...
5,450
25.206731
100
h
null
ceph-main/src/crimson/osd/osd_operations/pg_advance_map.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <seastar/core/future.hh> #include "include/types.h" #include "common/Formatter.h" #include "crimson/osd/pg.h" #include "crimson/osd/osdmap_service.h" #include "crimson/osd/shard_services.h" #include "crimson/osd...
3,601
26.496183
70
cc
null
ceph-main/src/crimson/osd/osd_operations/pg_advance_map.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/future.hh> #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/peering_event.h" #include "osd/osd_types.h" #include "crimson/common/type_he...
1,325
20.387097
90
h
null
ceph-main/src/crimson/osd/osd_operations/recovery_subrequest.cc
#include <fmt/format.h> #include <fmt/ostream.h> #include "crimson/osd/osd_operations/recovery_subrequest.h" #include "crimson/osd/pg.h" #include "crimson/osd/osd_connection_priv.h" namespace { seastar::logger& logger() { return crimson::get_logger(ceph_subsys_osd); } } namespace crimson { template <> st...
1,095
22.319149
70
cc
null
ceph-main/src/crimson/osd/osd_operations/recovery_subrequest.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "osd/osd_op_util.h" #include "crimson/net/Connection.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/pg.h" #include "crimson/common/type_helpers.h" #include "messages/MOSDFastDispatc...
2,106
24.695122
96
h
null
ceph-main/src/crimson/osd/osd_operations/replicated_request.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "replicated_request.h" #include "common/Formatter.h" #include "crimson/osd/osd.h" #include "crimson/osd/osd_connection_priv.h" #include "crimson/osd/osd_operation_external_tracking.h" #include "crimson/osd/pg.h...
2,121
25.197531
75
cc
null
ceph-main/src/crimson/osd/osd_operations/replicated_request.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/net/Connection.h" #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/pg_map.h" #include "crimson/osd/osd_operations/client_request.h" #include...
2,179
25.91358
88
h
null
ceph-main/src/crimson/osd/osd_operations/snaptrim_event.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "crimson/osd/osd_operations/snaptrim_event.h" #include "crimson/osd/ops_executer.h" #include "crimson/osd/pg.h" #include <seastar/core/sleep.hh> namespace { seastar::logger& logger() { return crimson::get_...
18,261
31.963899
124
cc
null
ceph-main/src/crimson/osd/osd_operations/snaptrim_event.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/future.hh> #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/common/pg_pipeline.h" #include "crimson...
6,538
30.287081
97
h
null
ceph-main/src/crimson/osd/osd_operations/common/pg_pipeline.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "osd/osd_op_util.h" #include "crimson/osd/osd_operation.h" namespace crimson::osd { class CommonPGPipeline { protected: friend class InternalClientRequest; friend class SnapTrimEvent; friend...
970
29.34375
75
h
null
ceph-main/src/crimson/osd/scheduler/mclock_scheduler.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) 2016 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...
4,857
28.26506
81
cc
null
ceph-main/src/crimson/osd/scheduler/mclock_scheduler.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) 2016 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,071
23.380952
74
h
null
ceph-main/src/crimson/osd/scheduler/scheduler.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) 2019 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,274
27.983516
79
cc
null
ceph-main/src/crimson/osd/scheduler/scheduler.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) 2019 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,891
21.795181
70
h
null
ceph-main/src/crimson/tools/perf_async_msgr.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- #include <boost/program_options/variables_map.hpp> #include <boost/program_options/parsers.hpp> #include "auth/Auth.h" #include "global/global_init.h" #include "msg/Dispatcher.h" #include "msg/Messenger.h" #include "messages/MOSDOp.h" #include ...
4,761
30.328947
92
cc
null
ceph-main/src/crimson/tools/perf_crimson_msgr.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <map> #include <random> #include <boost/program_options.hpp> #include <boost/iterator/counting_iterator.hpp> #include <seastar/core/app-template.hh> #include <seastar/core/do_with.hh> #include <seastar/core/futu...
44,690
35.722268
100
cc
null
ceph-main/src/crimson/tools/perf_staged_fltree.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include <boost/program_options.hpp> #include <seastar/core/app-template.hh> #include <seastar/core/thread.hh> #include "crimson/common/config_proxy.h" #include "crimson/common/log.h" #include "crimson/common/perf_cou...
6,016
32.614525
82
cc
null
ceph-main/src/crimson/tools/store_nbd/block_driver.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "fs_driver.h" #include "block_driver.h" #include "tm_driver.h" BlockDriverRef get_backend(BlockDriver::config_t config) { if (config.type == "transaction_manager") { return std::make_unique<TMDriver>(conf...
502
24.15
70
cc
null
ceph-main/src/crimson/tools/store_nbd/block_driver.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/program_options/variables_map.hpp> #include <boost/program_options/parsers.hpp> #include <seastar/core/future.hh> #include <string> #include <optional> #include "include/buffer.h" /** * ...
3,328
23.659259
70
h
null
ceph-main/src/crimson/tools/store_nbd/fs_driver.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <boost/iterator/counting_iterator.hpp> #include <fmt/format.h> #include "os/Transaction.h" #include "fs_driver.h" using namespace crimson; using namespace crimson::os; coll_t get_coll(unsigned num) { return ...
7,101
21.836013
74
cc
null
ceph-main/src/crimson/tools/store_nbd/fs_driver.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "block_driver.h" #include "crimson/os/futurized_collection.h" #include "crimson/os/futurized_store.h" class FSDriver final : public BlockDriver { public: FSDriver(config_t config) : config(config) {} ~F...
1,500
19.561644
70
h
null
ceph-main/src/crimson/tools/store_nbd/store-nbd.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- /** * crimson-store-nbd * * This tool exposes crimson object store internals as an nbd server * for use with fio in basic benchmarking. * * Example usage: * * $ ./bin/crimson-store-nbd --device-path /dev/nvme1n1 -c 1 --mkfs true --uds-pa...
12,641
26.66302
111
cc
null
ceph-main/src/crimson/tools/store_nbd/tm_driver.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "tm_driver.h" using namespace crimson; using namespace crimson::os; using namespace crimson::os::seastore; namespace { seastar::logger& logger() { return crimson::get_logger(ceph_subsys_test); } } seas...
5,947
25.672646
81
cc
null
ceph-main/src/crimson/tools/store_nbd/tm_driver.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "block_driver.h" #include "crimson/os/seastore/cache.h" #include "crimson/os/seastore/device.h" #include "crimson/os/seastore/transaction_manager.h" #include "test/crimson/seastore/test_block.h" class TMDriver ...
1,513
25.561404
77
h
null
ceph-main/src/crush/CrushCompiler.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "CrushCompiler.h" #if defined(_AIX) #define EBADE ECORRUPT #endif #ifndef EBADE #define EBADE EFTYPE #endif #include <string> #include "common/errno.h" #include <boost/algorithm/string.hpp> using std::cout; us...
37,841
28.266821
151
cc
null
ceph-main/src/crush/CrushCompiler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CRUSH_COMPILER_H #define CEPH_CRUSH_COMPILER_H #include "crush/CrushWrapper.h" #include "crush/grammar.h" #include <map> #include <iostream> class CrushCompiler { CrushWrapper& crush; std::ostream& err...
2,949
30.72043
107
h
null
ceph-main/src/crush/CrushLocation.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <vector> #include "CrushLocation.h" #include "CrushWrapper.h" #include "common/ceph_context.h" #include "common/config.h" #include "common/debug.h" #include "common/errno.h" #include "include/common_fwd.h" #incl...
3,999
25.666667
92
cc
null
ceph-main/src/crush/CrushLocation.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CRUSH_LOCATION_H #define CEPH_CRUSH_LOCATION_H #include <iosfwd> #include <map> #include <string> #if FMT_VERSION >= 90000 #include <fmt/ostream.h> #endif #include "common/ceph_mutex.h" #include "include/co...
1,047
21.782609
90
h
null
ceph-main/src/crush/CrushTester.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <algorithm> #include <cstdlib> #include <iostream> #include <boost/lexical_cast.hpp> #include <boost/icl/interval_map.hpp> #include <boost/algorithm/string/join.hpp> #include "common/SubProcess.h" #include "com...
24,318
30.789542
119
cc
null
ceph-main/src/crush/CrushTester.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CRUSH_TESTER_H #define CEPH_CRUSH_TESTER_H #include "crush/CrushWrapper.h" #include "include/common_fwd.h" #include <fstream> class CrushTester { CrushWrapper& crush; std::ostream& err; std::map<int...
10,880
29.393855
145
h
null
ceph-main/src/crush/CrushTreeDumper.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2015 Mirantis Inc * * Author: Mykola Golub <mgolub@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the term...
7,915
26.109589
81
h
null
ceph-main/src/crush/CrushWrapper.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "osd/osd_types.h" #include "common/debug.h" #include "common/Formatter.h" #include "common/errno.h" #include "common/TextTable.h" #include "include/stringify.h" #include "CrushWrapper.h" #include "CrushTreeDumpe...
119,130
27.070452
103
cc
null
ceph-main/src/crush/CrushWrapper.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CRUSH_WRAPPER_H #define CEPH_CRUSH_WRAPPER_H #include <stdlib.h> #include <map> #include <set> #include <string> #include <iosfwd> #include "include/types.h" extern "C" { #include "crush.h" #include "hash...
49,090
29.991793
109
h
null
ceph-main/src/crush/builder.h
#ifndef CEPH_CRUSH_BUILDER_H #define CEPH_CRUSH_BUILDER_H #include "include/int_types.h" struct crush_bucket; struct crush_choose_arg; struct crush_map; struct crush_rule; /** @ingroup API * * Allocate a crush_map with __malloc(3)__ and initialize it. The * caller is responsible for deallocating the crush_map wit...
13,701
40.147147
279
h
null
ceph-main/src/crush/crush.h
#ifndef CEPH_CRUSH_CRUSH_H #define CEPH_CRUSH_CRUSH_H #ifdef __KERNEL__ # include <linux/types.h> #else # include "crush_compat.h" #endif /* * CRUSH is a pseudo-random data distribution algorithm that * efficiently distributes input values (typically, data objects) * across a heterogeneous, structured storage clus...
20,023
36.081481
88
h
null
ceph-main/src/crush/crush_compat.h
#ifndef CEPH_CRUSH_COMPAT_H #define CEPH_CRUSH_COMPAT_H #include "include/int_types.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /* asm-generic/bug.h */ #define BUG_ON(x) assert(!(x)) /* linux/kernel.h */ #define U8_MAX ((__u8)~0U) #define S8_MAX ((__s8)(U8_MAX>>1)) #define ...
914
21.875
61
h
null
ceph-main/src/crush/crush_ln_table.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2015 Intel Corporation All Rights Reserved * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software * Foundation. See file COPYIN...
12,506
74.8
93
h
null
ceph-main/src/crush/grammar.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) 2004-2008 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
9,040
43.9801
174
h
null
ceph-main/src/crush/hash.h
#ifndef CEPH_CRUSH_HASH_H #define CEPH_CRUSH_HASH_H #ifdef __KERNEL__ # include <linux/types.h> #else # include "crush_compat.h" #endif #define CRUSH_HASH_RJENKINS1 0 #define CRUSH_HASH_DEFAULT CRUSH_HASH_RJENKINS1 extern const char *crush_hash_name(int type); extern __u32 crush_hash32(int type, __u32 a); extern...
611
24.5
74
h
null
ceph-main/src/crush/mapper.h
#ifndef CEPH_CRUSH_MAPPER_H #define CEPH_CRUSH_MAPPER_H /* * CRUSH functions for find rules and then mapping an input to an * output set. * * LGPL-2.1 or LGPL-3.0 */ #include "crush.h" /** @ingroup API * * Map __x__ to __result_max__ items and store them in the __result__ * array. The mapping is done by foll...
3,525
36.913978
72
h
null
ceph-main/src/crush/types.h
#ifndef CEPH_CRUSH_TYPES_H #define CEPH_CRUSH_TYPES_H #ifdef KERNEL # define free(x) kfree(x) #else # include <stdlib.h> #endif #include <linux/types.h> /* just for int types */ #ifndef BUG_ON # define BUG_ON(x) ceph_assert(!(x)) #endif #endif
250
12.944444
50
h
null
ceph-main/src/crypto/crypto_accel.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2016 Mirantis, Inc. * * Author: Adam Kupczyk <akupczyk@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
1,869
35.666667
90
h
null
ceph-main/src/crypto/crypto_plugin.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2016 Mirantis, Inc. * * Author: Adam Kupczyk <akupczyk@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
1,109
26.75
80
h
null
ceph-main/src/crypto/isa-l/isal_crypto_accel.cc
/* * Ceph - scalable distributed file system * * Copyright (C) 2016 Mirantis, Inc. * * Author: Adam Kupczyk <akupczyk@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
1,770
37.5
116
cc
null
ceph-main/src/crypto/isa-l/isal_crypto_accel.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2016 Mirantis, Inc. * * Author: Adam Kupczyk <akupczyk@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
1,707
38.72093
82
h
null
ceph-main/src/crypto/isa-l/isal_crypto_plugin.cc
/* * Ceph - scalable distributed file system * * Copyright (C) 2016 Mirantis, Inc. * * Author: Adam Kupczyk <akupczykd@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foun...
966
26.628571
80
cc
null
ceph-main/src/crypto/isa-l/isal_crypto_plugin.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2016 Mirantis, Inc. * * Author: Adam Kupczyk <akupczyk@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
1,345
25.92
80
h
null
ceph-main/src/crypto/openssl/openssl_crypto_accel.cc
/* * Ceph - scalable distributed file system * * Copyright (C) 2017 Intel Corporation * * Author: Qiaowei Ren <qiaowei.ren@intel.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Fou...
3,626
32.897196
94
cc
null
ceph-main/src/crypto/openssl/openssl_crypto_accel.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2017 Intel Corporation * * Author: Qiaowei Ren <qiaowei.ren@intel.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Fou...
1,725
38.227273
82
h
null
ceph-main/src/crypto/openssl/openssl_crypto_plugin.cc
/* * Ceph - scalable distributed file system * * Copyright (C) 2017 Intel Corporation * * Author: Qiaowei Ren <qiaowei.ren@intel.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Fou...
813
23.666667
70
cc