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/rgw/rgw_compression.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <vector> #include "compressor/Compressor.h" #include "rgw_putobj.h" #include "rgw_op.h" #include "rgw_compression_types.h" int rgw_compression_info_from_attr(const bufferlist& attr, ...
2,091
32.206349
85
h
null
ceph-main/src/rgw/rgw_compression_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,050
25.636364
101
h
null
ceph-main/src/rgw/rgw_coroutine.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "include/Context.h" #include "common/ceph_json.h" #include "rgw_coroutine.h" // re-include our assert to clobber the system one; fix dout: #include "include/ceph_assert.h" #include <boost/asio/yield.hpp>...
29,156
24.779841
200
cc
null
ceph-main/src/rgw/rgw_coroutine.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #ifdef _ASSERT_H #define NEED_ASSERT_H #pragma push_macro("_ASSERT_H") #endif #include <boost/asio.hpp> #include <boost/intrusive_ptr.hpp> #ifdef NEED_ASSERT_H #pragma pop_macro("_ASSERT_H") #endif ...
19,197
25.55325
153
h
null
ceph-main/src/rgw/rgw_cors.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) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesse...
5,513
27.42268
81
cc
null
ceph-main/src/rgw/rgw_cors.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
3,817
27.281481
110
h
null
ceph-main/src/rgw/rgw_cors_s3.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) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
7,425
29.064777
114
cc
null
ceph-main/src/rgw/rgw_cors_s3.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
1,504
24.508475
107
h
null
ceph-main/src/rgw/rgw_cors_swift.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
2,339
26.857143
76
h
null
ceph-main/src/rgw/rgw_cr_rest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_cr_rest.h" #include "rgw_coroutine.h" // re-include our assert to clobber the system one; fix dout: #include "include/ceph_assert.h" #include <boost/asio/yield.hpp> #define dout_context g_ceph_con...
8,860
24.173295
145
cc
null
ceph-main/src/rgw/rgw_cr_rest.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <boost/intrusive_ptr.hpp> #include <mutex> #include "include/ceph_assert.h" // boost header clobbers our assert.h #include "rgw_coroutine.h" #include "rgw_rest_conn.h" struct rgw_rest_obj ...
19,624
32.20643
134
h
null
ceph-main/src/rgw/rgw_crypt.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /** * Crypto filters for Put/Post/Get operations. */ #include <string_view> #include <rgw/rgw_op.h> #include <rgw/rgw_crypt.h> #include <auth/Crypto.h> #include <rgw/rgw_b64.h> #include <rgw/rgw_rest_s3.h> #inc...
57,311
35.434838
157
cc
null
ceph-main/src/rgw/rgw_crypt.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /** * Crypto filters for Put/Post/Get operations. */ #pragma once #include <string_view> #include <rgw/rgw_op.h> #include <rgw/rgw_rest.h> #include <rgw/rgw_rest_s3.h> #include "rgw_putobj.h" #include "common/...
6,873
37.188889
98
h
null
ceph-main/src/rgw/rgw_crypt_sanitize.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * rgw_crypt_sanitize.cc * * Created on: Mar 3, 2017 * Author: adam */ #include "rgw_common.h" #include "rgw_crypt_sanitize.h" #include "boost/algorithm/string/predicate.hpp" namespace rgw { namespac...
2,505
27.157303
110
cc
null
ceph-main/src/rgw/rgw_crypt_sanitize.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string_view> #include "rgw_common.h" namespace rgw { namespace crypt_sanitize { /* * Temporary container for suppressing printing if variable contains secret key. */ struct env { std::...
1,789
24.942029
102
h
null
ceph-main/src/rgw/rgw_d3n_cacherequest.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 <fcntl.h> #include <stdlib.h> #include <aio.h> #include "include/rados/librados.hpp" #include "include/Context.h" #include "common/async/completion.h" #include <errno.h> #include "common/er...
5,402
36.006849
146
h
null
ceph-main/src/rgw/rgw_dencoder.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_common.h" #include "rgw_rados.h" #include "rgw_zone.h" #include "rgw_log.h" #include "rgw_acl.h" #include "rgw_acl_s3.h" #include "rgw_cache.h" #include "rgw_meta_sync_status.h" #include "rgw_data_syn...
981
22.380952
97
cc
null
ceph-main/src/rgw/rgw_dmclock.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * Copyright (C) 2019 SUSE LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GN...
1,430
26
84
h
null
ceph-main/src/rgw/rgw_dmclock_async_scheduler.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/async/completion.h" #include "rgw_dmclock_async_scheduler.h" #include "rgw_dmclock_scheduler.h" namespace rgw::dmclock { AsyncScheduler::~AsyncScheduler() { cancel(); if (observer) { cct-...
5,178
27.146739
79
cc
null
ceph-main/src/rgw/rgw_dmclock_async_scheduler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
7,424
33.059633
83
h
null
ceph-main/src/rgw/rgw_dmclock_scheduler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * (C) 2019 SUSE LLC * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Le...
2,173
23.988506
94
h
null
ceph-main/src/rgw/rgw_dmclock_scheduler_ctx.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) 2019 Red Hat, Inc. * (C) 2019 SUSE Linux LLC * This is free software; you can redistribute it and/or * modify it under the terms of the ...
5,839
31.625698
78
cc
null
ceph-main/src/rgw/rgw_dmclock_scheduler_ctx.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "common/perf_counters.h" #include "common/ceph_context.h" #include "common/config.h" #include "rgw_dmclock.h" namespace queue_counters { enum { l_first = 427150, l_qlen, ...
3,159
25.333333
87
h
null
ceph-main/src/rgw/rgw_dmclock_sync_scheduler.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_dmclock_scheduler.h" #include "rgw_dmclock_sync_scheduler.h" #include "rgw_dmclock_scheduler_ctx.h" namespace rgw::dmclock { SyncScheduler::~SyncScheduler() { cancel(); } int SyncScheduler::add_r...
3,340
27.313559
81
cc
null
ceph-main/src/rgw/rgw_dmclock_sync_scheduler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 SUSE Linux Gmbh * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lic...
2,478
30.782051
101
h
null
ceph-main/src/rgw/rgw_env.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_common.h" #include "rgw_log.h" #include <string> #include <map> #include "include/ceph_assert.h" #include "rgw_crypt_sanitize.h" #define dout_context g_ceph_context #define dout_subsys ceph_subsys_r...
3,767
22.698113
133
cc
null
ceph-main/src/rgw/rgw_es_main.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <list> #include <string> #include <iostream> #include "global/global_init.h" #include "global/global_context.h" #include "common/ceph_argparse.h" #include "common/ceph_json.h" #include "rgw_es_query.h" ...
2,598
32.753247
112
cc
null
ceph-main/src/rgw/rgw_es_query.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <list> #include <map> #include <string> #include <iostream> #include <boost/algorithm/string.hpp> #include "common/ceph_json.h" #include "rgw_common.h" #include "rgw_es_query.h" #define dout_context g_c...
16,899
23.246772
174
cc
null
ceph-main/src/rgw/rgw_es_query.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_string.h" class ESQueryStack { std::list<std::string> l; std::list<std::string>::iterator iter; public: explicit ESQueryStack(std::list<std::string>& src) { assign(src); } ...
3,705
21.460606
115
h
null
ceph-main/src/rgw/rgw_file.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "include/compat.h" #include "include/rados/rgw_file.h" #include <sys/types.h> #include <sys/stat.h> #include "rgw_lib.h" #include "rgw_resolve.h" #include "rgw_op.h" #include "rgw_rest.h" #include "rgw_a...
75,443
26.060258
95
cc
null
ceph-main/src/rgw/rgw_file.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "include/rados/rgw_file.h" /* internal header */ #include <string.h> #include <string_view> #include <sys/stat.h> #include <stdint.h> #include <atomic> #include <chrono> #include <thread> #...
77,679
26.179846
92
h
null
ceph-main/src/rgw/rgw_flight.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 2023 IBM * * See file COPYING for licensing information. */ #include <iostream> #include <fstream> #include <mutex> #include <map> #include <algorit...
20,311
27.016552
108
cc
null
ceph-main/src/rgw/rgw_flight.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright 2023 IBM * * See file COPYING for licensing information. */ #pragma once #include <map> #include <mutex> #include <atomic> #include "include/commo...
5,924
25.689189
91
h
null
ceph-main/src/rgw/rgw_flight_frontend.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 2023 IBM * * See file COPYING for licensing information. */ #include <cstdio> #include <filesystem> #include <sstream> #include "arrow/type.h" #inc...
7,224
28.251012
145
cc
null
ceph-main/src/rgw/rgw_flight_frontend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright 2023 IBM * * See file COPYING for licensing information. */ #pragma once #include "include/common_fwd.h" #include "common/Thread.h" #include "rgw_f...
1,934
21.241379
72
h
null
ceph-main/src/rgw/rgw_formats.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) 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 * ...
9,132
23.225464
120
cc
null
ceph-main/src/rgw/rgw_formats.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "common/Formatter.h" #include <list> #include <stdint.h> #include <string> #include <ostream> struct plain_stack_entry { int size; bool is_array; }; /* FIXME: this class is mis-named. ...
3,776
27.186567
112
h
null
ceph-main/src/rgw/rgw_frontend.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <signal.h> #include "rgw_frontend.h" #include "include/str_list.h" #include "include/ceph_assert.h" #define dout_context g_ceph_context #define dout_subsys ceph_subsys_rgw using namespace std; int RG...
2,318
20.877358
74
cc
null
ceph-main/src/rgw/rgw_frontend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <string> #include <vector> #include "common/RWLock.h" #include "rgw_request.h" #include "rgw_process.h" #include "rgw_process_env.h" #include "rgw_realm_reloader.h" #include...
5,004
22.608491
81
h
null
ceph-main/src/rgw/rgw_gc_log.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "include/rados/librados.hpp" #include "cls/rgw/cls_rgw_types.h" // initialize the cls_rgw_gc queue void gc_log_init2(librados::ObjectWriteOperation& op, uint64_t max_size,...
1,041
34.931034
75
h
null
ceph-main/src/rgw/rgw_http_client.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "include/compat.h" #include "common/errno.h" #include <curl/curl.h> #include <curl/easy.h> #include <curl/multi.h> #include "rgw_common.h" #include "rgw_http_client.h" #include "rgw_http_errors.h" #incl...
30,536
23.948529
148
cc
null
ceph-main/src/rgw/rgw_http_client.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "common/async/yield_context.h" #include "common/Cond.h" #include "rgw_common.h" #include "rgw_string.h" #include "rgw_http_client_types.h" #include <atomic> using param_pair_t = std::pair<s...
9,012
24.825215
90
h
null
ceph-main/src/rgw/rgw_http_client_curl.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_http_client_curl.h" #include <mutex> #include <vector> #include <curl/curl.h> #include "rgw_common.h" #define dout_context g_ceph_context #define dout_subsys ceph_subsys_rgw #ifdef WITH_CURL_OPENSSL...
2,530
21.39823
80
cc
null
ceph-main/src/rgw/rgw_http_client_curl.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 SUSE Linux GmBH * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Li...
680
21.7
70
h
null
ceph-main/src/rgw/rgw_http_client_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lic...
1,367
18.542857
73
h
null
ceph-main/src/rgw/rgw_http_errors.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_common.h" typedef const std::map<int,const std::pair<int, const char*>> rgw_http_errors; extern rgw_http_errors rgw_http_s3_errors; extern rgw_http_errors rgw_http_swift_errors; exte...
938
19.866667
78
h
null
ceph-main/src/rgw/rgw_iam_policy.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <cstring> #include <iostream> #include <regex> #include <sstream> #include <stack> #include <utility> #include <arpa/inet.h> #include <experimental/iterator> #include "rapidjson/reader.h" #include "in...
44,595
25.800481
111
cc
null
ceph-main/src/rgw/rgw_iam_policy.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 <bitset> #include <chrono> #include <cstdint> #include <iostream> #include <string> #include <string_view> #include <boost/algorithm/string/predicate.hpp> #include <boost/container/flat_map....
19,086
31.908621
180
h
null
ceph-main/src/rgw/rgw_iam_policy_keywords.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once namespace rgw { namespace IAM { enum class TokenKind { pseudo, top, statement, cond_op, cond_key, version_key, effect_key, princ_type }; enum class TokenID { /// Pseudo-token Top, /// Top...
2,454
16.535714
74
h
null
ceph-main/src/rgw/rgw_jsonparser.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include <string.h> #include <iostream> #include <map> #include "include/types.h" #include "common/Formatter.h" #include "common/ceph_json.h" #include "rgw_common.h" #define dout_subsys ceph...
2,902
20.664179
70
cc
null
ceph-main/src/rgw/rgw_kafka.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_kafka.h" #include "rgw_url.h" #include <librdkafka/rdkafka.h> #include "include/ceph_assert.h" #include <sstream> #include <cstring> #include <unordered_map> #include <string> #include <vector> #incl...
28,163
36.702811
315
cc
null
ceph-main/src/rgw/rgw_kafka.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include <functional> #include <boost/optional.hpp> #include "include/common_fwd.h" namespace rgw::kafka { // the reply callback is expected to get an integer parameter // indicat...
1,873
26.970149
185
h
null
ceph-main/src/rgw/rgw_keystone.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include <fnmatch.h> #include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string.hpp> #include <fstream> #include "common/errno.h" #include "common/ceph_json.h" #include "i...
21,435
29.276836
108
cc
null
ceph-main/src/rgw/rgw_keystone.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <atomic> #include <string_view> #include <type_traits> #include <utility> #include <boost/optional.hpp> #include "rgw_common.h" #include "rgw_http_client.h" #include "common/ceph_mutex.h" #...
9,715
27.162319
99
h
null
ceph-main/src/rgw/rgw_kmip_client.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/Thread.h" #include "include/compat.h" #include "common/errno.h" #include "rgw_common.h" #include "rgw_kmip_client.h" #include <atomic> #define dout_context g_ceph_context #define dout_subsys ceph...
1,493
17
71
cc
null
ceph-main/src/rgw/rgw_kmip_client.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once class RGWKMIPManager; class RGWKMIPTransceiver { public: enum kmip_operation { CREATE, LOCATE, GET, GET_ATTRIBUTES, GET_ATTRIBUTE_LIST, DESTROY }; CephContext *cct; km...
1,404
20.287879
70
h
null
ceph-main/src/rgw/rgw_kmip_client_impl.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <boost/intrusive/list.hpp> #include <atomic> #include <mutex> #include <string.h> #include "include/compat.h" #include "common/errno.h" #include "rgw_common.h" #include "rgw_kmip_client.h" #include "rgw_k...
20,379
26.879617
136
cc
null
ceph-main/src/rgw/rgw_kmip_client_impl.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once struct RGWKmipWorker; class RGWKMIPManagerImpl: public RGWKMIPManager { protected: ceph::mutex lock = ceph::make_mutex("RGWKMIPManager"); ceph::condition_variable cond; struct Request : boost::...
874
30.25
73
h
null
ceph-main/src/rgw/rgw_kms.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /** * Server-side encryption integrations with Key Management Systems (SSE-KMS) */ #include <sys/stat.h> #include "include/str_map.h" #include "common/safe_io.h" #include "rgw/rgw_crypt.h" #include "rgw/rgw_keystone.h"...
39,828
30.165102
125
cc
null
ceph-main/src/rgw/rgw_kms.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /** * Server-side encryption integrations with Key Management Systems (SSE-KMS) */ #pragma once #include <string> static const std::string RGW_SSE_KMS_BACKEND_TESTING = "testing"; static const std::string RGW_SSE_KMS...
2,533
37.984615
107
h
null
ceph-main/src/rgw/rgw_lc.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <string.h> #include <iostream> #include <map> #include <algorithm> #include <tuple> #include <functional> #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string.hpp> #include <boost/...
83,523
28.102439
193
cc
null
ceph-main/src/rgw/rgw_lc.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <array> #include <string> #include <iostream> #include "common/debug.h" #include "include/types.h" #include "include/rados/librados.hpp" #include "common/ceph_mutex.h" #inclu...
15,484
23.157566
102
h
null
ceph-main/src/rgw/rgw_lc_s3.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <string.h> #include <iostream> #include <map> #include "include/types.h" #include "rgw_user.h" #include "rgw_lc_s3.h" #define dout_subsys ceph_subsys_rgw using namespace std; static bool check_date(...
10,501
28.666667
115
cc
null
ceph-main/src/rgw/rgw_lc_s3.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <string> #include <iostream> #include <include/types.h> #include "include/str_list.h" #include "rgw_lc.h" #include "rgw_xml.h" #include "rgw_tag_s3.h" class LCFilter_S3 : pu...
2,063
19.435644
139
h
null
ceph-main/src/rgw/rgw_ldap.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_ldap.h" #include "common/ceph_crypto.h" #include "common/ceph_context.h" #include "common/common_init.h" #include "common/dout.h" #include "common/safe_io.h" #include <boost/algorithm/string.hpp> #i...
3,669
27.015267
114
cc
null
ceph-main/src/rgw/rgw_ldap.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 "acconfig.h" #if defined(HAVE_OPENLDAP) #define LDAP_DEPRECATED 1 #include "ldap.h" #endif #include <stdint.h> #include <tuple> #include <vector> #include <string> #include <iostream> #incl...
3,195
21.992806
99
h
null
ceph-main/src/rgw/rgw_lib.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) 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 * ...
16,552
26.091653
87
cc
null
ceph-main/src/rgw/rgw_lib.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 <mutex> #include "rgw_common.h" #include "rgw_client_io.h" #include "rgw_rest.h" #include "rgw_request.h" #include "rgw_ldap.h" #include "include/ceph_assert.h" #include "rgw_main.h" class O...
5,465
25.028571
93
h
null
ceph-main/src/rgw/rgw_lib_frontend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <boost/container/flat_map.hpp> #include "rgw_lib.h" #include "rgw_file.h" namespace rgw { class RGWLibProcess : public RGWProcess { RGWAccessKey access_key; std::mutex mtx; s...
3,015
25.45614
111
h
null
ceph-main/src/rgw/rgw_loadgen.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <algorithm> #include <sstream> #include <string.h> #include "rgw_loadgen.h" #include "rgw_auth_s3.h" #define dout_subsys ceph_subsys_rgw using namespace std; void RGWLoadGenRequestEnv::set_date(utime_...
3,240
23.55303
103
cc
null
ceph-main/src/rgw/rgw_loadgen.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <string> #include "rgw_client_io.h" struct RGWLoadGenRequestEnv { int port; uint64_t content_length; std::string content_type; std::string request_method; std::str...
1,697
22.260274
70
h
null
ceph-main/src/rgw/rgw_loadgen_process.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/errno.h" #include "common/Throttle.h" #include "common/WorkQueue.h" #include "rgw_rest.h" #include "rgw_frontend.h" #include "rgw_request.h" #include "rgw_process.h" #include "rgw_loadgen.h" #incl...
3,325
21.472973
84
cc
null
ceph-main/src/rgw/rgw_log.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/Clock.h" #include "common/Timer.h" #include "common/utf8.h" #include "common/OutputDataSocket.h" #include "common/Formatter.h" #include "rgw_bucket.h" #include "rgw_log.h" #include "rgw_acl.h" #in...
19,060
25.363762
130
cc
null
ceph-main/src/rgw/rgw_log.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <boost/container/flat_map.hpp> #include "rgw_common.h" #include "common/OutputDataSocket.h" #include <vector> #include <fstream> #include "rgw_sal_fwd.h" class RGWOp; struct delete_multi_ob...
7,535
24.986207
98
h
null
ceph-main/src/rgw/rgw_lua.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <lua.hpp> #include "services/svc_zone.h" #include "rgw_lua_utils.h" #include "rgw_sal_rados.h" #include "rgw_lua.h" #ifdef WITH_RADOSGW_LUA_PACKAGES #include <filesystem> #include <boost/process.hpp> #endi...
6,007
26.686636
158
cc
null
ceph-main/src/rgw/rgw_lua.h
#pragma once #include <string> #include <set> #include "rgw_lua_version.h" #include "common/async/yield_context.h" #include "common/dout.h" #include "rgw_sal_fwd.h" class DoutPrefixProvider; class lua_State; class rgw_user; class DoutPrefixProvider; namespace rgw::sal { class RadosStore; class LuaManager; } name...
2,245
32.029412
164
h
null
ceph-main/src/rgw/rgw_lua_background.cc
#include "rgw_sal_rados.h" #include "rgw_lua_background.h" #include "rgw_lua.h" #include "rgw_lua_utils.h" #include "rgw_perf_counters.h" #include "include/ceph_assert.h" #include <lua.hpp> #define dout_subsys ceph_subsys_rgw namespace rgw::lua { const char* RGWTable::INCREMENT = "increment"; const char* RGWTable::D...
5,748
30.587912
118
cc
null
ceph-main/src/rgw/rgw_lua_background.h
#pragma once #include "common/dout.h" #include "rgw_common.h" #include <string> #include <unordered_map> #include <variant> #include "rgw_lua_utils.h" #include "rgw_realm_reloader.h" namespace rgw::lua { //Interval between each execution of the script is set to 5 seconds constexpr const int INIT_EXECUTE_INTERVAL = 5;...
5,848
29.784211
104
h
null
ceph-main/src/rgw/rgw_lua_data_filter.cc
#include "rgw_lua_data_filter.h" #include "rgw_lua_utils.h" #include "rgw_lua_request.h" #include "rgw_lua_background.h" #include "rgw_process_env.h" #include <lua.hpp> namespace rgw::lua { void push_bufferlist_byte(lua_State* L, bufferlist::iterator& it) { char byte[1]; it.copy(1, byte); lua_pushlstring(...
4,100
27.479167
94
cc
null
ceph-main/src/rgw/rgw_lua_data_filter.h
#pragma once #include "rgw_op.h" class DoutPrefixProvider; namespace rgw::lua { class RGWObjFilter { req_state* const s; const std::string script; public: RGWObjFilter(req_state* s, const std::string& script) : s(s), script(script) {} int execute(bufferlist& bl, off_t offset, const char* op_nam...
1,104
19.849057
82
h
null
ceph-main/src/rgw/rgw_lua_request.cc
#include <sstream> #include <stdexcept> #include <lua.hpp> #include "common/dout.h" #include "services/svc_zone.h" #include "rgw_lua_utils.h" #include "rgw_lua.h" #include "rgw_common.h" #include "rgw_log.h" #include "rgw_op.h" #include "rgw_process_env.h" #include "rgw_zone.h" #include "rgw_acl.h" #include "rgw_sal_ra...
29,324
32.745685
126
cc
null
ceph-main/src/rgw/rgw_lua_request.h
#pragma once #include <string> #include "include/common_fwd.h" #include "rgw_sal_fwd.h" struct lua_State; class req_state; class RGWREST; class OpsLogSink; namespace rgw::lua::request { // create the request metatable void create_top_metatable(lua_State* L, req_state* s, const char* op_name); // execute a lua scri...
530
18.666667
75
h
null
ceph-main/src/rgw/rgw_lua_utils.cc
#include <string> #include <lua.hpp> #include "common/ceph_context.h" #include "common/dout.h" #include "rgw_lua_utils.h" #include "rgw_lua_version.h" #define dout_subsys ceph_subsys_rgw namespace rgw::lua { // TODO - add the folowing generic functions // lua_push(lua_State* L, const std::string& str) // template<ty...
2,652
26.635417
122
cc
null
ceph-main/src/rgw/rgw_lua_utils.h
#pragma once #include <type_traits> #include <variant> #include <string.h> #include <memory> #include <map> #include <string> #include <string_view> #include <ctime> #include <lua.hpp> #include "include/common_fwd.h" #include "rgw_perf_counters.h" // a helper type traits structs for detecting std::variant template<c...
16,092
32.737945
154
h
null
ceph-main/src/rgw/rgw_lua_version.h
#pragma once #include <lua.hpp> #include <string> namespace rgw::lua { const std::string CEPH_LUA_VERSION(LUA_VERSION_MAJOR "." LUA_VERSION_MINOR); }
155
12
76
h
null
ceph-main/src/rgw/rgw_main.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <boost/intrusive/list.hpp> #include "common/ceph_argparse.h" #include "global/global_init.h" #include "global/signal_handler.h" #include "common/config.h" #include "common/errno.h" #include "common/Timer.h...
5,292
27.005291
89
cc
null
ceph-main/src/rgw/rgw_main.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2022 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
3,556
24.407143
94
h
null
ceph-main/src/rgw/rgw_mdlog.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
5,365
27.695187
175
h
null
ceph-main/src/rgw/rgw_mdlog_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lic...
689
18.166667
70
h
null
ceph-main/src/rgw/rgw_meta_sync_status.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include "common/ceph_time.h" struct rgw_meta_sync_info { enum SyncState { StateInit = 0, StateBuildingFullSyncMaps = 1, StateSync = 2, }; uint16_t state; uint...
2,955
23.229508
76
h
null
ceph-main/src/rgw/rgw_metadata.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_metadata.h" #include "rgw_mdlog.h" #include "services/svc_meta.h" #include "services/svc_meta_be_sobj.h" #define dout_subsys ceph_subsys_rgw using namespace std; void LogStatusDump::dump(Formatt...
18,662
25.891931
174
cc
null
ceph-main/src/rgw/rgw_multi.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <string.h> #include <iostream> #include <map> #include "include/types.h" #include "rgw_xml.h" #include "rgw_multi.h" #include "rgw_op.h" #include "rgw_sal.h" #include "rgw_sal_rados.h" #include "servic...
2,661
24.596154
111
cc
null
ceph-main/src/rgw/rgw_multi.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include "rgw_xml.h" #include "rgw_obj_types.h" #include "rgw_obj_manifest.h" #include "rgw_compression_types.h" #include "common/dout.h" #include "rgw_sal_fwd.h" #define MULTIPART_UPL...
1,368
20.730159
110
h
null
ceph-main/src/rgw/rgw_multi_del.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <string.h> #include <iostream> #include "include/types.h" #include "rgw_xml.h" #include "rgw_multi_del.h" #define dout_subsys ceph_subsys_rgw using namespace std; bool RGWMultiDelObject::xml_end(cons...
1,815
23.540541
91
cc
null
ceph-main/src/rgw/rgw_multi_del.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <vector> #include "rgw_xml.h" #include "rgw_common.h" class RGWMultiDelDelete : public XMLObj { public: RGWMultiDelDelete() :quiet(false) {} ~RGWMultiDelDelete() override {} bool xml_e...
1,262
19.047619
70
h
null
ceph-main/src/rgw/rgw_multiparser.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <string.h> #include <iostream> #include <map> #include "include/types.h" #include "rgw_multi.h" #define dout_subsys ceph_subsys_rgw using namespace std; int main(int argc, char **argv) { RGWMultiXM...
756
14.770833
70
cc
null
ceph-main/src/rgw/rgw_multipart_meta_filter.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "svc_tier_rados.h" using namespace std; const std::string MP_META_SUFFIX = ".meta"; bool MultipartMetaFilter::filter(const string& name, string& key) { // the length of the suffix so we can skip past ...
791
23
70
cc
null
ceph-main/src/rgw/rgw_notify_event_type.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "rgw_notify_event_type.h" #include "include/str_list.h" namespace rgw::notify { std::string to_string(EventType t) { switch (t) { case ObjectCreated: return "s3:ObjectCreated:*"; case Objec...
4,276
34.641667
92
cc
null
ceph-main/src/rgw/rgw_notify_event_type.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 <vector> namespace rgw::notify { enum EventType { ObjectCreated = 0xF, ObjectCreatedPut = 0x1, ObjectCreatedPost ...
1,803
35.08
83
h
null
ceph-main/src/rgw/rgw_obj_manifest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_obj_manifest.h" #include "rgw_rados.h" // RGW_OBJ_NS_SHADOW and RGW_OBJ_NS_MULTIPART using namespace std; void RGWObjManifest::obj_iterator::operator++() { if (manifest->explicit_objs) { ++ex...
6,883
25.375479
187
cc