repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
null
ceph-main/src/crimson/osd/ops_executer.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <memory> #include <type_traits> #include <utility> #include <boost/intrusive_ptr.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <fmt/os.h> #include <seastar/core/chunked_fifo.hh>...
20,498
31.538095
81
h
null
ceph-main/src/crimson/osd/osd.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/abort_source.hh> #include <seastar/core/future.hh> #include <seastar/core/shared_future.hh> #include <seastar/core/gate.hh> #include <seastar/core/shared_ptr.hh> #include <seastar/core...
9,074
29.45302
98
h
null
ceph-main/src/crimson/osd/osd_connection_priv.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/net/Connection.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/client_request.h" #include "crimson/osd/osd_operations/peering_event.h" #include "crimson/osd/o...
874
30.25
76
h
null
ceph-main/src/crimson/osd/osd_meta.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 <seastar/core/future.hh> #include "osd/osd_types.h" #include "crimson/os/futurized_collection.h" #include "crimson/os/futurized_store.h" namespace ceph::os { clas...
1,698
26.852459
82
h
null
ceph-main/src/crimson/osd/osd_operation.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/common/operation.h" #include "crimson/osd/pg_interval_interrupt_condition.h" #include "crimson/osd/scheduler/scheduler.h" #include "osd/osd_types.h" namespace crimson::os::seastore { tem...
7,670
26.202128
85
h
null
ceph-main/src/crimson/osd/osd_operation_external_tracking.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/osd/osd.h" #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operations/background_recovery.h" #include "crimson/osd/osd_operations/client_request.h" #include "crimson/osd/osd_...
10,245
32.266234
88
h
null
ceph-main/src/crimson/osd/osdmap_gate.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <functional> #include <map> #include <optional> #include <seastar/core/future.hh> #include <seastar/core/shared_future.hh> #include "include/types.h" #include "crimson/osd/osd_operation.h" namesp...
2,053
23.452381
73
h
null
ceph-main/src/crimson/osd/osdmap_service.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "include/types.h" #include "osd/OSDMap.h" class OSDMap; class OSDMapService { public: using cached_map_t = OSDMapRef; using local_cached_map_t = LocalOSDMapRef; virtual ~OSDMapService() = d...
508
22.136364
70
h
null
ceph-main/src/crimson/osd/pg.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <memory> #include <optional> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <seastar/core/future.hh> #include <seastar/core/shared_future.hh> #include "common/dout.h" #in...
23,713
28.385378
84
h
null
ceph-main/src/crimson/osd/pg_activation_blocker.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include <seastar/core/future.hh> #include <seastar/core/shared_future.hh> #include "crimson/common/operation.h" #include "crimson/osd/osd_operation.h" namespace crimson::osd { class PG; clas...
815
21.666667
75
h
null
ceph-main/src/crimson/osd/pg_backend.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 <memory> #include <string> #include <boost/container/flat_set.hpp> #include "include/rados.h" #include "crimson/os/futurized_store.h" #include "crimson/os/futurized_collection.h" #i...
14,909
32.207127
84
h
null
ceph-main/src/crimson/osd/pg_interval_interrupt_condition.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab expandtab #pragma once #include "include/types.h" #include "crimson/common/errorator.h" #include "crimson/common/exception.h" #include "crimson/common/type_helpers.h" namespace crimson::osd { class PG; class IOInter...
1,445
24.368421
72
h
null
ceph-main/src/crimson/osd/pg_map.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 <algorithm> #include <seastar/core/future.hh> #include <seastar/core/shared_future.hh> #include "include/types.h" #include "crimson/common/type_helpers.h" #include "crimson/common/s...
6,427
30.821782
86
h
null
ceph-main/src/crimson/osd/pg_meta.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <tuple> #include <seastar/core/future.hh> #include "osd/osd_types.h" #include "crimson/os/futurized_store.h" /// PG related metadata class PGMeta { crimson::os::FuturizedStore::Shard& store; co...
516
23.619048
70
h
null
ceph-main/src/crimson/osd/pg_recovery.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/future.hh> #include "crimson/osd/backfill_state.h" #include "crimson/osd/pg_interval_interrupt_condition.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/pg_recovery_li...
3,761
30.613445
73
h
null
ceph-main/src/crimson/osd/pg_recovery_listener.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/future.hh> #include "common/hobject.h" #include "include/types.h" #include "osd/osd_types.h" namespace crimson::osd { class ShardServices; }; class RecoveryBackend; class PGRecove...
1,286
31.175
83
h
null
ceph-main/src/crimson/osd/pg_shard_manager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/future.hh> #include <seastar/core/shared_future.hh> #include <seastar/core/sharded.hh> #include "crimson/osd/shard_services.h" #include "crimson/osd/pg_map.h" namespace crimson::os {...
13,064
32.586118
92
h
null
ceph-main/src/crimson/osd/recovery_backend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/future.hh> #include "crimson/common/type_helpers.h" #include "crimson/os/futurized_store.h" #include "crimson/os/futurized_collection.h" #include "crimson/osd/pg_interval_interrupt_co...
7,161
29.606838
79
h
null
ceph-main/src/crimson/osd/replicated_backend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/intrusive_ptr.hpp> #include <seastar/core/future.hh> #include <seastar/core/weak_ptr.hh> #include "include/buffer_fwd.h" #include "osd/osd_types.h" #include "acked_peers.h" #include "pg_back...
2,109
33.032258
82
h
null
ceph-main/src/crimson/osd/replicated_recovery_backend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/common/interruptible_future.h" #include "crimson/osd/pg_interval_interrupt_condition.h" #include "crimson/osd/recovery_backend.h" #include "messages/MOSDPGPull.h" #include "messages/MOSDPG...
5,714
32.617647
77
h
null
ceph-main/src/crimson/osd/shard_services.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <memory> #include <boost/intrusive_ptr.hpp> #include <seastar/core/future.hh> #include "include/common_fwd.h" #include "osd_operation.h" #include "msg/MessageRef.h" #include "crimson/common/except...
17,439
28.509306
106
h
null
ceph-main/src/crimson/osd/state.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string_view> #include <ostream> #include <seastar/core/shared_future.hh> class OSDMap; namespace crimson::osd { // seastar::sharded puts start_single on core 0 constexpr core_id_t PRIMARY_CORE ...
3,658
26.931298
80
h
null
ceph-main/src/crimson/osd/stop_signal.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 ...
2,412
27.72619
92
h
null
ceph-main/src/crimson/osd/watch.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iterator> #include <map> #include <set> #include <seastar/core/shared_ptr.hh> #include "crimson/net/Connection.h" #include "crimson/osd/object_context.h" #include "crimson/osd/pg.h" #include "inc...
7,146
26.809339
92
h
null
ceph-main/src/crimson/osd/osd_operations/background_recovery.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/statechart/event_base.hpp> #include "crimson/net/Connection.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/recovery_backend.h" #include "crimson/common/type_helpers.h" #incl...
3,950
26.248276
107
h
null
ceph-main/src/crimson/osd/osd_operations/client_request.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <seastar/core/future.hh> #include <boost/intrusive/list.hpp> #include <boost/intrusive_ptr.hpp> #include "osd/osd_op_util.h" #include "crimson/net/Connection.h" #include "crimson/osd/object_contex...
9,103
31.283688
91
h
null
ceph-main/src/crimson/osd/osd_operations/client_request_common.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/common/operation.h" #include "crimson/common/type_helpers.h" #include "crimson/osd/osd_operation.h" namespace crimson::osd { struct CommonClientRequest { static InterruptibleOperation::...
539
24.714286
70
h
null
ceph-main/src/crimson/osd/osd_operations/internal_client_request.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/common/type_helpers.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/client_request_common.h" #include "crimson/osd/osd_operations/common/pg_pipeline.h" #inclu...
1,855
25.898551
99
h
null
ceph-main/src/crimson/osd/osd_operations/logmissing_request.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/net/Connection.h" #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/client_request.h" #include "crimson/osd/pg_map.h" #include...
2,211
26.65
95
h
null
ceph-main/src/crimson/osd/osd_operations/logmissing_request_reply.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/net/Connection.h" #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/client_request.h" #include "crimson/osd/pg_map.h" #include...
2,252
27.1625
100
h
null
ceph-main/src/crimson/osd/osd_operations/osdop_params.h
#pragma once #include "messages/MOSDOp.h" #include "osd/osd_types.h" #include "crimson/common/type_helpers.h" // The fields in this struct are parameters that may be needed in multiple // level of processing. I inclosed all those parameters in this struct to // avoid passing each of them as a method parameter. struct...
627
26.304348
74
h
null
ceph-main/src/crimson/osd/osd_operations/peering_event.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <seastar/core/future.hh> #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operation.h" #include "osd/osd_types.h" #include "osd/PGPeeringEvent.h" #include "osd/Pee...
5,450
25.206731
100
h
null
ceph-main/src/crimson/osd/osd_operations/pg_advance_map.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <seastar/core/future.hh> #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/peering_event.h" #include "osd/osd_types.h" #include "crimson/common/type_he...
1,325
20.387097
90
h
null
ceph-main/src/crimson/osd/osd_operations/recovery_subrequest.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "osd/osd_op_util.h" #include "crimson/net/Connection.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/pg.h" #include "crimson/common/type_helpers.h" #include "messages/MOSDFastDispatc...
2,106
24.695122
96
h
null
ceph-main/src/crimson/osd/osd_operations/replicated_request.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "crimson/net/Connection.h" #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/pg_map.h" #include "crimson/osd/osd_operations/client_request.h" #include...
2,179
25.91358
88
h
null
ceph-main/src/crimson/osd/osd_operations/snaptrim_event.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <iostream> #include <seastar/core/future.hh> #include "crimson/osd/osdmap_gate.h" #include "crimson/osd/osd_operation.h" #include "crimson/osd/osd_operations/common/pg_pipeline.h" #include "crimson...
6,538
30.287081
97
h
null
ceph-main/src/crimson/osd/osd_operations/common/pg_pipeline.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "osd/osd_op_util.h" #include "crimson/osd/osd_operation.h" namespace crimson::osd { class CommonPGPipeline { protected: friend class InternalClientRequest; friend class SnapTrimEvent; friend...
970
29.34375
75
h
null
ceph-main/src/crimson/osd/scheduler/mclock_scheduler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2016 Red Hat Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
3,071
23.380952
74
h
null
ceph-main/src/crimson/osd/scheduler/scheduler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
1,891
21.795181
70
h
null
ceph-main/src/crimson/tools/store_nbd/block_driver.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <boost/program_options/variables_map.hpp> #include <boost/program_options/parsers.hpp> #include <seastar/core/future.hh> #include <string> #include <optional> #include "include/buffer.h" /** * ...
3,328
23.659259
70
h
null
ceph-main/src/crimson/tools/store_nbd/tm_driver.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "block_driver.h" #include "crimson/os/seastore/cache.h" #include "crimson/os/seastore/device.h" #include "crimson/os/seastore/transaction_manager.h" #include "test/crimson/seastore/test_block.h" class TMDriver ...
1,513
25.561404
77
h
null
ceph-main/src/crush/CrushCompiler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CRUSH_COMPILER_H #define CEPH_CRUSH_COMPILER_H #include "crush/CrushWrapper.h" #include "crush/grammar.h" #include <map> #include <iostream> class CrushCompiler { CrushWrapper& crush; std::ostream& err...
2,949
30.72043
107
h
null
ceph-main/src/crush/CrushLocation.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CRUSH_LOCATION_H #define CEPH_CRUSH_LOCATION_H #include <iosfwd> #include <map> #include <string> #if FMT_VERSION >= 90000 #include <fmt/ostream.h> #endif #include "common/ceph_mutex.h" #include "include/co...
1,047
21.782609
90
h
null
ceph-main/src/crush/CrushTreeDumper.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2015 Mirantis Inc * * Author: Mykola Golub <mgolub@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the term...
7,915
26.109589
81
h
null
ceph-main/src/crush/crush.c
#ifdef __KERNEL__ # include <linux/slab.h> # include <linux/crush/crush.h> #else # include "crush_compat.h" # include "crush.h" #endif const char *crush_bucket_alg_name(int alg) { switch (alg) { case CRUSH_BUCKET_UNIFORM: return "uniform"; case CRUSH_BUCKET_LIST: return "list"; case CRUSH_BUCKET_TREE: return "tree...
2,978
20.586957
80
c
null
ceph-main/src/crush/crush.h
#ifndef CEPH_CRUSH_CRUSH_H #define CEPH_CRUSH_CRUSH_H #ifdef __KERNEL__ # include <linux/types.h> #else # include "crush_compat.h" #endif /* * CRUSH is a pseudo-random data distribution algorithm that * efficiently distributes input values (typically, data objects) * across a heterogeneous, structured storage clus...
20,023
36.081481
88
h
null
ceph-main/src/crush/crush_compat.h
#ifndef CEPH_CRUSH_COMPAT_H #define CEPH_CRUSH_COMPAT_H #include "include/int_types.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /* asm-generic/bug.h */ #define BUG_ON(x) assert(!(x)) /* linux/kernel.h */ #define U8_MAX ((__u8)~0U) #define S8_MAX ((__s8)(U8_MAX>>1)) #define ...
914
21.875
61
h
null
ceph-main/src/crush/crush_ln_table.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2015 Intel Corporation All Rights Reserved * * 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 * Foundation. See file COPYIN...
12,506
74.8
93
h
null
ceph-main/src/crush/hash.c
#ifdef __KERNEL__ # include <linux/crush/hash.h> #else # include "hash.h" #endif /* * Robert Jenkins' function for mixing 32-bit values * http://burtleburtle.net/bob/hash/evahash.html * a, b = random bits, c = input and output */ #define crush_hashmix(a, b, c) do { \ a = a-b; a = a-c; a = a^(c>>13); \ b = ...
3,206
20.098684
75
c
null
ceph-main/src/crush/hash.h
#ifndef CEPH_CRUSH_HASH_H #define CEPH_CRUSH_HASH_H #ifdef __KERNEL__ # include <linux/types.h> #else # include "crush_compat.h" #endif #define CRUSH_HASH_RJENKINS1 0 #define CRUSH_HASH_DEFAULT CRUSH_HASH_RJENKINS1 extern const char *crush_hash_name(int type); extern __u32 crush_hash32(int type, __u32 a); extern...
611
24.5
74
h
null
ceph-main/src/crush/mapper.h
#ifndef CEPH_CRUSH_MAPPER_H #define CEPH_CRUSH_MAPPER_H /* * CRUSH functions for find rules and then mapping an input to an * output set. * * LGPL-2.1 or LGPL-3.0 */ #include "crush.h" /** @ingroup API * * Map __x__ to __result_max__ items and store them in the __result__ * array. The mapping is done by foll...
3,525
36.913978
72
h
null
ceph-main/src/crypto/crypto_accel.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2016 Mirantis, Inc. * * Author: Adam Kupczyk <akupczyk@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
1,869
35.666667
90
h
null
ceph-main/src/crypto/crypto_plugin.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2016 Mirantis, Inc. * * Author: Adam Kupczyk <akupczyk@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
1,109
26.75
80
h
null
ceph-main/src/crypto/isa-l/isal_crypto_accel.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2016 Mirantis, Inc. * * Author: Adam Kupczyk <akupczyk@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
1,707
38.72093
82
h
null
ceph-main/src/crypto/isa-l/isal_crypto_plugin.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2016 Mirantis, Inc. * * Author: Adam Kupczyk <akupczyk@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Found...
1,345
25.92
80
h
null
ceph-main/src/crypto/openssl/openssl_crypto_accel.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2017 Intel Corporation * * Author: Qiaowei Ren <qiaowei.ren@intel.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Fou...
1,725
38.227273
82
h
null
ceph-main/src/crypto/openssl/openssl_crypto_plugin.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2017 Intel Corporation * * Author: Qiaowei Ren <qiaowei.ren@intel.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Fou...
1,023
24.6
70
h
null
ceph-main/src/crypto/qat/qat_crypto_accel.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2017 Intel Corporation * * Author: Qiaowei Ren <qiaowei.ren@intel.com> * Author: Ganesh Mahalingam <ganesh.mahalingam@intel.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gener...
1,825
37.851064
129
h
null
ceph-main/src/crypto/qat/qat_crypto_plugin.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2017 Intel Corporation * * Author: Qiaowei Ren <qiaowei.ren@intel.com> * Author: Ganesh Mahalingam <ganesh.mahalingam@intel.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gener...
1,117
25
111
h
null
ceph-main/src/crypto/qat/qcccrypto.h
#ifndef QCCCRYPTO_H #define QCCCRYPTO_H #include <atomic> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <pthread.h> #include <thread> #include <mutex> #include <queue> #include <memory> #include "common/async/yield_context.h" #include <memory> #include "common/ceph_mutex.h" #include <vector> #inc...
6,100
27.376744
106
h
null
ceph-main/src/dokan/ceph_dokan.h
/* * Copyright (C) 2021 SUSE LINUX GmbH * * 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 * Foundation. See file COPYING. * */ #pragma once #define CEPH_DOKAN_IO_DEFAULT_TIMEOUT 60 * 5...
1,274
20.982759
65
h
null
ceph-main/src/dokan/dbg.h
// Various helpers used for debugging purposes, such as functions // logging certain flags. Since those can be rather verbose, it's // better if we keep them separate. #ifndef CEPH_DOKAN_DBG_H #define CEPH_DOKAN_DBG_H #include "include/compat.h" #include <sstream> #include "ceph_dokan.h" void print_credentials( ...
614
21.777778
65
h
null
ceph-main/src/erasure-code/ErasureCode.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This library is free software; you can redistribute it and/or ...
3,679
28.206349
80
h
null
ceph-main/src/erasure-code/ErasureCodeInterface.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This library is free software; you can redistribute it and/or ...
18,567
38.590618
89
h
null
ceph-main/src/erasure-code/ErasureCodePlugin.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This li...
2,197
25.481928
75
h
null
ceph-main/src/erasure-code/clay/ErasureCodeClay.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 Indian Institute of Science <office.ece@iisc.ac.in> * * Author: Myna Vajha <mynaramana@gmail.com> * * This library is free software; you can redis...
4,307
32.92126
104
h
null
ceph-main/src/erasure-code/clay/ErasureCodePluginClay.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2018 Indian Institute of Science <office.ece@iisc.ac.in> * * Author: Myna Vajha <mynaramana@gmail.com> * * This library is free software; you can redistribute...
920
28.709677
73
h
null
ceph-main/src/erasure-code/isa/ErasureCodeIsa.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2014 CERN (Switzerland) * * Author: Andreas-Joachim Peters <Andreas.Joachim.Peters@cern.ch> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by ...
3,893
24.285714
129
h
null
ceph-main/src/erasure-code/isa/ErasureCodeIsaTableCache.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2014 CERN (Switzerland) * * Author: Andreas-Joachim Peters <Andreas.Joachim.Peters@cern.ch> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by ...
4,080
38.240385
129
h
null
ceph-main/src/erasure-code/isa/ErasureCodePluginIsa.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This library...
1,030
28.457143
71
h
null
ceph-main/src/erasure-code/jerasure/ErasureCodeJerasure.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2013, 2014 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This l...
7,164
26.988281
80
h
null
ceph-main/src/erasure-code/jerasure/ErasureCodePluginJerasure.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This library...
971
29.375
71
h
null
ceph-main/src/erasure-code/jerasure/jerasure_init.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2013, 2014 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This l...
705
27.24
71
h
null
ceph-main/src/erasure-code/lrc/ErasureCodeLrc.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 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This ...
4,502
31.395683
80
h
null
ceph-main/src/erasure-code/lrc/ErasureCodePluginLrc.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This library...
956
28.90625
71
h
null
ceph-main/src/erasure-code/shec/ErasureCodePluginShec.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: Loic Dachary <loic@dachary.org> * * This library...
1,035
28.6
71
h
null
ceph-main/src/erasure-code/shec/ErasureCodeShec.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 FUJITSU LIMITED * Copyright (C) 2013, 2014 Cloudwatt <libre.licensing@cloudwatt.com> * Copyright (C) 2014 Red Hat <contact@redhat.com> * * Author: ...
4,271
27.864865
87
h
null
ceph-main/src/erasure-code/shec/ErasureCodeShecTableCache.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 FUJITSU LIMITED * Copyright (C) 2014 CERN (Switzerland) * * Author: Takanori Nakao <nakao.takanori@jp.fujitsu.com> * Author: Takeshi Miyamae <miyam...
4,490
36.115702
80
h
null
ceph-main/src/erasure-code/shec/determinant.c
// -*- 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 Fujitsu Laboratories * * Author: Takanori Nakao <nakao.takanori@jp.fujitsu.com> * Author: Takeshi Miyamae <miyamae.takeshi@jp.fujitsu.com> * * Th...
2,145
21.589474
82
c
null
ceph-main/src/exporter/DaemonMetricCollector.h
#pragma once #include "common/admin_socket_client.h" #include <map> #include <string> #include <vector> #include <boost/asio.hpp> #include <boost/json/object.hpp> #include <filesystem> #include <map> #include <string> #include <vector> struct pstat { unsigned long utime; unsigned long stime; unsigned long minf...
2,770
25.141509
98
h
null
ceph-main/src/exporter/util.h
#include "common/hostname.h" #include <chrono> #include <string> #define TIMED_FUNCTION() BlockTimer timer(__FILE__, __FUNCTION__) class BlockTimer { public: BlockTimer(std::string file, std::string function); ~BlockTimer(); void stop(); double get_ms(); private: std::chrono::duration<double, std::milli> ms; ...
606
23.28
68
h
null
ceph-main/src/extblkdev/ExtBlkDevInterface.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * (C) Copyright IBM Corporation 2022 * Author: Martin Ohmacht <mohmacht@us.ibm.com> * * Based on the file ceph/src/erasure-code/ErasureCodeInterface.h * Copyright (C) 2013 Clo...
4,914
33.612676
106
h
null
ceph-main/src/extblkdev/ExtBlkDevPlugin.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * (C) Copyright IBM Corporation 2022 * Author: Martin Ohmacht <mohmacht@us.ibm.com> * * Based on the file ceph/src/erasure-code/ErasureCodePlugin.h * Copyright (C) 2013,2014 C...
1,100
27.230769
71
h
null
ceph-main/src/extblkdev/vdo/ExtBlkDevPluginVdo.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * (C) Copyright IBM Corporation 2022 * Author: Martin Ohmacht <mohmacht@us.ibm.com> * * Based on the file src/erasure-code/clay/ErasureCodePluginClay.h * Copyright (C) 2018 In...
1,103
30.542857
73
h
null
ceph-main/src/extblkdev/vdo/ExtBlkDevVdo.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 * * (C) Copyright IBM Corporation 2022 * Author: Martin Ohmacht <mohmacht@us.ibm.com> * * Based on the file ceph/src/common/blkdev.cc * Copyright (c) 2015 Hewlett-Packard...
1,741
31.867925
97
h
null
ceph-main/src/global/global_context.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
1,395
24.381818
70
h
null
ceph-main/src/global/global_init.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
2,952
27.95098
76
h
null
ceph-main/src/global/pidfile.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
808
26.896552
71
h
null
ceph-main/src/global/signal_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) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
1,758
25.651515
81
h
null
ceph-main/src/include/CompatSet.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...
8,745
29.58042
88
h
null
ceph-main/src/include/Context.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 ...
13,026
23.304104
115
h
null
ceph-main/src/include/alloc_ptr.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
2,562
26.858696
90
h
null
ceph-main/src/include/any.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 Adam C. Emerson <aemerson@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Genera...
21,732
29.82695
86
h
null
ceph-main/src/include/bitmapper.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,099
21.44898
71
h
null
ceph-main/src/include/blobhash.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * * 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,272
22.574074
71
h
null
ceph-main/src/include/btree_map.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_INCLUDE_BTREE_MAP_H #define CEPH_INCLUDE_BTREE_MAP_H #include "include/cpp-btree/btree.h" #include "include/cpp-btree/btree_map.h" #include "include/ceph_assert.h" // cpp-btree uses system assert, blech #i...
1,801
25.115942
97
h
null
ceph-main/src/include/buffer_raw.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2017 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
3,507
27.991736
119
h
null
ceph-main/src/include/ceph_assert.h
#ifndef CEPH_ASSERT_H #define CEPH_ASSERT_H #include <cstdlib> #include <string> #ifndef __STRING # define __STRING(x) #x #endif #if defined(__linux__) #include <features.h> #elif defined(__FreeBSD__) #include <sys/cdefs.h> #define __GNUC_PREREQ(minor, major) __GNUC_PREREQ__(minor, major) #elif defined(__sun) || de...
5,066
33.236486
126
h
null
ceph-main/src/include/ceph_features.h
#ifndef __CEPH_FEATURES #define __CEPH_FEATURES #include "sys/types.h" /* * Each time we reclaim bits for reuse we need to specify another * bitmask that, if all bits are set, indicates we have the new * incarnation of that feature. Base case is 1 (first use) */ #define CEPH_FEATURE_INCARNATION_1 (0ull) #define ...
11,605
40.302491
92
h
null
ceph-main/src/include/ceph_frag.h
#ifndef FS_CEPH_FRAG_H #define FS_CEPH_FRAG_H /* * "Frags" are a way to describe a subset of a 32-bit number space, * using a mask and a value to match against that mask. Any given frag * (subset of the number space) can be partitioned into 2^n sub-frags. * * Frags are encoded into a 32-bit word: * 8 upper bi...
3,114
27.318182
73
h