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/mgr/MetricTypes.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MGR_METRIC_TYPES_H #define CEPH_MGR_METRIC_TYPES_H #include <boost/variant.hpp> #include "include/denc.h" #include "include/ceph_features.h" #include "mgr/OSDPerfMetricTypes.h" #include "mgr/MDSPerfMetricTyp...
6,982
24.118705
94
h
null
ceph-main/src/mgr/Mgr.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
24,128
27.966387
101
cc
null
ceph-main/src/mgr/Mgr.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 John Spray <john.spray@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
3,325
21.937931
72
h
null
ceph-main/src/mgr/MgrCap.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 * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
17,285
28.752151
95
cc
null
ceph-main/src/mgr/MgrCap.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MGRCAP_H #define CEPH_MGRCAP_H #include <iosfwd> #include "include/common_fwd.h" #include "include/types.h" #include "common/entity_name.h" static const __u8 MGR_CAP_R = (1 << 1); // read static c...
6,053
28.970297
97
h
null
ceph-main/src/mgr/MgrClient.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
17,653
25.428144
84
cc
null
ceph-main/src/mgr/MgrClient.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
5,703
25.407407
74
h
null
ceph-main/src/mgr/MgrCommands.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* no guard; may be included multiple times */ // see MonCommands.h COMMAND("pg stat", "show placement group status.", "pg", "r") COMMAND("pg getmap", "get binary pg map to -o/stdout", "pg", "r") COMMAND("pg dump " ...
8,339
38.339623
111
h
null
ceph-main/src/mgr/MgrContext.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
1,379
17.648649
87
h
null
ceph-main/src/mgr/MgrSession.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MGR_MGRSESSION_H #define CEPH_MGR_MGRSESSION_H #include "common/RefCountedObj.h" #include "common/entity_name.h" #include "msg/msg_types.h" #include "MgrCap.h" /** * Session state associated with the Conn...
832
19.317073
70
h
null
ceph-main/src/mgr/MgrStandby.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
14,740
28.840081
101
cc
null
ceph-main/src/mgr/MgrStandby.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
2,111
22.466667
70
h
null
ceph-main/src/mgr/OSDPerfMetricCollector.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "common/debug.h" #include "common/errno.h" #include "messages/MMgrReport.h" #include "OSDPerfMetricCollector.h" #define dout_context g_ceph_context #define dout_subsys ceph_subsys_mgr #undef dout_prefix #define...
1,299
31.5
81
cc
null
ceph-main/src/mgr/OSDPerfMetricCollector.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef OSD_PERF_METRIC_COLLECTOR_H_ #define OSD_PERF_METRIC_COLLECTOR_H_ #include "mgr/MetricCollector.h" #include "mgr/OSDPerfMetricTypes.h" /** * OSD performance query class. */ class OSDPerfMetricCollector : pub...
670
26.958333
84
h
null
ceph-main/src/mgr/OSDPerfMetricTypes.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "mgr/OSDPerfMetricTypes.h" #include <ostream> using ceph::bufferlist; std::ostream& operator<<(std::ostream& os, const OSDPerfMetricSubKeyDescriptor &d) { switch(d.type) { case OSD...
4,041
28.940741
77
cc
null
ceph-main/src/mgr/OSDPerfMetricTypes.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef OSD_PERF_METRIC_H_ #define OSD_PERF_METRIC_H_ #include "include/denc.h" #include "include/stringify.h" #include "mgr/Types.h" #include <regex> typedef std::vector<std::string> OSDPerfMetricSubKey; // array of ...
9,625
25.66482
88
h
null
ceph-main/src/mgr/PyFormatter.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) 2015 Red Hat Inc * * Author: John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms o...
3,244
22.014184
113
cc
null
ceph-main/src/mgr/PyFormatter.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) 2015 Red Hat Inc * * Author: John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms o...
4,101
24.012195
112
h
null
ceph-main/src/mgr/PyModule.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
23,250
29.117876
93
cc
null
ceph-main/src/mgr/PyModule.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
4,863
24.072165
75
h
null
ceph-main/src/mgr/PyModuleRegistry.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
14,191
30.608018
87
cc
null
ceph-main/src/mgr/PyModuleRegistry.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
6,354
25.045082
83
h
null
ceph-main/src/mgr/PyModuleRunner.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
2,846
24.648649
82
cc
null
ceph-main/src/mgr/PyModuleRunner.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
1,807
19.088889
71
h
null
ceph-main/src/mgr/PyOSDMap.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "Mgr.h" #include "osd/OSDMap.h" #include "common/errno.h" #include "common/version.h" #include "include/stringify.h" #include "PyOSDMap.h" #include "PyFormatter.h" #include "Gil.h" #define dout_context g_ceph_...
21,990
29.458449
89
cc
null
ceph-main/src/mgr/PyOSDMap.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <Python.h> #include <string> extern PyTypeObject BasePyOSDMapType; extern PyTypeObject BasePyOSDMapIncrementalType; extern PyTypeObject BasePyCRUSHType; PyObject *construct_with_capsule( cons...
396
19.894737
70
h
null
ceph-main/src/mgr/PyUtil.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <Python.h> #include "PyUtil.h" PyObject *get_python_typed_option_value( Option::type_t type, const std::string& value) { switch (type) { case Option::TYPE_INT: case Option::TYPE_UINT: case Option::T...
1,037
23.139535
70
cc
null
ceph-main/src/mgr/PyUtil.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 <Python.h> #include "common/options.h" PyObject *get_python_typed_option_value( Option::type_t type, const std::string& value);
275
17.4
70
h
null
ceph-main/src/mgr/ServiceMap.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "mgr/ServiceMap.h" #include <fmt/format.h> #include "common/Formatter.h" using ceph::bufferlist; using ceph::Formatter; // Daemon void ServiceMap::Daemon::encode(bufferlist& bl, uint64_t features) const { ...
6,178
24.427984
91
cc
null
ceph-main/src/mgr/ServiceMap.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> #include <map> #include <list> #include <sstream> #include "include/utime.h" #include "include/buffer.h" #include "msg/msg_types.h" namespace ceph { class Formatter; } struct ServiceMa...
2,838
27.969388
75
h
null
ceph-main/src/mgr/StandbyPyModules.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
5,657
27.149254
79
cc
null
ceph-main/src/mgr/StandbyPyModules.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
2,931
20.880597
82
h
null
ceph-main/src/mgr/TTLCache.cc
#include "TTLCache.h" #include <chrono> #include <functional> #include <string> #include "PyUtil.h" template <class Key, class Value> void TTLCacheBase<Key, Value>::insert(Key key, Value value) { auto now = std::chrono::steady_clock::now(); if (!ttl) return; int16_t random_ttl_offset = ttl * ttl_spread_...
2,639
25.138614
80
cc
null
ceph-main/src/mgr/TTLCache.h
#pragma once #include <atomic> #include <chrono> #include <functional> #include <map> #include <memory> #include <string> #include <vector> #include "PyUtil.h" template <class Key, class Value> class Cache { private: std::atomic<uint64_t> hits, misses; protected: unsigned int capacity; Cache(unsigned int si...
3,154
24.650407
80
h
null
ceph-main/src/mgr/Types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MGR_TYPES_H #define CEPH_MGR_TYPES_H typedef int MetricQueryID; typedef std::pair<uint64_t,uint64_t> PerformanceCounter; typedef std::vector<PerformanceCounter> PerformanceCounters; struct MetricListener {...
554
19.555556
70
h
null
ceph-main/src/mgr/mgr_commands.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "mgr_commands.h" /* The set of statically defined (C++-handled) commands. This * does not include the Python-defined commands, which are loaded * in PyModules */ const std::vector<MonCommand> mgr_commands = {...
457
29.533333
70
cc
null
ceph-main/src/mgr/mgr_commands.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "mon/MonCommand.h" #include <vector> extern const std::vector<MonCommand> mgr_commands;
211
20.2
70
h
null
ceph-main/src/mgr/mgr_perf_counters.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "mgr_perf_counters.h" #include "common/perf_counters.h" #include "common/ceph_context.h" PerfCounters *perfcounter = NULL; int mgr_perf_start(CephContext *cct) { PerfCountersBuilder plb(cct, "mgr", l_m...
804
26.758621
70
cc
null
ceph-main/src/mgr/mgr_perf_counters.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/common_fwd.h" extern PerfCounters* perfcounter; extern int mgr_perf_start(CephContext* cct); extern void mgr_perf_stop(CephContext* cct); enum { l_mgr_first, l_mgr_cache_hit, ...
359
16.142857
70
h
null
ceph-main/src/mon/AuthMonitor.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...
60,827
26.636529
102
cc
null
ceph-main/src/mon/AuthMonitor.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 ...
8,296
29.72963
93
h
null
ceph-main/src/mon/CommandHandler.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 Ltd * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versio...
1,083
23.636364
84
cc
null
ceph-main/src/mon/CommandHandler.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 Ltd * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versio...
823
21.888889
71
h
null
ceph-main/src/mon/ConfigMap.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <boost/algorithm/string/split.hpp> #include "ConfigMap.h" #include "crush/CrushWrapper.h" #include "common/entity_name.h" using namespace std::literals; using std::cerr; using std::cout; using std::dec; using ...
7,234
23.777397
78
cc
null
ceph-main/src/mon/ConfigMap.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 <optional> #include <ostream> #include <string> #include "include/utime.h" #include "common/options.h" #include "common/entity_name.h" class CrushWrapper; // the precedence is thus...
3,994
24.774194
94
h
null
ceph-main/src/mon/ConfigMonitor.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <boost/algorithm/string/predicate.hpp> #include "mon/Monitor.h" #include "mon/ConfigMonitor.h" #include "mon/KVMonitor.h" #include "mon/MgrMonitor.h" #include "mon/OSDMonitor.h" #include "messages/MConfig.h" #in...
27,839
26.347741
87
cc
null
ceph-main/src/mon/ConfigMonitor.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <optional> #include "ConfigMap.h" #include "mon/PaxosService.h" class MonSession; class ConfigMonitor : public PaxosService { version_t version = 0; ConfigMap config_map; std::map<std::stri...
1,565
25.542373
74
h
null
ceph-main/src/mon/ConnectionTracker.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 * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
11,500
30.770718
106
cc
null
ceph-main/src/mon/ConnectionTracker.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 * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2...
6,799
32.009709
81
h
null
ceph-main/src/mon/CreatingPGs.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 <vector> #include "include/encoding.h" #include "include/utime.h" #include "osd/osd_types.h" struct creating_pgs_t { epoch_t last_scan_epoch = 0; struct pg_cre...
6,662
27.353191
79
h
null
ceph-main/src/mon/ElectionLogic.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 ...
17,811
30.978456
113
cc
null
ceph-main/src/mon/ElectionLogic.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 ...
16,840
35.531453
91
h
null
ceph-main/src/mon/Elector.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 ...
24,459
29.272277
113
cc
null
ceph-main/src/mon/Elector.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 ...
12,433
29.550369
88
h
null
ceph-main/src/mon/FSCommands.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat Ltd * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versio...
49,127
28.001181
206
cc
null
ceph-main/src/mon/FSCommands.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat Ltd * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versio...
2,100
22.087912
82
h
null
ceph-main/src/mon/HealthMonitor.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, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
24,509
26.757644
113
cc
null
ceph-main/src/mon/HealthMonitor.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, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
2,202
27.986842
76
h
null
ceph-main/src/mon/KVMonitor.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "mon/Monitor.h" #include "mon/KVMonitor.h" #include "include/stringify.h" #include "messages/MKVData.h" #define dout_subsys ceph_subsys_mon #undef dout_prefix #define dout_prefix _prefix(_dout, mon, this) using...
12,289
22.145009
77
cc
null
ceph-main/src/mon/KVMonitor.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <optional> #include "mon/PaxosService.h" class MonSession; extern const std::string KV_PREFIX; class KVMonitor : public PaxosService { version_t version = 0; std::map<std::string,std::option...
1,945
26.8
84
h
null
ceph-main/src/mon/LogMonitor.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 ...
35,988
26.81221
102
cc
null
ceph-main/src/mon/LogMonitor.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 ...
6,236
28.559242
88
h
null
ceph-main/src/mon/MDSMonitor.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...
72,593
29.222315
127
cc
null
ceph-main/src/mon/MDSMonitor.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 ...
4,982
30.339623
92
h
null
ceph-main/src/mon/MgrMap.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
17,803
26.81875
89
h
null
ceph-main/src/mon/MgrMonitor.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
42,009
27.992409
87
cc
null
ceph-main/src/mon/MgrMonitor.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 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
4,350
28.598639
84
h
null
ceph-main/src/mon/MgrStatMonitor.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "MgrStatMonitor.h" #include "mon/OSDMonitor.h" #include "mon/MgrMonitor.h" #include "mon/PGMap.h" #include "messages/MGetPoolStats.h" #include "messages/MGetPoolStatsReply.h" #include "messages/MMonMgrReport.h" #...
10,479
27.478261
105
cc
null
ceph-main/src/mon/MgrStatMonitor.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "include/Context.h" #include "PaxosService.h" #include "mon/PGMap.h" #include "mgr/ServiceMap.h" class MgrStatMonitor : public PaxosService { // live version version_t version = 0; PGMapDiges...
3,045
26.690909
85
h
null
ceph-main/src/mon/MonCap.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 * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
24,531
34.399711
111
cc
null
ceph-main/src/mon/MonCap.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MONCAP_H #define CEPH_MONCAP_H #include <ostream> #include "include/common_fwd.h" #include "include/types.h" #include "common/entity_name.h" #include "mds/mdstypes.h" static const __u8 MON_CAP_R = (1 <...
6,560
27.776316
92
h
null
ceph-main/src/mon/MonClient.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 ...
58,289
27.20029
126
cc
null
ceph-main/src/mon/MonClient.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 ...
22,553
27.73121
120
h
null
ceph-main/src/mon/MonCommand.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
4,823
26.409091
86
h
null
ceph-main/src/mon/MonCommands.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. * Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This is ...
57,562
39.508797
999
h
null
ceph-main/src/mon/MonMap.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "MonMap.h" #include <algorithm> #include <sstream> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #ifdef WITH_SEASTAR #include <seastar/core/fstream.hh> #include <seastar/core/reactor.hh> #incl...
30,318
29.108242
101
cc
null
ceph-main/src/mon/MonMap.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 ...
15,679
27.56102
91
h
null
ceph-main/src/mon/MonOpRequest.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) 2015 Red Hat <contact@redhat.com> * Copyright (C) 2015 SUSE LINUX GmbH * * This is free software; you can redistribute it and/or * modify it under the t...
5,825
23.376569
77
h
null
ceph-main/src/mon/MonSub.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "MonSub.h" bool MonSub::have_new() const { return !sub_new.empty(); } bool MonSub::need_renew() const { return ceph::coarse_mono_clock::now() > renew_after; } void MonSub::renewed() { if (clock::is_zero(...
2,688
22.382609
79
cc
null
ceph-main/src/mon/MonSub.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 "common/ceph_time.h" #include "include/types.h" // mon subscriptions class MonSub { public: // @returns true if there is any "new" subscriptions bool have_new(...
1,466
30.212766
74
h
null
ceph-main/src/mon/Monitor.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 ...
208,966
29.097508
125
cc
null
ceph-main/src/mon/Monitor.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...
35,945
30.230235
118
h
null
ceph-main/src/mon/MonitorDBStore.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 Inktank, Inc. * * 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...
22,224
26.269939
111
h
null
ceph-main/src/mon/MonmapMonitor.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) 2009 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 Publi...
45,188
29.845734
99
cc
null
ceph-main/src/mon/MonmapMonitor.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) 2009 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 Publi...
3,239
27.928571
79
h
null
ceph-main/src/mon/OSDMonitor.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> * Copyright (C) 2014 Red Hat <contact@redhat.c...
479,187
31.001336
150
cc
null
ceph-main/src/mon/OSDMonitor.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> ...
30,372
33.475596
98
h
null
ceph-main/src/mon/PGMap.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <boost/algorithm/string.hpp> #include "include/rados.h" #include "PGMap.h" #define dout_subsys ceph_subsys_mon #include "common/debug.h" #include "common/Clock.h" #include "common/Formatter.h" #include "global/...
132,123
31.201804
130
cc
null
ceph-main/src/mon/PGMap.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 ...
18,391
31.960573
118
h
null
ceph-main/src/mon/Paxos.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 ...
47,542
28.863693
177
cc
null
ceph-main/src/mon/Paxos.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 ...
43,642
30.511191
86
h
null
ceph-main/src/mon/PaxosFSMap.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...
1,350
23.563636
92
h
null
ceph-main/src/mon/PaxosService.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 ...
13,664
28.261242
105
cc
null
ceph-main/src/mon/PaxosService.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...
25,751
27.581576
85
h
null
ceph-main/src/mon/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 ...
8,043
26.175676
120
h
null
ceph-main/src/mon/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 ...
2,260
25.290698
89
cc
null
ceph-main/src/mon/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,230
23.62
81
h
null
ceph-main/src/mon/health_check.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> #include <map> #include "include/health.h" #include "include/utime.h" #include "common/Formatter.h" struct health_check_t { health_status_t severity; std::string summary; std::list<...
4,875
23.502513
75
h
null
ceph-main/src/mon/mon_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> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
18,274
26.034024
87
h
null
ceph-main/src/mount/conf.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <string> #include <vector> #include <cstring> #include <map> #include "common/async/context_pool.h" #include "common/ceph_context.h" #include "common/ceph_argparse.h" #include "common/config.h" #include "global/...
2,638
22.774775
75
cc