repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
null
ceph-main/src/os/kstore/KStore.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) 2014 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
19,661
27.088571
134
h
null
ceph-main/src/os/kstore/kstore_types.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) 2014 Red Hat * * 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,969
27.550725
80
h
null
ceph-main/src/os/memstore/MemStore.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) 2013- Sage Weil <sage@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
13,569
31.698795
105
h
null
ceph-main/src/os/memstore/PageSet.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) 2013- Sage Weil <sage@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
7,090
29.433476
77
h
null
ceph-main/src/osd/ClassHandler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CLASSHANDLER_H #define CEPH_CLASSHANDLER_H #include <variant> #include "include/types.h" #include "include/common_fwd.h" #include "common/ceph_mutex.h" #include "objclass/objclass.h" //forward declaration ...
3,455
26.212598
79
h
null
ceph-main/src/osd/DynamicPerfStats.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef DYNAMIC_PERF_STATS_H #define DYNAMIC_PERF_STATS_H #include "include/random.h" #include "messages/MOSDOp.h" #include "mgr/OSDPerfMetricTypes.h" #include "osd/OSD.h" #include "osd/OpRequest.h" class DynamicPerfSta...
8,446
30.518657
81
h
null
ceph-main/src/osd/ECBackend.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
22,919
32.313953
120
h
null
ceph-main/src/osd/ECMsgTypes.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
4,596
31.602837
89
h
null
ceph-main/src/osd/ECTransaction.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
6,342
30.557214
74
h
null
ceph-main/src/osd/ECUtil.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
5,509
31.411765
79
h
null
ceph-main/src/osd/ExtentCache.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 * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
14,556
28.708163
89
h
null
ceph-main/src/osd/HitSet.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) 2013 Inktank <info@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public *...
12,721
26.899123
84
h
null
ceph-main/src/osd/MissingLoc.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 <set> #include "OSDMap.h" #include "common/HBHandle.h" #include "common/ceph_context.h" #include "common/dout.h" #include "osd_types.h" class MissingLoc { public: class MappingI...
10,587
28.909605
109
h
null
ceph-main/src/osd/OSDCap.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-2006 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...
8,045
29.709924
81
h
null
ceph-main/src/osd/OSDMapMapping.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OSDMAPMAPPING_H #define CEPH_OSDMAPMAPPING_H #include <vector> #include <map> #include "osd/osd_types.h" #include "common/WorkQueue.h" #include "common/Cond.h" class OSDMap; /// work queue to perform wor...
8,140
21.932394
85
h
null
ceph-main/src/osd/ObjectVersioner.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-2006 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 ...
914
24.416667
71
h
null
ceph-main/src/osd/OpRequest.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) 2012 New Dream Network/Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Les...
5,812
28.810256
82
h
null
ceph-main/src/osd/PGBackend.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) 2013,2014 Inktank Storage, Inc. * Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * Thi...
19,053
30.338816
95
h
null
ceph-main/src/osd/PGPeeringEvent.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.hpp> #include "osd/osd_types.h" class MOSDPGLog; /// what we need to instantiate a pg struct PGCreateInfo { spg_t pgid; epoch_t epoch = 0; pg_history_t history; Pa...
6,484
28.343891
80
h
null
ceph-main/src/osd/PGStateUtils.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "include/utime.h" #include "common/Formatter.h" #include <stack> #include <vector> #include <boost/circular_buffer.hpp> class PGStateHistory; struct EpochSource { virtual epoch_t get_osdmap_epo...
2,007
22.348837
70
h
null
ceph-main/src/osd/PGTransaction.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 * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
18,554
29.822259
97
h
null
ceph-main/src/osd/ReplicatedBackend.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
12,369
27.634259
83
h
null
ceph-main/src/osd/Session.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-2006 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...
6,592
26.356846
80
h
null
ceph-main/src/osd/SnapMapReaderI.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once /** * \file * \brief Defines the interface for the snap-mapper used by the scrubber. */ #include <set> #include "common/scrub_types.h" #include "include/expected.hpp" namespace Scrub { /* * snaps-relate...
2,119
29.724638
80
h
null
ceph-main/src/osd/SnapMapper.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
11,687
29.83905
93
h
null
ceph-main/src/osd/TierAgentState.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Sage Weil <sage@inktank.com> * * 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 ...
3,480
25.984496
72
h
null
ceph-main/src/osd/Watch.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-2006 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 ...
7,546
25.114187
124
h
null
ceph-main/src/osd/error_code.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 <contact@redhat.com> * Author: Adam C. Emerson <aemerson@redhat.com> * * This is free software; you can redistribute it and/or * modify it ...
1,422
25.351852
81
h
null
ceph-main/src/osd/object_state.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "osd_types.h" struct ObjectState { object_info_t oi; bool exists; ///< the stored object exists (i.e., we will remember the object_info_t) ObjectState() : exists(false) {} ObjectS...
4,084
20.387435
95
h
null
ceph-main/src/osd/object_state_fmt.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once /** * \file fmtlib formatters for some types.h classes */ #include "osd/object_state.h" #include "osd/osd_types_fmt.h" #if FMT_VERSION >= 90000 #include <fmt/ostream.h> #endif template <> struct fmt::forma...
600
24.041667
74
h
null
ceph-main/src/osd/osd_internal_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OSD_INTERNAL_TYPES_H #define CEPH_OSD_INTERNAL_TYPES_H #include "osd_types.h" #include "OpRequest.h" #include "object_state.h" /* * keep tabs on object modifications that are in flight. * we need to kno...
8,217
24.054878
86
h
null
ceph-main/src/osd/osd_op_util.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <vector> #include <string> #include "osd/OSDMap.h" #include "messages/MOSDOp.h" class OpInfo { public: struct ClassInfo { ClassInfo(std::string&& class_name, std::string&& method_name, ...
2,115
22.511111
77
h
null
ceph-main/src/osd/osd_types_fmt.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once /** * \file fmtlib formatters for some types.h classes */ #include "common/hobject_fmt.h" #include "osd/osd_types.h" #include <fmt/chrono.h> #if FMT_VERSION >= 90000 #include <fmt/ostream.h> #endif templat...
9,683
27.482353
109
h
null
ceph-main/src/osd/recovery_types.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 "osd_types.h" /** * BackfillInterval * * Represents the objects in a range [begin, end) * * Possible states: * 1) begin == end == hobject_t() indicates the the interval is unp...
2,343
22.676768
80
h
null
ceph-main/src/osd/scrubber_common.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <fmt/ranges.h> #include "common/scrub_types.h" #include "include/types.h" #include "os/ObjectStore.h" #include "OpRequest.h" namespace ceph { class Formatter; } struct PGPool; namespace Scrub { ...
13,461
31.052381
80
h
null
ceph-main/src/osd/scheduler/OpScheduler.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...
4,007
25.72
76
h
null
ceph-main/src/osd/scheduler/OpSchedulerItem.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...
19,776
28.126657
93
h
null
ceph-main/src/osd/scheduler/mClockScheduler.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...
8,102
29.809886
79
h
null
ceph-main/src/osd/scrubber/PrimaryLogScrub.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once // the './' includes are marked this way to affect clang-format #include "./pg_scrubber.h" #include "debug.h" #include "common/errno.h" #include "common/scrub_types.h" #include "messages/MOSDOp.h" #include ...
1,360
25.173077
79
h
null
ceph-main/src/osd/scrubber/ScrubStore.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_SCRUB_RESULT_H #define CEPH_SCRUB_RESULT_H #include "common/map_cacher.hpp" #include "osd/SnapMapper.h" // for OSDriver namespace librados { struct object_id_t; } struct inconsistent_obj_wrapper; struct i...
1,838
27.734375
75
h
null
ceph-main/src/osd/scrubber/osd_scrub_sched.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once // clang-format off /* ┌───────────────────────┐ │ OSD │ │ OSDService ─┼───┐ │ │ │ │ │ │ └───────────────────────┘ │ Ownes & use...
18,331
31.677362
80
h
null
ceph-main/src/osd/scrubber/scrub_backend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once // clang-format off /* +------------------------+ | | | PgScrubber | | |-----------------------------+ | ...
18,408
32.169369
82
h
null
ceph-main/src/osd/scrubber/scrub_machine.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 <boost/statechart/custom_reaction.hpp> #include <boost/statechart/deferral.hpp> #include <boost/statechart/event.hpp> #include <boost/statechart/event_base.hpp> #include <boost/sta...
17,326
28.977509
80
h
null
ceph-main/src/osd/scrubber/scrub_machine_lstnr.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once /** * \file the PgScrubber interface used by the scrub FSM */ #include "common/version.h" #include "include/Context.h" #include "osd/osd_types.h" struct ScrubMachineListener; namespace Scrub { enum class...
7,198
29.121339
80
h
null
ceph-main/src/osdc/Filer.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-2006 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...
7,905
25.265781
77
h
null
ceph-main/src/osdc/Journaler.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-2006 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...
16,039
28.377289
88
h
null
ceph-main/src/osdc/ObjectCacher.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OBJECTCACHER_H #define CEPH_OBJECTCACHER_H #include "include/types.h" #include "include/lru.h" #include "include/Context.h" #include "include/xlist.h" #include "include/common_fwd.h" #include "common/Cond.h"...
21,970
27.095908
89
h
null
ceph-main/src/osdc/Striper.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-2006 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...
4,429
32.308271
77
h
null
ceph-main/src/osdc/StriperTypes.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OSDC_STRIPER_TYPES_H #define CEPH_OSDC_STRIPER_TYPES_H #include "include/types.h" #include <boost/container/small_vector.hpp> #include <ios> #include <utility> namespace striper { // off -> len extents in ...
1,427
28.142857
70
h
null
ceph-main/src/osdc/WritebackHandler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OSDC_WRITEBACKHANDLER_H #define CEPH_OSDC_WRITEBACKHANDLER_H #include "include/Context.h" #include "include/types.h" #include "common/zipkin_trace.h" #include "osd/osd_types.h" class WritebackHandler { publ...
2,106
35.327586
80
h
null
ceph-main/src/osdc/error_code.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 <contact@redhat.com> * Author: Adam C. Emerson <aemerson@redhat.com> * * This is free software; you can redistribute it and/or * modify it ...
1,363
22.929825
82
h
null
ceph-main/src/perfglue/cpu_profiler.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) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
642
23.730769
70
h
null
ceph-main/src/perfglue/heap_profiler.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) 2011 New Dream Network/Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Les...
1,468
24.327586
75
h
null
ceph-main/src/rbd_replay/ActionTypes.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_RBD_REPLAY_ACTION_TYPES_H #define CEPH_RBD_REPLAY_ACTION_TYPES_H #include "include/int_types.h" #include "include/buffer_fwd.h" #include "include/encoding.h" #include <iosfwd> #include <list> #include <strin...
10,290
29.267647
79
h
null
ceph-main/src/rbd_replay/BufferReader.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_RBD_REPLAY_BUFFER_READER_H #define CEPH_RBD_REPLAY_BUFFER_READER_H #include "include/int_types.h" #include "include/buffer.h" namespace rbd_replay { class BufferReader { public: static const size_t DEFAU...
773
21.114286
70
h
null
ceph-main/src/rgw/rgw_acl.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <string> #include <string_view> #include <include/types.h> #include <boost/optional.hpp> #include <boost/algorithm/string/predicate.hpp> #include "common/debug.h" #include "...
11,762
27.344578
107
h
null
ceph-main/src/rgw/rgw_acl_s3.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <string> #include <iosfwd> #include <include/types.h> #include "include/str_list.h" #include "rgw_xml.h" #include "rgw_acl.h" #include "rgw_sal_fwd.h" class RGWUserCtl; clas...
3,136
26.043103
102
h
null
ceph-main/src/rgw/rgw_acl_swift.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <vector> #include <string> #include <include/types.h> #include <boost/optional.hpp> #include "rgw_acl.h" class RGWUserCtl; class RGWAccessControlPolicy_SWIFT : public RGWAc...
1,709
27.983051
73
h
null
ceph-main/src/rgw/rgw_acl_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * 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 * Lice...
5,909
26.616822
79
h
null
ceph-main/src/rgw/rgw_aio.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
3,161
29.114286
84
h
null
ceph-main/src/rgw/rgw_aio_throttle.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
3,530
25.954198
78
h
null
ceph-main/src/rgw/rgw_amqp.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include <functional> #include <boost/optional.hpp> #include "include/common_fwd.h" struct amqp_connection_info; namespace rgw::amqp { // the reply callback is expected to get a...
2,234
25.927711
133
h
null
ceph-main/src/rgw/rgw_arn.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include <boost/optional.hpp> class rgw_obj; class rgw_bucket; namespace rgw { enum struct Partition { aws, aws_cn, aws_us_gov, wildcard // If we wanted our own ARNs for princi...
3,948
31.368852
113
h
null
ceph-main/src/rgw/rgw_asio_client.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <boost/asio/ip/tcp.hpp> #include <boost/beast/core.hpp> #include <boost/beast/http.hpp> #include "include/ceph_assert.h" #include "rgw_client_io.h" namespace rgw { namespace asio { namespa...
1,640
25.047619
74
h
null
ceph-main/src/rgw/rgw_asio_frontend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <memory> #include "rgw_frontend.h" #define REQUEST_TIMEOUT 65000 class RGWAsioFrontend : public RGWFrontend { class Impl; std::unique_ptr<Impl> impl; public: RGWAsioFrontend(RGWProcess...
611
22.538462
70
h
null
ceph-main/src/rgw/rgw_asio_frontend_timer.h
#pragma once #include <boost/asio/basic_waitable_timer.hpp> #include <boost/intrusive_ptr.hpp> #include "common/ceph_time.h" namespace rgw { // a WaitHandler that closes a stream if the timeout expires template <typename Stream> struct timeout_handler { // this handler may outlive the timer/stream, so we need to ...
1,822
26.208955
93
h
null
ceph-main/src/rgw/rgw_auth_filters.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <type_traits> #include <boost/logic/tribool.hpp> #include <boost/optional.hpp> #include "rgw_service.h" #include "rgw_common.h" #include "rgw_auth.h" #include "rgw_user.h" namespace rgw { ...
9,946
31.828383
109
h
null
ceph-main/src/rgw/rgw_auth_keystone.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string_view> #include <utility> #include <boost/optional.hpp> #include "rgw_auth.h" #include "rgw_rest_s3.h" #include "rgw_common.h" #include "rgw_keystone.h" namespace rgw { namespace aut...
7,368
35.661692
117
h
null
ceph-main/src/rgw/rgw_auth_registry.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <functional> #include <memory> #include <ostream> #include <type_traits> #include <utility> #include "rgw_auth.h" #include "rgw_auth_s3.h" #include "rgw_swift_auth.h" #include "rgw_rest_sts....
3,080
30.438776
84
h
null
ceph-main/src/rgw/rgw_auth_s3.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <array> #include <memory> #include <string> #include <string_view> #include <tuple> #include <boost/algorithm/string.hpp> #include <boost/container/static_vector.hpp> #include "common/sstri...
23,640
35.539413
101
h
null
ceph-main/src/rgw/rgw_b64.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <boost/archive/iterators/base64_from_binary.hpp> #include <boost/archive/iterators/binary_from_base64.hpp> #include <boost/archive/iterators/insert_linebreaks.hpp> #include <boost/archive/ite...
2,336
26.494118
70
h
null
ceph-main/src/rgw/rgw_basic_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * 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 * Lice...
7,263
23.876712
91
h
null
ceph-main/src/rgw/rgw_bucket.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include <memory> #include <variant> #include <boost/container/flat_map.hpp> #include <boost/container/flat_set.hpp> #include "include/types.h" #include "rgw_common.h" #include "rg...
1,295
34.027027
132
h
null
ceph-main/src/rgw/rgw_bucket_encryption.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <include/types.h> class XMLObj; class ApplyServerSideEncryptionByDefault { std::string kmsMasterKeyID; std::string sseAlgorithm; public: ApplyServerSideEncryptionByDefault() {}; App...
3,562
23.916084
80
h
null
ceph-main/src/rgw/rgw_bucket_layout.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2020 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
9,694
33.257951
105
h
null
ceph-main/src/rgw/rgw_bucket_sync_cache.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2020 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
3,750
31.059829
84
h
null
ceph-main/src/rgw/rgw_bucket_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * 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 * Lice...
6,688
27.58547
82
h
null
ceph-main/src/rgw/rgw_client_io.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <exception> #include <string> #include <string_view> #include <streambuf> #include <istream> #include <stdlib.h> #include <system_error> #include "include/types.h" #include "rgw_common.h" ...
15,240
33.956422
81
h
null
ceph-main/src/rgw/rgw_client_io_filters.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <type_traits> #include <boost/optional.hpp> #include "rgw_common.h" #include "rgw_client_io.h" namespace rgw { namespace io { template <typename T> class AccountingFilter : public Decorat...
13,842
29.424176
88
h
null
ceph-main/src/rgw/rgw_compression.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <vector> #include "compressor/Compressor.h" #include "rgw_putobj.h" #include "rgw_op.h" #include "rgw_compression_types.h" int rgw_compression_info_from_attr(const bufferlist& attr, ...
2,091
32.206349
85
h
null
ceph-main/src/rgw/rgw_compression_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * 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 * Lice...
2,050
25.636364
101
h
null
ceph-main/src/rgw/rgw_cors.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
3,817
27.281481
110
h
null
ceph-main/src/rgw/rgw_cors_s3.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
1,504
24.508475
107
h
null
ceph-main/src/rgw/rgw_cors_swift.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
2,339
26.857143
76
h
null
ceph-main/src/rgw/rgw_cr_rest.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <boost/intrusive_ptr.hpp> #include <mutex> #include "include/ceph_assert.h" // boost header clobbers our assert.h #include "rgw_coroutine.h" #include "rgw_rest_conn.h" struct rgw_rest_obj ...
19,624
32.20643
134
h
null
ceph-main/src/rgw/rgw_crypt.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /** * Crypto filters for Put/Post/Get operations. */ #pragma once #include <string_view> #include <rgw/rgw_op.h> #include <rgw/rgw_rest.h> #include <rgw/rgw_rest_s3.h> #include "rgw_putobj.h" #include "common/...
6,873
37.188889
98
h
null
ceph-main/src/rgw/rgw_crypt_sanitize.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string_view> #include "rgw_common.h" namespace rgw { namespace crypt_sanitize { /* * Temporary container for suppressing printing if variable contains secret key. */ struct env { std::...
1,789
24.942029
102
h
null
ceph-main/src/rgw/rgw_dmclock.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * Copyright (C) 2019 SUSE LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GN...
1,430
26
84
h
null
ceph-main/src/rgw/rgw_dmclock_async_scheduler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
7,424
33.059633
83
h
null
ceph-main/src/rgw/rgw_dmclock_scheduler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * (C) 2019 SUSE LLC * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Le...
2,173
23.988506
94
h
null
ceph-main/src/rgw/rgw_dmclock_scheduler_ctx.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "common/perf_counters.h" #include "common/ceph_context.h" #include "common/config.h" #include "rgw_dmclock.h" namespace queue_counters { enum { l_first = 427150, l_qlen, ...
3,159
25.333333
87
h
null
ceph-main/src/rgw/rgw_dmclock_sync_scheduler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 SUSE Linux Gmbh * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lic...
2,478
30.782051
101
h
null
ceph-main/src/rgw/rgw_es_query.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_string.h" class ESQueryStack { std::list<std::string> l; std::list<std::string>::iterator iter; public: explicit ESQueryStack(std::list<std::string>& src) { assign(src); } ...
3,705
21.460606
115
h
null
ceph-main/src/rgw/rgw_flight.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright 2023 IBM * * See file COPYING for licensing information. */ #pragma once #include <map> #include <mutex> #include <atomic> #include "include/commo...
5,924
25.689189
91
h
null
ceph-main/src/rgw/rgw_flight_frontend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright 2023 IBM * * See file COPYING for licensing information. */ #pragma once #include "include/common_fwd.h" #include "common/Thread.h" #include "rgw_f...
1,934
21.241379
72
h
null
ceph-main/src/rgw/rgw_formats.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "common/Formatter.h" #include <list> #include <stdint.h> #include <string> #include <ostream> struct plain_stack_entry { int size; bool is_array; }; /* FIXME: this class is mis-named. ...
3,776
27.186567
112
h
null
ceph-main/src/rgw/rgw_frontend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <string> #include <vector> #include "common/RWLock.h" #include "rgw_request.h" #include "rgw_process.h" #include "rgw_process_env.h" #include "rgw_realm_reloader.h" #include...
5,004
22.608491
81
h
null
ceph-main/src/rgw/rgw_gc_log.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "include/rados/librados.hpp" #include "cls/rgw/cls_rgw_types.h" // initialize the cls_rgw_gc queue void gc_log_init2(librados::ObjectWriteOperation& op, uint64_t max_size,...
1,041
34.931034
75
h
null
ceph-main/src/rgw/rgw_http_client.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "common/async/yield_context.h" #include "common/Cond.h" #include "rgw_common.h" #include "rgw_string.h" #include "rgw_http_client_types.h" #include <atomic> using param_pair_t = std::pair<s...
9,012
24.825215
90
h
null
ceph-main/src/rgw/rgw_http_client_curl.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 SUSE Linux GmBH * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Li...
680
21.7
70
h