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/arch/probe.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "arch/probe.h" #include "arch/intel.h" #include "arch/arm.h" #include "arch/ppc.h" int ceph_arch_probe(void) { if (ceph_arch_probed) return 1; #if defined(__i386__) || defined(__x86_64__) ceph_arch_inte...
603
21.37037
70
cc
null
ceph-main/src/arch/probe.h
#ifndef CEPH_ARCH_PROBE_H #define CEPH_ARCH_PROBE_H #ifdef __cplusplus extern "C" { #endif extern int ceph_arch_probed; /* non-zero if we've probed features */ extern int ceph_arch_probe(void); #ifdef __cplusplus } #endif #endif
235
12.882353
69
h
null
ceph-main/src/auth/Auth.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 ...
7,619
22.8125
79
h
null
ceph-main/src/auth/AuthAuthorizeHandler.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 ...
1,331
26.75
71
h
null
ceph-main/src/auth/AuthClient.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <cstdint> #include <vector> #include "include/buffer_fwd.h" class AuthConnectionMeta; class Connection; class CryptoKey; class AuthClient { public: virtual ~AuthClient() {} /// Build an authe...
1,390
25.75
70
h
null
ceph-main/src/auth/AuthClientHandler.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-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 ...
1,005
22.395349
71
cc
null
ceph-main/src/auth/AuthClientHandler.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 ...
1,947
25.324324
88
h
null
ceph-main/src/auth/AuthMethodList.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-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 ...
2,140
28.736111
100
cc
null
ceph-main/src/auth/AuthMethodList.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 ...
955
21.761905
71
h
null
ceph-main/src/auth/AuthRegistry.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "AuthRegistry.h" #include "cephx/CephxAuthorizeHandler.h" #ifdef HAVE_GSSAPI #include "krb/KrbAuthorizeHandler.hpp" #endif #include "none/AuthNoneAuthorizeHandler.h" #include "common/ceph_context.h" #include "co...
9,647
24.796791
81
cc
null
ceph-main/src/auth/AuthRegistry.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 "AuthAuthorizeHandler.h" #include "AuthMethodList.h" #include "common/ceph_mutex.h" #include "common/ceph_context.h" #include "common/config_cacher.h" class AuthRe...
2,310
27.182927
76
h
null
ceph-main/src/auth/AuthServer.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "AuthRegistry.h" #include "include/common_fwd.h" #include <vector> class Connection; class AuthServer { public: AuthRegistry auth_registry; AuthServer(CephContext *cct) : auth_registry(cct) ...
1,509
28.038462
81
h
null
ceph-main/src/auth/AuthServiceHandler.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-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 ...
2,304
27.109756
87
cc
null
ceph-main/src/auth/AuthServiceHandler.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 ...
2,573
29.642857
95
h
null
ceph-main/src/auth/AuthSessionHandler.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-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 ...
1,463
25.618182
92
cc
null
ceph-main/src/auth/AuthSessionHandler.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...
1,290
23.826923
102
h
null
ceph-main/src/auth/Crypto.cc
// 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 Public * License version 2.1, as published by the Free Software * Fou...
16,749
26.191558
94
cc
null
ceph-main/src/auth/Crypto.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...
6,046
25.995536
77
h
null
ceph-main/src/auth/DummyAuth.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "AuthClient.h" #include "AuthServer.h" class DummyAuthClientServer : public AuthClient, public AuthServer { public: DummyAuthClientServer(CephContext *cct) : AuthServer(cct) {} // client int get_...
1,471
22
70
h
null
ceph-main/src/auth/KeyRing.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-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...
6,441
24.066148
83
cc
null
ceph-main/src/auth/KeyRing.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 ...
3,520
29.617391
121
h
null
ceph-main/src/auth/RotatingKeyRing.cc
#include <map> #include "common/debug.h" #include "auth/RotatingKeyRing.h" #include "auth/KeyRing.h" #define dout_subsys ceph_subsys_auth #undef dout_prefix #define dout_prefix *_dout << "auth: " bool RotatingKeyRing::need_new_secrets() const { std::lock_guard l{lock}; return secrets.need_new_secrets(); } bool...
1,678
22.319444
82
cc
null
ceph-main/src/auth/RotatingKeyRing.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 ...
1,376
24.5
76
h
null
ceph-main/src/auth/cephx/CephxAuthorizeHandler.cc
#include "CephxProtocol.h" #include "CephxAuthorizeHandler.h" #include "common/dout.h" #define dout_subsys ceph_subsys_auth bool CephxAuthorizeHandler::verify_authorizer( CephContext *cct, const KeyStore& keys, const ceph::bufferlist& authorizer_data, size_t connection_secret_required_len, ceph::bufferlist ...
1,371
25.901961
91
cc
null
ceph-main/src/auth/cephx/CephxAuthorizeHandler.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 ...
1,114
26.875
71
h
null
ceph-main/src/auth/cephx/CephxClientHandler.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-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 ...
9,770
28.254491
105
cc
null
ceph-main/src/auth/cephx/CephxClientHandler.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 ...
2,017
24.544304
72
h
null
ceph-main/src/auth/cephx/CephxKeyServer.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-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 ...
13,116
26.327083
123
cc
null
ceph-main/src/auth/cephx/CephxKeyServer.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 ...
9,074
27.009259
91
h
null
ceph-main/src/auth/cephx/CephxProtocol.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-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 * Lic...
17,859
28.520661
111
cc
null
ceph-main/src/auth/cephx/CephxProtocol.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 ...
13,084
23.782197
85
h
null
ceph-main/src/auth/cephx/CephxServiceHandler.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-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 ...
13,167
30.203791
99
cc
null
ceph-main/src/auth/cephx/CephxServiceHandler.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 ...
1,544
27.090909
71
h
null
ceph-main/src/auth/cephx/CephxSessionHandler.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-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...
5,829
28.897436
110
cc
null
ceph-main/src/auth/cephx/CephxSessionHandler.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...
1,128
24.088889
70
h
null
ceph-main/src/auth/krb/KrbAuthorizeHandler.cpp
// -*- 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 SUSE LLC. * Author: Daniel Oliveira <doliveira@suse.com> * * This is free software; you can redistribute it and/or * modify it under the terms of ...
1,345
23.925926
78
cpp
null
ceph-main/src/auth/krb/KrbAuthorizeHandler.hpp
// -*- 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 SUSE LLC. * Author: Daniel Oliveira <doliveira@suse.com> * * This is free software; you can redistribute it and/or * modify it under the terms of ...
1,104
22.510638
70
hpp
null
ceph-main/src/auth/krb/KrbClientHandler.cpp
// -*- 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 SUSE LLC. * Author: Daniel Oliveira <doliveira@suse.com> * * This is free software; you can redistribute it and/or * modify it under the terms of ...
8,553
32.677165
78
cpp
null
ceph-main/src/auth/krb/KrbClientHandler.hpp
// -*- 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 SUSE LLC. * Author: Daniel Oliveira <doliveira@suse.com> * * This is free software; you can redistribute it and/or * modify it under the terms of ...
2,259
25.588235
73
hpp
null
ceph-main/src/auth/krb/KrbProtocol.cpp
// -*- 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 SUSE LLC. * Author: Daniel Oliveira <doliveira@suse.com> * * This is free software; you can redistribute it and/or * modify it under the terms of ...
2,782
30.988506
85
cpp
null
ceph-main/src/auth/krb/KrbProtocol.hpp
// -*- 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 SUSE LLC. * Author: Daniel Oliveira <doliveira@suse.com> * * This is free software; you can redistribute it and/or * modify it under the terms of ...
3,909
23.285714
70
hpp
null
ceph-main/src/auth/krb/KrbServiceHandler.cpp
// -*- 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 SUSE LLC. * Author: Daniel Oliveira <doliveira@suse.com> * * This is free software; you can redistribute it and/or * modify it under the terms of ...
7,650
32.853982
87
cpp
null
ceph-main/src/auth/krb/KrbServiceHandler.hpp
// -*- 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 SUSE LLC. * Author: Daniel Oliveira <doliveira@suse.com> * * This is free software; you can redistribute it and/or * modify it under the terms of ...
1,758
27.370968
76
hpp
null
ceph-main/src/auth/krb/KrbSessionHandler.hpp
// -*- 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 SUSE LLC. * Author: Daniel Oliveira <doliveira@suse.com> * * This is free software; you can redistribute it and/or * modify it under the terms of ...
867
21.842105
70
hpp
null
ceph-main/src/auth/none/AuthNoneAuthorizeHandler.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-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 * Lic...
1,502
25.368421
94
cc
null
ceph-main/src/auth/none/AuthNoneAuthorizeHandler.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 ...
1,123
27.1
71
h
null
ceph-main/src/auth/none/AuthNoneClientHandler.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 ...
1,751
27.258065
86
h
null
ceph-main/src/auth/none/AuthNoneProtocol.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 ...
1,142
28.307692
79
h
null
ceph-main/src/auth/none/AuthNoneServiceHandler.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 ...
1,268
26
71
h
null
ceph-main/src/auth/none/AuthNoneSessionHandler.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 ...
529
25.5
71
h
null
ceph-main/src/blk/BlockDevice.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...
5,393
24.443396
78
cc
null
ceph-main/src/blk/BlockDevice.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 XSky <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under...
8,853
28.029508
117
h
null
ceph-main/src/blk/aio/aio.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <algorithm> #include "aio.h" std::ostream& operator<<(std::ostream& os, const aio_t& aio) { unsigned i = 0; os << "aio: "; for (auto& iov : aio.iov) { os << "\n [" << i++ << "] 0x" << std::hex <...
3,200
24.608
87
cc
null
ceph-main/src/blk/aio/aio.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "acconfig.h" #if defined(HAVE_LIBAIO) #include <libaio.h> #elif defined(HAVE_POSIXAIO) #include <aio.h> #include <sys/event.h> #endif #include <boost/intrusive/list.hpp> #include <boost/container/...
3,965
23.7875
85
h
null
ceph-main/src/blk/kernel/KernelDevice.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 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....
43,353
28.89931
153
cc
null
ceph-main/src/blk/kernel/KernelDevice.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2014 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
4,767
29.369427
111
h
null
ceph-main/src/blk/kernel/io_uring.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "io_uring.h" #if defined(HAVE_LIBURING) #include "liburing.h" #include <sys/epoll.h> using std::list; using std::make_unique; struct ioring_data { struct io_uring io_uring; pthread_mutex_t cq_mutex; pth...
5,354
19.207547
81
cc
null
ceph-main/src/blk/kernel/io_uring.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "acconfig.h" #include "include/types.h" #include "aio/aio.h" struct ioring_data; struct ioring_queue_t final : public io_queue_t { std::unique_ptr<ioring_data> d; unsigned iodepth = 0; bool...
861
24.352941
70
h
null
ceph-main/src/blk/pmem/PMEMDevice.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 Intel <jianpeng.ma@intel.com> * * Author: Jianpeng Ma <jianpeng.ma@intel.com> * * This is free software; you can redistribute it and/or * modify i...
9,091
22.989446
125
cc
null
ceph-main/src/blk/pmem/PMEMDevice.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 Intel <jianpeng.ma@intel.com> * * Author: Jianpeng Ma <jianpeng.ma@intel.com> * * This is free software; you can redistribute it and/or * modify ...
2,206
26.936709
104
h
null
ceph-main/src/blk/spdk/NVMEDevice.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 un...
28,078
27.276939
143
cc
null
ceph-main/src/blk/spdk/NVMEDevice.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 XSky <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under...
2,323
26.341176
104
h
null
ceph-main/src/blk/zoned/HMSMRDevice.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 Red Hat * Copyright (C) 2020 Abutalib Aghayev * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
3,243
23.575758
84
cc
null
ceph-main/src/blk/zoned/HMSMRDevice.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2014 Red Hat * Copyright (C) 2020 Abutalib Aghayev * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
1,323
23.981132
70
h
null
ceph-main/src/ceph-volume/tox_install_command.sh
#!/usr/bin/env bash python -m pip install --editable="file://`pwd`/../python-common" python -m pip install $@
110
26.75
64
sh
null
ceph-main/src/ceph-volume/ceph_volume/tests/functional/scripts/generate_ssh_config.sh
#!/bin/bash # Generate a custom ssh config from Vagrant so that it can then be used by # ansible.cfg path=$1 if [ $# -eq 0 ] then echo "A path to the scenario is required as an argument and it wasn't provided" exit 1 fi cd "$path" vagrant ssh-config > vagrant_ssh_config
285
18.066667
83
sh
null
ceph-main/src/ceph-volume/ceph_volume/tests/functional/scripts/test_unicode.sh
#!/bin/bash # Not entirely sure why these executables don't seem to be available in the # $PATH when running from tox. Calling out to `which` seems to fix it, at the # expense of making the script a bit obtuse mktemp=$(which mktemp) cat=$(which cat) grep=$(which grep) PYTHON_EXECUTABLE=`which python3` STDERR_FILE=$($...
909
24.277778
96
sh
null
ceph-main/src/ceph-volume/ceph_volume/tests/functional/scripts/vagrant_reload.sh
#!/bin/bash # vagrant-libvirt has a common behavior where it times out when "reloading" vms. Instead # of calling `vagrant reload` attempt to halt everything, and then start everything, which gives # this script the ability to try the `vagrant up` again in case of failure # vagrant halt # This should not really be ne...
593
26
96
sh
null
ceph-main/src/ceph-volume/ceph_volume/tests/functional/scripts/vagrant_up.sh
#!/bin/bash set -e retries=0 until [ $retries -ge 5 ] do echo "Attempting to start VMs. Attempts: $retries" timeout 10m vagrant up "$@" && break retries=$[$retries+1] sleep 5 done sleep 10
200
12.4
52
sh
null
ceph-main/src/cephadm/build.sh
#!/bin/bash -ex SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" exec python3 $SCRIPT_DIR/build.py "$@"
120
19.166667
62
sh
null
ceph-main/src/cephadm/vstart-cleanup.sh
#!/bin/sh -ex bin/ceph mon rm `hostname` for f in `bin/ceph orch ls | grep -v NAME | awk '{print $1}'` ; do bin/ceph orch rm $f --force done
146
20
66
sh
null
ceph-main/src/cephadm/vstart-smoke.sh
#!/bin/bash -ex # this is a smoke test, meant to be run against vstart.sh. host="$(hostname)" bin/init-ceph stop || true MON=1 OSD=1 MDS=0 MGR=1 ../src/vstart.sh -d -n -x -l --cephadm export CEPH_DEV=1 bin/ceph orch ls bin/ceph orch apply mds foo 1 bin/ceph orch ls | grep foo while ! bin/ceph orch ps | grep mds.fo...
2,331
25.804598
79
sh
null
ceph-main/src/cephadm/containers/keepalived/skel/init.sh
#!/bin/bash set -e set -o pipefail KEEPALIVED_DEBUG=${KEEPALIVED_DEBUG:-false} KEEPALIVED_KUBE_APISERVER_CHECK=${KEEPALIVED_KUBE_APISERVER_CHECK:-false} KEEPALIVED_CONF=${KEEPALIVED_CONF:-/etc/keepalived/keepalived.conf} KEEPALIVED_VAR_RUN=${KEEPALIVED_VAR_RUN:-/var/run/keepalived} if [[ ${KEEPALIVED_DEBUG,,} == 't...
557
24.363636
73
sh
null
ceph-main/src/client/Client.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...
468,914
27.441499
146
cc
null
ceph-main/src/client/Client.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 ...
60,652
35.781686
130
h
null
ceph-main/src/client/ClientSnapRealm.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "ClientSnapRealm.h" #include "common/Formatter.h" using std::set; using std::vector; void SnapRealm::build_snap_context() { set<snapid_t> snaps; snapid_t max_seq = seq; // start with prior_parents? for...
1,923
29.0625
107
cc
null
ceph-main/src/client/ClientSnapRealm.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CLIENT_SNAPREALM_H #define CEPH_CLIENT_SNAPREALM_H #include "include/types.h" #include "common/snap_types.h" #include "include/xlist.h" struct Inode; struct SnapRealm { inodeno_t ino; int nref; snapi...
1,649
24.384615
101
h
null
ceph-main/src/client/Delegation.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "common/Clock.h" #include "common/Timer.h" #include "Client.h" #include "Inode.h" #include "Fh.h" #include "Delegation.h" class C_Deleg_Timeout : public Context { Delegation *deleg; public: explicit C_Deleg_...
3,545
25.863636
81
cc
null
ceph-main/src/client/Delegation.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef _CEPH_CLIENT_DELEGATION_H #define _CEPH_CLIENT_DELEGATION_H #include "common/Clock.h" #include "common/Timer.h" #include "include/cephfs/ceph_ll_client.h" /* Commands for manipulating delegation state */ #ifndef ...
1,493
24.758621
74
h
null
ceph-main/src/client/Dentry.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/types.h" #include "include/utime.h" #include "Dentry.h" #include "Dir.h" #include "Inode.h" #include "common/Formatter.h" void Dentry::dump(Formatter *f) const { f->dump_string("name", name); f->d...
879
24.882353
74
cc
null
ceph-main/src/client/Dentry.h
#ifndef CEPH_CLIENT_DENTRY_H #define CEPH_CLIENT_DENTRY_H #include "include/lru.h" #include "include/xlist.h" #include "mds/mdstypes.h" #include "Inode.h" #include "InodeRef.h" #include "Dir.h" class Dentry : public LRUObject { public: explicit Dentry(Dir *_dir, const std::string &_name) : dir(_dir), name(_nam...
2,430
23.069307
85
h
null
ceph-main/src/client/Dir.h
#ifndef CEPH_CLIENT_DIR_H #define CEPH_CLIENT_DIR_H #include <string> #include <vector> class Dentry; struct Inode; class Dir { public: Inode *parent_inode; // my inode ceph::unordered_map<std::string, Dentry*> dentries; unsigned num_null_dentries = 0; std::vector<Dentry*> readdir_cache; explicit Di...
416
16.375
53
h
null
ceph-main/src/client/Fh.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 Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
678
19.575758
81
cc
null
ceph-main/src/client/Fh.h
#ifndef CEPH_CLIENT_FH_H #define CEPH_CLIENT_FH_H #include "common/Readahead.h" #include "include/types.h" #include "InodeRef.h" #include "UserPerm.h" #include "mds/flock.h" class Inode; // file handle for any open file state struct Fh { InodeRef inode; int flags; uint64_t gen; UserPerm actor_perms...
1,539
22.333333
77
h
null
ceph-main/src/client/Inode.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "Client.h" #include "Inode.h" #include "Dentry.h" #include "Dir.h" #include "Fh.h" #include "MetaSession.h" #include "ClientSnapRealm.h" #include "Delegation.h" #include "mds/flock.h" using std::dec; using std:...
21,956
25.941104
126
cc
null
ceph-main/src/client/Inode.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CLIENT_INODE_H #define CEPH_CLIENT_INODE_H #include <numeric> #include "include/compat.h" #include "include/ceph_assert.h" #include "include/types.h" #include "include/xlist.h" #include "mds/flock.h" #incl...
9,590
25.133515
95
h
null
ceph-main/src/client/InodeRef.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CLIENT_INODEREF_H #define CEPH_CLIENT_INODEREF_H #include <boost/intrusive_ptr.hpp> class Inode; void intrusive_ptr_add_ref(Inode *in); void intrusive_ptr_release(Inode *in); typedef boost::intrusive_ptr<Ino...
341
25.307692
70
h
null
ceph-main/src/client/MetaRequest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/types.h" #include "client/MetaRequest.h" #include "client/Dentry.h" #include "client/Inode.h" #include "messages/MClientReply.h" #include "common/Formatter.h" void MetaRequest::dump(Formatter *f) const ...
2,238
26.641975
72
cc
null
ceph-main/src/client/MetaRequest.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CLIENT_METAREQUEST_H #define CEPH_CLIENT_METAREQUEST_H #include "include/types.h" #include "include/xlist.h" #include "include/filepath.h" #include "mds/mdstypes.h" #include "InodeRef.h" #include "UserPerm....
6,922
28.088235
95
h
null
ceph-main/src/client/MetaSession.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/types.h" #include "messages/MClientCapRelease.h" #include "MetaSession.h" #include "Inode.h" #include "common/Formatter.h" const char *MetaSession::get_state_name() const { switch (state) { case S...
1,613
24.619048
86
cc
null
ceph-main/src/client/MetaSession.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CLIENT_METASESSION_H #define CEPH_CLIENT_METASESSION_H #include "include/types.h" #include "include/utime.h" #include "include/xlist.h" #include "mds/MDSMap.h" #include "mds/mdstypes.h" #include "messages/MC...
1,861
22.871795
83
h
null
ceph-main/src/client/ObjecterWriteback.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OSDC_OBJECTERWRITEBACKHANDLER_H #define CEPH_OSDC_OBJECTERWRITEBACKHANDLER_H #include "osdc/Objecter.h" #include "osdc/WritebackHandler.h" class ObjecterWriteback : public WritebackHandler { public: Objec...
2,406
32.901408
81
h
null
ceph-main/src/client/RWRef.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) 2020 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
7,286
28.742857
87
h
null
ceph-main/src/client/SyntheticClient.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 ...
95,004
26.625763
132
cc
null
ceph-main/src/client/SyntheticClient.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,239
24.673759
101
h
null
ceph-main/src/client/Trace.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 ...
1,702
20.2875
87
cc
null
ceph-main/src/client/Trace.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 ...
1,348
18.838235
71
h
null
ceph-main/src/client/UserPerm.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...
2,311
23.595745
78
h
null
ceph-main/src/client/barrier.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * * Copyright (C) 2012 CohortFS, LLC. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software...
4,594
22.443878
70
cc
null
ceph-main/src/client/barrier.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * * Copyright (C) 2012 CohortFS, LLC. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software...
2,273
21.74
70
h