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/osd/PGStateUtils.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "PGStateUtils.h" #include "common/Clock.h" using ceph::Formatter; /*------NamedState----*/ NamedState::NamedState(PGStateHistory *pgsh, const char *state_name) : pgsh(pgsh), state_name(state_name), enter_time...
1,469
24.344828
70
cc
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/PeeringState.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "PGPeeringEvent.h" #include "common/ceph_releases.h" #include "common/dout.h" #include "PeeringState.h" #include "messages/MOSDPGRemove.h" #include "messages/MBackfillReserve.h" #include "messages/MRecoveryReser...
236,022
30.112971
120
cc
null
ceph-main/src/osd/PeeringState.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/custom_reaction.hpp> #include <boost/statechart/event.hpp> #include <boost/statechart/simple_state.hpp> #include <boost/statechart/state.hpp> #include <boost/statechart/state_machi...
85,953
33.589135
115
h
null
ceph-main/src/osd/PrimaryLogPG.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) 2004-2006 Sage Weil <sage@newdream.net> * Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> ...
483,305
29.519449
195
cc
null
ceph-main/src/osd/PrimaryLogPG.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This is free software; you ...
64,625
31.922058
118
h
null
ceph-main/src/osd/ReplicatedBackend.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) 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...
74,337
29.554048
107
cc
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.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "PG.h" #include "Session.h" #include "common/debug.h" #define dout_context cct #define dout_subsys ceph_subsys_osd using std::map; using std::set; void Session::clear_backoffs() { map<spg_t,map<hobject_t,se...
2,776
24.953271
81
cc
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.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) 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...
27,398
27.072746
99
cc
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.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #include "PG.h" #include "include/types.h" #include "messages/MWatchNotify.h" #include <map> #include "OSD.h" #include "PrimaryLogPG.h" #include "Watch.h" #include "Session.h" #include "common/config.h" #define dout_context osd->cct #define dou...
12,915
22.064286
107
cc
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.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 <contact@redhat.com> * Author: Adam C. Emerson <aemerson@redhat.com> * * This is free software; you can redistribute it and/or * modify it ...
3,024
27.537736
101
cc
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/objclass.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <cstdarg> #include <boost/container/small_vector.hpp> #include "common/ceph_context.h" #include "common/ceph_releases.h" #include "common/config.h" #include "common/debug.h" #include "objclass/objclass.h" #inclu...
21,112
25.96424
125
cc
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.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "osd/osd_op_util.h" #include "osd/ClassHandler.h" #include "messages/MOSDOp.h" using std::ostream; using std::string; using std::vector; using ceph::bufferlist; bool OpInfo::check_rmw(int flag) const { ceph...
8,816
30.045775
92
cc
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_perf_counters.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "osd_perf_counters.h" #include "include/common_fwd.h" PerfCounters *build_osd_logger(CephContext *cct) { PerfCountersBuilder osd_plb(cct, "osd", l_osd_first, l_osd_last); // Latency axis configuration for ...
17,732
47.85124
156
cc
null
ceph-main/src/osd/osd_perf_counters.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "include/common_fwd.h" #include "common/perf_counters.h" enum { l_osd_first = 10000, l_osd_op_wip, l_osd_op, l_osd_op_inb, l_osd_op_outb, l_osd_op_lat, l_osd_op_process_lat, l_osd_o...
3,602
19.355932
70
h
null
ceph-main/src/osd/osd_tracer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "osd_tracer.h" namespace tracing { namespace osd { tracing::Tracer tracer; } // namespace osd } // namespace tracing
228
16.615385
70
cc
null
ceph-main/src/osd/osd_tracer.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "common/tracer.h" namespace tracing { namespace osd { extern tracing::Tracer tracer; } // namespace osd } // namespace tracing
251
17
70
h
null
ceph-main/src/osd/osd_types.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) 2011 New Dream Network * Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This is free...
211,086
27.625848
101
cc
null
ceph-main/src/osd/osd_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) 2004-2006 Sage Weil <sage@newdream.net> * Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> ...
208,516
30.398434
150
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.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "recovery_types.h" std::ostream& operator<<(std::ostream& out, const BackfillInterval& bi) { out << "BackfillInfo(" << bi.begin << "-" << bi.end << " " << bi.objects.size() << " objects"; if (!bi.objec...
394
22.235294
71
cc
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.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...
1,813
28.737705
79
cc
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.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...
6,191
21.681319
88
cc
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.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...
18,719
30.252087
81
cc
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.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "./PrimaryLogScrub.h" #include <sstream> #include "common/scrub_types.h" #include "osd/PeeringState.h" #include "osd/PrimaryLogPG.h" #include "osd/osd_types_fmt.h" #include "scrub_machine.h" #define dout_cont...
8,804
32.735632
80
cc
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.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "ScrubStore.h" #include "osd/osd_types.h" #include "common/scrub_types.h" #include "include/rados/rados_types.hpp" using std::ostringstream; using std::string; using std::vector; using ceph::bufferlist; names...
4,442
20.258373
79
cc
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.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "./osd_scrub_sched.h" #include "osd/OSD.h" #include "pg_scrubber.h" using namespace ::std::literals; // ////////////////////////////////////////////////////////////////////////// // // ScrubJob #define dout_c...
25,816
30.445798
91
cc
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/pg_scrubber.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=2 sw=2 smarttab #include "./pg_scrubber.h" // '.' notation used to affect clang-format order #include <cmath> #include <iostream> #include <vector> #include <fmt/ranges.h> #include "debug.h" #include "common/ceph_time.h" #include "c...
80,181
28.178311
80
cc
null
ceph-main/src/osd/scrubber/pg_scrubber.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 /* Main Scrubber interfaces: ┌──────────────────────────────────────────────┬────┐ │ │ │ │ │...
31,558
30.092611
81
h
null
ceph-main/src/osd/scrubber/scrub_backend.cc
// -*- m_mode_desc:C++; tab-width:8; c-basic-offset:2; indent-tabs-m_mode_desc:t // -*- vim: ts=2 sw=2 smarttab #include "./scrub_backend.h" #include <algorithm> #include <fmt/ranges.h> #include "common/debug.h" #include "include/utime_fmt.h" #include "messages/MOSDRepScrubMap.h" #include "osd/ECUtil.h" #include "...
64,012
31.743223
83
cc
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.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <chrono> #include <typeinfo> #include <boost/core/demangle.hpp> #include "osd/OSD.h" #include "osd/OpRequest.h" #include "ScrubStore.h" #include "scrub_machine.h" #define dout_context g_ceph_context #define d...
21,529
29.027894
81
cc
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.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) 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...
13,736
27.14959
81
cc
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.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) 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...
43,617
25.726716
96
cc
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.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <limits.h> #include "msg/Messenger.h" #include "ObjectCacher.h" #include "WritebackHandler.h" #include "common/errno.h" #include "common/perf_counters.h" #include "include/ceph_assert.h" #define MAX_FLUSH_UNDE...
79,577
27.339744
97
cc
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/Objecter.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) 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...
150,013
26.626888
119
cc
null
ceph-main/src/osdc/Objecter.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...
126,879
31.326115
108
h
null
ceph-main/src/osdc/Striper.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) 2012 Inktank * * 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,104
32.652416
95
cc
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.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 <contact@redhat.com> * Author: Adam C. Emerson <aemerson@redhat.com> * * This is free software; you can redistribute it and/or * modify it ...
4,476
25.808383
83
cc
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.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) 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 ...
1,143
26.238095
70
cc
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/disabled_heap_profiler.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) 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 Le...
1,322
26.5625
75
cc
null
ceph-main/src/perfglue/disabled_stubs.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) 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 ...
657
24.307692
70
cc
null
ceph-main/src/perfglue/heap_profiler.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) 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 Le...
5,121
26.100529
75
cc
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/pybind/mgr/dashboard/run-backend-api-request.sh
#!/bin/bash CURR_DIR=`pwd` [ -z "$BUILD_DIR" ] && BUILD_DIR=build cd ../../../../${BUILD_DIR} API_URL=`./bin/ceph mgr services 2>/dev/null | jq .dashboard | sed -e 's/"//g' -e 's!/$!!g'` if [ "$API_URL" = "null" ]; then echo "Couldn't retrieve API URL, exiting..." >&2 exit 1 fi cd $CURR_DIR TOKEN=`curl --insecure -...
700
27.04
92
sh
null
ceph-main/src/pybind/mgr/dashboard/run-backend-api-tests.sh
#!/usr/bin/env bash # SHELL_TRACE=true ./run-backend-api-tests.sh to enable debugging [ -v SHELL_TRACE ] && set -x # cross shell: Are we sourced? # Source: https://stackoverflow.com/a/28776166/3185053 ([[ -n $ZSH_EVAL_CONTEXT && $ZSH_EVAL_CONTEXT =~ :file$ ]] || [[ -n $KSH_VERSION && $(cd "$(dirname -- "$0")" && ...
5,466
28.874317
159
sh
null
ceph-main/src/pybind/mgr/dashboard/run-backend-rook-api-request.sh
#!/bin/bash # # Query k8s to determine where the mgr is running and how to reach the # dashboard from the local machine. This assumes that the dashboard is being # exposed via a nodePort service CURR_DIR=`pwd` K8S_NAMESPACE='rook-ceph' HOST=$(kubectl get pods -n $K8S_NAMESPACE -l "app=rook-ceph-mgr" -o json | jq .ite...
1,350
31.95122
139
sh
null
ceph-main/src/pybind/mgr/dashboard/run-frontend-e2e-tests.sh
#!/usr/bin/env bash set -e CLUSTERS=("1" "2") ceph() { ${FULL_PATH_BUILD_DIR}/../src/mrun 1 ceph $@ } ceph2() { ${FULL_PATH_BUILD_DIR}/../src/mrun 2 ceph $@ } ceph_all() { ceph $@ ceph2 $@ } start_ceph() { cd $FULL_PATH_BUILD_DIR for cluster in ${CLUSTERS[@]}; do export CEPH_OUT_C...
3,748
24.503401
122
sh
null
ceph-main/src/pybind/mgr/dashboard/run-frontend-unittests.sh
#!/usr/bin/env bash failed=false SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" : ${CEPH_ROOT:=$SCRIPTPATH/../../../../} cd $CEPH_ROOT/src/pybind/mgr/dashboard/frontend [ -z "$BUILD_DIR" ] && BUILD_DIR=build if [ `uname` != "FreeBSD" ]; then . $CEPH_ROOT/${BUILD_DIR}/src/pybind/mgr/dashboard/frontend/node-env/bin...
1,367
25.823529
125
sh
null
ceph-main/src/pybind/mgr/dashboard/ci/cephadm/bootstrap-cluster.sh
#!/usr/bin/env bash set -x export PATH=/root/bin:$PATH mkdir /root/bin export CEPHADM_IMAGE='quay.ceph.io/ceph-ci/ceph:main' CEPHADM="/root/bin/cephadm" /mnt/{{ ceph_dev_folder }}/src/cephadm/build.sh $CEPHADM mkdir -p /etc/ceph mon_ip=$(ifconfig eth0 | grep 'inet ' | awk '{ print $2}') bootstrap_extra_options='...
1,366
33.175
160
sh
null
ceph-main/src/pybind/mgr/dashboard/ci/cephadm/run-cephadm-e2e-tests.sh
#!/usr/bin/env bash set -ex : ${CYPRESS_BASE_URL:=''} : ${CYPRESS_LOGIN_USER:='admin'} : ${CYPRESS_LOGIN_PWD:='password'} : ${CYPRESS_ARGS:=''} : ${DASHBOARD_PORT:='8443'} get_vm_ip () { local ip=$(kcli info vm "$1" -f ip -v | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}') echo -n $ip } if [[ -n...
2,417
39.3
164
sh
null
ceph-main/src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh
#!/usr/bin/env bash set -eEx on_error() { set +x if [ "$1" != "0" ]; then echo "ERROR $1 thrown on line $2" echo echo "Collecting info..." echo echo "Saving MGR logs:" echo mkdir -p ${CEPH_DEV_FOLDER}/logs kcli ssh -u root -- ceph-node-00 'cephad...
2,802
33.604938
185
sh
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/index.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Ceph</title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="icon" type="image/x-icon" id="cdFavicon" href="favicon.ico"> </head> <body> <noscript> <div class="noscript container" ...
734
28.4
129
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/app.component.html
<router-outlet></router-outlet>
32
15.5
31
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-setting/iscsi-setting.component.html
<div class="form-group" [formGroup]="settingsForm"> <label class="col-form-label" for="{{ setting }}">{{ setting }}</label> <select id="{{ setting }}" name="{{ setting }}" *ngIf="limits['type'] === 'enum'" class="form-control" [formControlName]="setting"> <o...
2,016
33.775862
91
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-tabs/iscsi-tabs.component.html
<ul class="nav nav-tabs"> <li class="nav-item"> <a class="nav-link" routerLink="/block/iscsi/overview" routerLinkActive="active" ariaCurrentWhenActive="page" i18n>Overview</a> </li> <li class="nav-item"> <a class="nav-link" routerLink="/block/iscsi/targets" router...
414
23.411765
41
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-details/iscsi-target-details.component.html
<div class="row"> <div class="col-6"> <legend i18n>iSCSI Topology</legend> <tree-root #tree [nodes]="nodes" [options]="treeOptions" (updateData)="onUpdateData()"> <ng-template #treeNodeTemplate let-node let-index="index"...
1,248
28.738095
145
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-discovery-modal/iscsi-target-discovery-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title" i18n>Discovery Authentication</ng-container> <ng-container class="modal-content"> <form name="discoveryForm" #formDir="ngForm" [formGroup]="discoveryForm" novalidate> <div class="modal-body...
5,101
38.550388
90
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-form/iscsi-target-form.component.html
<div class="cd-col-form" *cdFormLoading="loading"> <form name="targetForm" #formDir="ngForm" [formGroup]="targetForm" novalidate> <div class="card"> <div i18n="form title" class="card-header">{{ action | titlecase }} {{ resource | upperFirst }}</div> <div class...
28,650
41.698957
122
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-image-settings-modal/iscsi-target-image-settings-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title"> <ng-container i18n>Configure</ng-container>&nbsp; <small>{{ image }}</small> </ng-container> <ng-container class="modal-content"> <form name="settingsForm" class="form" #formDir="ngForm" [formGroup]="...
3,275
34.225806
102
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-iqn-settings-modal/iscsi-target-iqn-settings-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container class="modal-title" i18n>Advanced Settings</ng-container> <ng-container class="modal-content"> <form name="settingsForm" #formDir="ngForm" [formGroup]="settingsForm" novalidate> <div class="modal-body"> ...
1,182
34.848485
97
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-list/iscsi-target-list.component.html
<cd-iscsi-tabs></cd-iscsi-tabs> <cd-alert-panel type="info" *ngIf="available === false" title="iSCSI Targets not available" i18n-title> <ng-container i18n>Please consult the <cd-doc section="iscsi"></cd-doc> on how to configure and enable the iSCSI Targets manageme...
1,812
32.574074
90
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.html
<cd-iscsi-tabs></cd-iscsi-tabs> <legend i18n>Gateways</legend> <div> <cd-table [data]="gateways" (fetchData)="refresh()" [columns]="gatewaysColumns"> </cd-table> </div> <legend i18n>Images</legend> <div> <cd-table [data]="images" [columns]="imagesColumns"> </cd-table> </div...
1,247
22.111111
61
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/bootstrap-create-modal/bootstrap-create-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container i18n class="modal-title">Create Bootstrap Token</ng-container> <ng-container class="modal-content"> <form name="createBootstrapForm" class="form" #formDir="ngForm" [formGroup]="createBootstrapForm" novalid...
3,171
35.045455
86
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/bootstrap-import-modal/bootstrap-import-modal.component.html
<cd-modal [modalRef]="activeModal"> <ng-container i18n class="modal-title">Import Bootstrap Token</ng-container> <ng-container class="modal-content"> <form name="importBootstrapForm" class="form" #formDir="ngForm" [formGroup]="importBootstrapForm" novalid...
3,686
37.010309
88
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/daemon-list/daemon-list.component.html
<cd-table [data]="data" columnMode="flex" [columns]="columns" [autoReload]="-1" (fetchData)="refresh()" [status]="tableStatus"> </cd-table> <ng-template #healthTmpl let-row="row" let-value="value"> <span [ngClass]="row.health_color | mirrorH...
366
25.214286
75
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/image-list/image-list.component.html
<nav ngbNav #nav="ngbNav" class="nav-tabs" cdStatefulTab="image-list"> <ng-container ngbNavItem="issues"> <a ngbNavLink i18n>Issues ({{ image_error.data.length }})</a> <ng-template ngbNavContent> <cd-table [data]="image_error.data" columnMode="flex" ...
2,070
29.910448
76
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.html
<form name="rbdmirroringForm" #formDir="ngForm" [formGroup]="rbdmirroringForm" novalidate> <div class="row mb-3"> <div class="col-md-auto"> <label class="col-form-label" for="siteName" i18n>Site Name</label></div> <div class="col-sm-4 d-flex"> <input ty...
1,756
24.463768
55
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-mode-modal/pool-edit-mode-modal.component.html
<cd-modal [modalRef]="activeModal" pageURL="mirroring"> <ng-container i18n class="modal-title">Edit pool mirror mode</ng-container> <ng-container class="modal-content"> <form name="editModeForm" class="form" #formDir="ngForm" [formGroup]="editModeForm" ...
1,598
34.533333
88
html
null
ceph-main/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-peer-modal/pool-edit-peer-modal.component.html
<cd-modal [modalRef]="activeModal"> <span class="modal-title" i18n>{mode, select, edit {Edit} other {Add}} pool mirror peer</span> <ng-container class="modal-content"> <form name="editPeerForm" class="form" #formDir="ngForm" [formGroup]="editPeerForm" novalidate>...
3,722
35.861386
92
html