Search is not available for this dataset
repo
stringlengths
2
152
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
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/canonicalize.c
/* * canonicalize.c -- canonicalize pathname by removing symlinks * Copyright (C) 1993 Rick Sladkey <jrs@world.std.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library Public License as published by * the Free Software Foundation; either version 2, ...
4,505
21.088235
77
c
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
null
ceph-main/src/mount/mount.ceph.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <sys/mount.h> #include <stdbool.h> #include <sys/mman.h> #include <wait.h> #include <cap-ng.h> #include <getopt.h> #include "common/module.h" #include "common/secret.h" #include "include/addr_parsing.h" #include "mount.ceph.h" #ifn...
25,524
24.073674
98
c
null
ceph-main/src/mount/mount.ceph.h
#ifndef _SRC_MOUNT_MOUNT_CEPH_H #define _SRC_MOUNT_MOUNT_CEPH_H #ifdef __cplusplus extern "C" { #endif /* * See class CryptoKey * * 2 (for the type of secret) + * 8 (for the timestamp) + * 2 (for the length of secret) + * 16 (for an AES-128 key) */ #define MAX_RAW_SECRET_LEN (2 + 8 + 2 + 16) /* Max length of ...
1,049
22.333333
74
h
null
ceph-main/src/mount/mtab.c
/* * this code lifted from util-linux-ng, licensed GPLv2+, * * git://git.kernel.org/pub/scm/utils/util-linux-ng/util-linux-ng.git * * whoever decided that each special mount program is responsible * for updating /etc/mtab should be spanked. * * <sage@newdream.net> */ #include <unistd.h> #include <errno.h> #i...
8,269
27.033898
79
c
null
ceph-main/src/msg/Connection.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "msg/Connection.h" #include "msg/Messenger.h" bool Connection::is_blackhole() const { auto& conf = msgr->cct->_conf; switch (peer_type) { case CEPH_ENTITY_TYPE_MON: return conf->ms_blackhole_mon; c...
550
21.958333
70
cc
null
ceph-main/src/msg/Connection.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 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,256
27.237354
88
h
null
ceph-main/src/msg/DispatchQueue.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 ...
6,999
25.717557
85
cc
null
ceph-main/src/msg/DispatchQueue.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,715
26.63786
100
h
null
ceph-main/src/msg/Dispatcher.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 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,062
34.209607
88
h
null
ceph-main/src/msg/Message.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifdef ENCODE_DUMP # include <typeinfo> # include <cxxabi.h> #endif #include <iostream> #include "include/types.h" #include "global/global_context.h" #include "Message.h" #include "messages/MPGStats.h" #include "me...
27,917
24.612844
110
cc
null
ceph-main/src/msg/Message.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,899
29.983607
102
h
null
ceph-main/src/msg/MessageRef.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) 2018 Red Hat, Inc. <contact@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
4,134
21.231183
130
h
null
ceph-main/src/msg/Messenger.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <netdb.h> #include "include/types.h" #include "include/random.h" #include "Messenger.h" #include "msg/async/AsyncMessenger.h" Messenger *Messenger::create_client_messenger(CephContext *cct, std::string lname)...
3,152
28.194444
142
cc
null
ceph-main/src/msg/Messenger.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 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...
23,947
27.957678
106
h
null
ceph-main/src/msg/Policy.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "include/ceph_features.h" namespace ceph::net { using peer_type_t = int; /** * A Policy describes the rules of a Connection. Is there a limit on how * much data this Connection can have locally...
4,232
30.827068
80
h
null
ceph-main/src/msg/SimplePolicyMessenger.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> * Portions Copyright (C) 2013 CohortFS, LLC * * This is free software; you can redistribute it and/or * modify i...
2,806
27.07
79
h
null
ceph-main/src/msg/compressor_registry.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "compressor_registry.h" #include "common/dout.h" #define dout_subsys ceph_subsys_ms #undef dout_prefix #define dout_prefix *_dout << "CompressorRegistry(" << this << ") " CompressorRegistry::CompressorRegistry(...
3,797
28.905512
115
cc
null
ceph-main/src/msg/compressor_registry.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 <vector> #include "compressor/Compressor.h" #include "common/ceph_mutex.h" #include "common/ceph_context.h" #include "common/config_cacher.h" class CompressorRegistry : public md_co...
1,838
25.271429
84
h
null
ceph-main/src/msg/msg_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 msg_types.h classes */ #include <fmt/format.h> #include "msg/msg_types.h" template <> struct fmt::formatter<entity_name_t> { constexpr auto parse(format_parse_con...
654
24.192308
75
h
null
ceph-main/src/msg/msg_types.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "msg_types.h" #include <arpa/inet.h> #include <stdlib.h> #include <string.h> #include <netdb.h> #include <fmt/format.h> #include "common/Formatter.h" bool entity_name_t::parse(std::string_view s) { const c...
9,696
21.870283
80
cc
null
ceph-main/src/msg/msg_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 P...
22,865
26.417266
113
h
null
ceph-main/src/msg/async/AsyncConnection.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) 2014 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * mo...
24,932
29.630221
108
cc
null
ceph-main/src/msg/async/AsyncConnection.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 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * mo...
7,342
27.909449
124
h
null
ceph-main/src/msg/async/AsyncMessenger.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) 2014 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * mo...
26,845
26.848548
114
cc
null
ceph-main/src/msg/async/AsyncMessenger.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 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * mo...
11,699
25.958525
90
h
null
ceph-main/src/msg/async/Event.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) 2014 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * m...
13,448
26.559426
112
cc
null
ceph-main/src/msg/async/Event.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 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * m...
7,469
26.666667
130
h
null
ceph-main/src/msg/async/EventEpoll.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) 2014 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * m...
4,238
28.643357
91
cc
null
ceph-main/src/msg/async/EventEpoll.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 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * m...
1,244
23.9
84
h
null
ceph-main/src/msg/async/EventKqueue.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) 2014 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * m...
8,181
29.416357
90
cc
null
ceph-main/src/msg/async/EventKqueue.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 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * m...
1,614
22.75
77
h
null
ceph-main/src/msg/async/EventPoll.cc
// -*- 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) 2022 Rafael Lopez <rafael.lopez@softiron.com> * * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU...
4,904
23.772727
72
cc
null
ceph-main/src/msg/async/EventPoll.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) 2022 Rafael Lopez <rafael.lopez@softiron.com> * * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser...
1,177
22.098039
71
h
null
ceph-main/src/msg/async/EventSelect.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) 2014 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * m...
2,356
23.05102
92
cc
null
ceph-main/src/msg/async/EventSelect.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 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * m...
1,205
27.046512
71
h
null
ceph-main/src/msg/async/PosixStack.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 XSKY <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under...
8,822
24.798246
115
cc
null
ceph-main/src/msg/async/PosixStack.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 XSKY <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under...
1,594
25.583333
102
h
null
ceph-main/src/msg/async/Protocol.cc
#include "Protocol.h" #include "AsyncConnection.h" #include "AsyncMessenger.h" Protocol::Protocol(int type, AsyncConnection *connection) : proto_type(type), connection(connection), messenger(connection->async_msgr), cct(connection->async_msgr->cct) { auth_meta.reset(new AuthConnectionMeta()); } Proto...
340
21.733333
57
cc
null
ceph-main/src/msg/async/Protocol.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef _MSG_ASYNC_PROTOCOL_ #define _MSG_ASYNC_PROTOCOL_ #include <list> #include <map> #include "AsyncConnection.h" #include "include/buffer.h" #include "include/msgr.h" /* * Continuation Helper Classes */ #includ...
3,665
25
77
h
null
ceph-main/src/msg/async/ProtocolV1.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "ProtocolV1.h" #include "common/errno.h" #include "AsyncConnection.h" #include "AsyncMessenger.h" #include "common/EventTrace.h" #include "include/random.h" #include "auth/AuthClient.h" #include "auth/AuthServe...
88,685
32.772277
107
cc
null
ceph-main/src/msg/async/ProtocolV1.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef _MSG_ASYNC_PROTOCOL_V1_ #define _MSG_ASYNC_PROTOCOL_V1_ #include "Protocol.h" class ProtocolV1; using CtPtr = Ct<ProtocolV1>*; class ProtocolV1 : public Protocol { /* * ProtocolV1 State Machine * send_s...
12,449
39.953947
86
h
null
ceph-main/src/msg/async/ProtocolV2.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <type_traits> #include "ProtocolV2.h" #include "AsyncMessenger.h" #include "common/EventTrace.h" #include "common/ceph_crypto.h" #include "common/errno.h" #include "include/random.h" #include "auth/AuthClient.h...
101,661
32.49654
107
cc
null
ceph-main/src/msg/async/ProtocolV2.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef _MSG_ASYNC_PROTOCOL_V2_ #define _MSG_ASYNC_PROTOCOL_V2_ #include "Protocol.h" #include "crypto_onwire.h" #include "compression_meta.h" #include "compression_onwire.h" #include "frames_v2.h" class ProtocolV2 : pu...
10,197
35.815884
83
h
null
ceph-main/src/msg/async/Stack.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 XSky <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under ...
5,235
24.793103
86
cc
null
ceph-main/src/msg/async/Stack.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 XSKY <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under...
12,199
29.272953
147
h
null
ceph-main/src/msg/async/compression_meta.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "compressor/Compressor.h" struct CompConnectionMeta { TOPNSPC::Compressor::CompressionMode con_mode = TOPNSPC::Compressor::COMP_NONE; // negotiated mode TOPNSPC::Compressor::CompressionAlgorithm con_met...
654
28.772727
70
h
null
ceph-main/src/msg/async/compression_onwire.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "compression_onwire.h" #include "compression_meta.h" #include "common/dout.h" #define dout_subsys ceph_subsys_ms namespace ceph::compression::onwire { rxtx_t rxtx_t::create_handler_pair( CephContext* ctx, ...
2,397
26.563218
84
cc
null
ceph-main/src/msg/async/compression_onwire.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_COMPRESSION_ONWIRE_H #define CEPH_COMPRESSION_ONWIRE_H #include <cstdint> #include <optional> #include "compressor/Compressor.h" #include "include/buffer.h" class CompConnectionMeta; namespace ceph::compr...
2,561
23.169811
97
h
null
ceph-main/src/msg/async/crypto_onwire.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <array> #include <openssl/evp.h> #include "crypto_onwire.h" #include "common/debug.h" #include "common/ceph_crypto.h" #include "include/types.h" #define dout_subsys ceph_subsys_ms namespace ceph::crypto::onwi...
9,742
30.429032
83
cc
null
ceph-main/src/msg/async/crypto_onwire.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-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 P...
4,123
30.480916
79
h
null
ceph-main/src/msg/async/frames_v2.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) 2020 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....
20,453
36.121597
79
cc
null
ceph-main/src/msg/async/frames_v2.h
#ifndef _MSG_ASYNC_FRAMES_V2_ #define _MSG_ASYNC_FRAMES_V2_ #include "include/types.h" #include "common/Clock.h" #include "crypto_onwire.h" #include "compression_onwire.h" #include <array> #include <iosfwd> #include <utility> #include <boost/container/static_vector.hpp> /** * Protocol V2 Frame Structures * * Doc...
30,923
33.321865
91
h
null
ceph-main/src/msg/async/net_handler.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) 2014 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * m...
6,550
25.630081
105
cc
null
ceph-main/src/msg/async/net_handler.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 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * m...
1,432
29.489362
98
h
null
ceph-main/src/msg/async/dpdk/ARP.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
2,433
26.044444
79
cc
null
ceph-main/src/msg/async/dpdk/ARP.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
8,248
26.31457
92
h
null
ceph-main/src/msg/async/dpdk/DPDK.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may ...
45,791
32.254902
131
cc
null
ceph-main/src/msg/async/dpdk/DPDK.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may ...
27,139
27.933902
133
h
null
ceph-main/src/msg/async/dpdk/DPDKStack.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
9,216
31.340351
110
cc
null
ceph-main/src/msg/async/dpdk/DPDKStack.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * Ceph - scalable distributed file system * * Copyright (C) 2015 XSky <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser...
7,675
27.117216
125
h
null
ceph-main/src/msg/async/dpdk/EventDPDK.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 XSky <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under...
2,059
22.953488
90
cc
null
ceph-main/src/msg/async/dpdk/EventDPDK.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * Ceph - scalable distributed file system * * Copyright (C) 2015 XSky <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser...
1,152
27.121951
89
h
null
ceph-main/src/msg/async/dpdk/IP.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
14,372
28.819502
132
cc
null
ceph-main/src/msg/async/dpdk/IP.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
11,881
28.410891
111
h
null
ceph-main/src/msg/async/dpdk/IPChecksum.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may ...
2,055
27.957746
92
cc
null
ceph-main/src/msg/async/dpdk/IPChecksum.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
1,807
23.767123
79
h
null
ceph-main/src/msg/async/dpdk/Packet.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
4,497
29.598639
100
cc
null
ceph-main/src/msg/async/dpdk/Packet.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
17,562
30.932727
100
h
null
ceph-main/src/msg/async/dpdk/PacketUtil.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
4,892
30.567742
79
h
null
ceph-main/src/msg/async/dpdk/TCP-Stack.h
/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License. * * You may ...
1,266
29.902439
83
h