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/objclass/class_api.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <cstdarg> #include "common/ceph_context.h" #include "common/ceph_releases.h" #include "common/config.h" #include "common/debug.h" #include "objclass/objclass.h" #include "osd/osd_internal_types.h" #include "osd...
4,016
25.78
105
cc
null
ceph-main/src/objclass/objclass.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OBJCLASS_H #define CEPH_OBJCLASS_H #ifdef __cplusplus #include "../include/types.h" #include "msg/msg_types.h" #include "common/hobject.h" #include "common/ceph_time.h" #include "common/ceph_releases.h" #in...
7,686
42.429379
116
h
null
ceph-main/src/os/DBObjectMap.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #include "include/int_types.h" #include "include/buffer.h" #include <iostream> #include <set> #include <map> #include <string> #include <vector> #include "os/ObjectMap.h" #include "kv/KeyValueDB.h" #include "DBObjectMap.h" #include <errno.h> #in...
37,442
25.275789
135
cc
null
ceph-main/src/os/DBObjectMap.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #ifndef DBOBJECTMAP_DB_H #define DBOBJECTMAP_DB_H #include "include/buffer_fwd.h" #include <set> #include <map> #include <string> #include <vector> #include <boost/scoped_ptr.hpp> #include "os/ObjectMap.h" #include "kv/KeyValueDB.h" #include "osd...
16,954
27.982906
86
h
null
ceph-main/src/os/FuseStore.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/compat.h" #include "include/ceph_fuse.h" #include "FuseStore.h" #include "os/ObjectStore.h" #include "include/stringify.h" #include "common/errno.h" #include <fuse_lowlevel.h> #include <sys/types.h> #i...
29,220
21.687112
88
cc
null
ceph-main/src/os/FuseStore.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OS_FUSESTORE_H #define CEPH_OS_FUSESTORE_H #include <string> #include <map> #include <mutex> #include <functional> #include "common/Thread.h" #include "include/buffer.h" class ObjectStore; class FuseStore...
1,028
17.709091
70
h
null
ceph-main/src/os/ObjectMap.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
6,174
34.693642
96
h
null
ceph-main/src/os/ObjectStore.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 ...
2,619
21.982456
108
cc
null
ceph-main/src/os/ObjectStore.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
25,008
30.777637
136
h
null
ceph-main/src/os/SequencerPosition.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef __CEPH_OS_SEQUENCERPOSITION_H #define __CEPH_OS_SEQUENCERPOSITION_H #include "include/types.h" #include "include/encoding.h" #include "common/Formatter.h" #include <ostream> /** * transaction and op offset */...
1,526
25.789474
88
h
null
ceph-main/src/os/Transaction.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "os/Transaction.h" #include "common/Formatter.h" using std::less; using std::list; using std::map; using std::ostream; using std::set; using std::string; using ceph::bufferlist; using ceph::decode; using ceph:...
15,859
26.157534
94
cc
null
ceph-main/src/os/Transaction.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 "include/Context.h" #include "include/int_types.h" #include "include/buffer.h" #include "osd/osd_types.h" #define OPS_PER_PTR 32 void decode_str_str_map_to_bl(ceph::buffer::list::...
42,097
31.333333
125
h
null
ceph-main/src/os/kv.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OS_KV_H #define CEPH_OS_KV_H #include <string> #include "include/byteorder.h" // some key encoding helpers template<typename T> inline static void _key_encode_u32(uint32_t u, T *key) { uint32_t bu; #ifdef...
1,461
17.987013
74
h
null
ceph-main/src/os/bluestore/Allocator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "Allocator.h" #include <bit> #include "StupidAllocator.h" #include "BitmapAllocator.h" #include "AvlAllocator.h" #include "BtreeAllocator.h" #include "HybridAllocator.h" #ifdef HAVE_LIBZBD #include "ZonedAllocato...
7,608
31.105485
108
cc
null
ceph-main/src/os/bluestore/Allocator.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 * * 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 Softw...
2,780
26.81
85
h
null
ceph-main/src/os/bluestore/AvlAllocator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "AvlAllocator.h" #include <bit> #include <limits> #include "common/config_proxy.h" #include "common/debug.h" #define dout_context cct #define dout_subsys ceph_subsys_bluestore #undef dout_prefix #define dout_...
13,279
26.840671
93
cc
null
ceph-main/src/os/bluestore/AvlAllocator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <mutex> #include <boost/intrusive/avl_set.hpp> #include "Allocator.h" #include "os/bluestore/bluestore_types.h" #include "include/mempool.h" struct range_seg_t { MEMPOOL_CLASS_HELPERS(); ///< m...
8,339
29.661765
88
h
null
ceph-main/src/os/bluestore/BitmapAllocator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "BitmapAllocator.h" #define dout_context cct #define dout_subsys ceph_subsys_bluestore #undef dout_prefix #define dout_prefix *_dout << "fbmap_alloc " << this << " " BitmapAllocator::BitmapAllocator(CephContext...
3,397
29.339286
92
cc
null
ceph-main/src/os/bluestore/BitmapAllocator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OS_BLUESTORE_BITMAPFASTALLOCATOR_H #define CEPH_OS_BLUESTORE_BITMAPFASTALLOCATOR_H #include <mutex> #include "Allocator.h" #include "os/bluestore/bluestore_types.h" #include "fastbmap_allocator_impl.h" #inc...
1,428
22.42623
74
h
null
ceph-main/src/os/bluestore/BitmapFreelistManager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "BitmapFreelistManager.h" #include <bit> #include "kv/KeyValueDB.h" #include "os/kv.h" #include "include/stringify.h" #include "common/debug.h" #define dout_context cct #define dout_subsys ceph_subsys_bluestor...
17,656
27.757329
96
cc
null
ceph-main/src/os/bluestore/BitmapFreelistManager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OS_BLUESTORE_BITMAPFREELISTMANAGER_H #define CEPH_OS_BLUESTORE_BITMAPFREELISTMANAGER_H #include "FreelistManager.h" #include <string> #include <mutex> #include "common/ceph_mutex.h" #include "include/buffe...
3,122
29.920792
85
h
null
ceph-main/src/os/bluestore/BlueFS.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <chrono> #include "boost/algorithm/string.hpp" #include "bluestore_common.h" #include "BlueFS.h" #include "common/debug.h" #include "common/errno.h" #include "common/perf_counters.h" #include "Allocator.h" #incl...
150,171
31.122353
113
cc
null
ceph-main/src/os/bluestore/BlueFS.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OS_BLUESTORE_BLUEFS_H #define CEPH_OS_BLUESTORE_BLUEFS_H #include <atomic> #include <mutex> #include <limits> #include "bluefs_types.h" #include "blk/BlockDevice.h" #include "common/RefCountedObj.h" #includ...
24,167
30.509778
127
h
null
ceph-main/src/os/bluestore/BlueRocksEnv.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "BlueRocksEnv.h" #include "BlueFS.h" #include "include/stringify.h" #include "kv/RocksDBStore.h" #include "string.h" using std::string_view; namespace { rocksdb::Status err_to_status(int r) { switch (r) { ...
17,782
28.78727
90
cc
null
ceph-main/src/os/bluestore/BlueRocksEnv.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OS_BLUESTORE_BLUEROCKSENV_H #define CEPH_OS_BLUESTORE_BLUEROCKSENV_H #include <memory> #include <string> #include "rocksdb/options.h" #include "rocksdb/status.h" #include "rocksdb/utilities/env_mirror.h" #i...
6,431
39.968153
88
h
null
ceph-main/src/os/bluestore/BlueStore.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....
591,473
29.132661
147
cc
null
ceph-main/src/os/bluestore/BlueStore.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....
136,767
30.873223
135
h
null
ceph-main/src/os/bluestore/BtreeAllocator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #include "BtreeAllocator.h" #include <bit> #include <limits> #include "common/config_proxy.h" #include "common/debug.h" #define dout_context cct #define dout_subsys ceph_subsys_bluestore #undef dout_prefix #define d...
13,500
27.603814
93
cc
null
ceph-main/src/os/bluestore/BtreeAllocator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:nil -*- // vim: ts=8 sw=2 smarttab #pragma once #include <mutex> #include "include/cpp-btree/btree_map.h" #include "include/cpp-btree/btree_set.h" #include "Allocator.h" #include "os/bluestore/bluestore_types.h" #include "include/mempool.h" class Btree...
5,779
27.756219
88
h
null
ceph-main/src/os/bluestore/FreelistManager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "FreelistManager.h" #include "BitmapFreelistManager.h" #ifdef HAVE_LIBZBD #include "ZonedFreelistManager.h" #endif FreelistManager *FreelistManager::create( CephContext* cct, std::string type, std::string ...
1,724
30.944444
95
cc
null
ceph-main/src/os/bluestore/FreelistManager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OS_BLUESTORE_FREELISTMANAGER_H #define CEPH_OS_BLUESTORE_FREELISTMANAGER_H #include <string> #include <vector> #include <mutex> #include <ostream> #include "kv/KeyValueDB.h" #include "bluestore_types.h" cla...
1,801
26.30303
88
h
null
ceph-main/src/os/bluestore/HybridAllocator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "HybridAllocator.h" #include <bit> #include <limits> #include "common/config_proxy.h" #include "common/debug.h" #define dout_context cct #define dout_subsys ceph_subsys_bluestore #undef dout_prefix #define do...
5,989
25.27193
93
cc
null
ceph-main/src/os/bluestore/HybridAllocator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <mutex> #include "AvlAllocator.h" #include "BitmapAllocator.h" class HybridAllocator : public AvlAllocator { BitmapAllocator* bmap_alloc = nullptr; public: HybridAllocator(CephContext* cct, in...
1,427
25.444444
77
h
null
ceph-main/src/os/bluestore/StupidAllocator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "StupidAllocator.h" #include "bluestore_types.h" #include "common/debug.h" #define dout_context cct #define dout_subsys ceph_subsys_bluestore #undef dout_prefix #define dout_prefix *_dout << "stupidalloc 0x" << ...
10,171
26.344086
97
cc
null
ceph-main/src/os/bluestore/StupidAllocator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OS_BLUESTORE_STUPIDALLOCATOR_H #define CEPH_OS_BLUESTORE_STUPIDALLOCATOR_H #include <mutex> #include "Allocator.h" #include "include/btree_map.h" #include "include/interval_set.h" #include "os/bluestore/blu...
2,085
27.575342
86
h
null
ceph-main/src/os/bluestore/ZonedAllocator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab // // A simple allocator that just hands out space from the next empty zone. This // is temporary, just to get the simplest append-only write workload to work. // // Copyright (C) 2020 Abutalib Aghayev // #include "Zon...
7,178
28.788382
84
cc
null
ceph-main/src/os/bluestore/ZonedAllocator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab // // A simple allocator that just hands out space from the next empty zone. This // is temporary, just to get the simplest append-only write workload to work. // // Copyright (C) 2020 Abutalib Aghayev // #ifndef CEPH_...
3,557
28.404959
79
h
null
ceph-main/src/os/bluestore/ZonedFreelistManager.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab // // A freelist manager for zoned devices. This iteration just keeps the write // pointer per zone. Following iterations will add enough information to enable // cleaning of zones. // // Copyright (C) 2020 Abutalib Agh...
10,146
26.203753
83
cc
null
ceph-main/src/os/bluestore/ZonedFreelistManager.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab // // A freelist manager for zoned devices. // // Copyright (C) 2020 Abutalib Aghayev // #ifndef CEPH_OS_BLUESTORE_ZONEDFREELISTMANAGER_H #define CEPH_OS_BLUESTORE_ZONEDFREELISTMANAGER_H #include "FreelistManager.h" #i...
3,307
28.017544
76
h
null
ceph-main/src/os/bluestore/bluefs_types.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <algorithm> #include "bluefs_types.h" #include "common/Formatter.h" #include "include/uuid.h" #include "include/stringify.h" using std::list; using std::ostream; using ceph::bufferlist; using ceph::Formatter; ...
7,204
24.280702
82
cc
null
ceph-main/src/os/bluestore/bluefs_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OS_BLUESTORE_BLUEFS_TYPES_H #define CEPH_OS_BLUESTORE_BLUEFS_TYPES_H #include <optional> #include "bluestore_types.h" #include "include/utime.h" #include "include/encoding.h" #include "include/denc.h" class...
9,900
28.120588
86
h
null
ceph-main/src/os/bluestore/bluestore_common.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....
1,810
26.439394
70
h
null
ceph-main/src/os/bluestore/bluestore_tool.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <boost/program_options/variables_map.hpp> #include <boost/program_options/parsers.hpp> #include <stdio.h> #include <string.h> #include <filesystem> #include <iostream> #include <fstream> #include <time.h> #inclu...
35,070
29.20758
144
cc
null
ceph-main/src/os/bluestore/bluestore_types.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....
34,221
25.735938
106
cc
null
ceph-main/src/os/bluestore/bluestore_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 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....
38,723
27.122004
91
h
null
ceph-main/src/os/bluestore/fastbmap_allocator_impl.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Bitmap based in-memory allocator implementation. * Author: Igor Fedotov, ifedotov@suse.com * */ #include "fastbmap_allocator_impl.h" uint64_t AllocatorLevel::l0_dives = 0; uint64_t AllocatorLevel::l0_iterations ...
21,287
28.649025
101
cc
null
ceph-main/src/os/bluestore/fastbmap_allocator_impl.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Bitmap based in-memory allocator implementation. * Author: Igor Fedotov, ifedotov@suse.com * */ #ifndef __FAST_BITMAP_ALLOCATOR_IMPL_H #define __FAST_BITMAP_ALLOCATOR_IMPL_H #include "include/intarith.h" #includ...
23,826
27.131051
110
h
null
ceph-main/src/os/bluestore/simple_bitmap.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 * * Author: Gabriel BenHanokh <gbenhano@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
7,889
27.483755
115
cc
null
ceph-main/src/os/bluestore/simple_bitmap.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 * * Author: Gabriel BenHanokh <gbenhano@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
4,928
32.530612
80
h
null
ceph-main/src/os/bluestore/zoned_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OS_BLUESTORE_ZONED_TYPES_H #define CEPH_OS_BLUESTORE_ZONED_TYPES_H #include "include/types.h" #include "kv/KeyValueDB.h" #include "os/kv.h" // Tracks two bits of information about the state of a zone: (1) nu...
1,803
25.925373
86
h
null
ceph-main/src/os/fs/FS.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....
4,160
21.251337
80
cc
null
ceph-main/src/os/fs/FS.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....
1,130
21.176471
73
h
null
ceph-main/src/os/fs/XFS.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....
1,125
19.107143
70
cc
null
ceph-main/src/os/fs/XFS.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....
677
20.1875
70
h
null
ceph-main/src/os/fs/ZFS.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #define HAVE_IOCTL_IN_SYS_IOCTL_H #include <libzfs.h> #include "ZFS.h" const int ZFS::TYPE_FILESYSTEM = ZFS_TYPE_FILESYSTEM; const int ZFS::TYPE_SNAPSHOT = ZFS_TYPE_SNAPSHOT; const int ZFS::TYPE_VOLUME = ZFS_TYPE_VOLUME...
1,942
22.130952
82
cc
null
ceph-main/src/os/fs/ZFS.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_ZFS_H #define CEPH_ZFS_H // Simple wrapper to hide libzfs.h. (it conflicts with standard linux headers) class ZFS { void *g_zfs; public: static const int TYPE_FILESYSTEM; static const int TYPE_SNAPSHO...
1,039
25
78
h
null
ceph-main/src/os/fs/btrfs_ioctl.h
/* * Copyright (C) 2007 Oracle. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHO...
5,542
26.440594
80
h
null
ceph-main/src/os/kstore/KStore.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....
86,112
24.253079
105
cc
null
ceph-main/src/os/kstore/KStore.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....
19,661
27.088571
134
h
null
ceph-main/src/os/kstore/kstore_types.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....
2,522
22.579439
70
cc
null
ceph-main/src/os/kstore/kstore_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 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....
1,969
27.550725
80
h
null
ceph-main/src/os/memstore/MemStore.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
48,112
25.363288
91
cc
null
ceph-main/src/os/memstore/MemStore.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013- Sage Weil <sage@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
13,569
31.698795
105
h
null
ceph-main/src/os/memstore/PageSet.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013- Sage Weil <sage@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
7,090
29.433476
77
h
null
ceph-main/src/osd/ClassHandler.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 "ClassHandler.h" #include "common/errno.h" #include "common/ceph_context.h" #include "include/dlfcn_compat.h" #include <map> #if defined(__FreeBSD__) #include <sys/param.h> #endif #...
10,011
27.524217
129
cc
null
ceph-main/src/osd/ClassHandler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_CLASSHANDLER_H #define CEPH_CLASSHANDLER_H #include <variant> #include "include/types.h" #include "include/common_fwd.h" #include "common/ceph_mutex.h" #include "objclass/objclass.h" //forward declaration ...
3,455
26.212598
79
h
null
ceph-main/src/osd/DynamicPerfStats.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef DYNAMIC_PERF_STATS_H #define DYNAMIC_PERF_STATS_H #include "include/random.h" #include "messages/MOSDOp.h" #include "mgr/OSDPerfMetricTypes.h" #include "osd/OSD.h" #include "osd/OpRequest.h" class DynamicPerfSta...
8,446
30.518657
81
h
null
ceph-main/src/osd/ECBackend.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
80,587
29.491109
113
cc
null
ceph-main/src/osd/ECBackend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
22,919
32.313953
120
h
null
ceph-main/src/osd/ECMsgTypes.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
11,275
27.619289
88
cc
null
ceph-main/src/osd/ECMsgTypes.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
4,596
31.602837
89
h
null
ceph-main/src/osd/ECTransaction.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
19,108
27.393759
80
cc
null
ceph-main/src/osd/ECTransaction.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
6,342
30.557214
74
h
null
ceph-main/src/osd/ECUtil.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #include <errno.h> #include "include/encoding.h" #include "ECUtil.h" using namespace std; using ceph::bufferlist; using ceph::ErasureCodeInterfaceRef; using ceph::Formatter; int ECUtil::decode( const stripe_info_t &sinfo, ErasureCodeInterface...
6,782
26.240964
78
cc
null
ceph-main/src/osd/ECUtil.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
5,509
31.411765
79
h
null
ceph-main/src/osd/ExtentCache.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2016 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
6,010
23.434959
74
cc
null
ceph-main/src/osd/ExtentCache.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....
14,556
28.708163
89
h
null
ceph-main/src/osd/HitSet.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank <info@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public *...
6,492
24.264591
104
cc
null
ceph-main/src/osd/HitSet.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank <info@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public *...
12,721
26.899123
84
h
null
ceph-main/src/osd/MissingLoc.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "MissingLoc.h" #define dout_context cct #undef dout_prefix #define dout_prefix (gen_prefix(*_dout)) #define dout_subsys ceph_subsys_osd using std::set; bool MissingLoc::readable_with_acting( const hobject_t ...
6,135
26.030837
103
cc
null
ceph-main/src/osd/MissingLoc.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <map> #include <set> #include "OSDMap.h" #include "common/HBHandle.h" #include "common/ceph_context.h" #include "common/dout.h" #include "osd_types.h" class MissingLoc { public: class MappingI...
10,587
28.909605
109
h
null
ceph-main/src/osd/OSD.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * Copyright (C) 2017 OVH * * This is free software; you can redistribute it and/or * modify it under the terms o...
351,375
30.108986
135
cc
null
ceph-main/src/osd/OSD.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
62,892
29.604866
106
h
null
ceph-main/src/osd/OSDCap.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...
15,754
28.068266
100
cc
null
ceph-main/src/osd/OSDCap.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
8,045
29.709924
81
h
null
ceph-main/src/osd/OSDMap.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> ...
218,885
28.655331
146
cc
null
ceph-main/src/osd/OSDMap.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> ...
57,805
31.132296
127
h
null
ceph-main/src/osd/OSDMapMapping.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "OSDMapMapping.h" #include "OSDMap.h" #define dout_subsys ceph_subsys_mon #include "common/debug.h" using std::vector; MEMPOOL_DEFINE_OBJECT_FACTORY(OSDMapMapping, osdmapmapping, osdmap_mapping); //...
5,189
23.951923
78
cc
null
ceph-main/src/osd/OSDMapMapping.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OSDMAPMAPPING_H #define CEPH_OSDMAPMAPPING_H #include <vector> #include <map> #include "osd/osd_types.h" #include "common/WorkQueue.h" #include "common/Cond.h" class OSDMap; /// work queue to perform wor...
8,140
21.932394
85
h
null
ceph-main/src/osd/ObjectVersioner.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 ...
914
24.416667
71
h
null
ceph-main/src/osd/OpRequest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #include "OpRequest.h" #include "common/Formatter.h" #include <iostream> #include <vector> #include "common/debug.h" #include "common/config.h" #include "msg/Message.h" #include "messages/MOSDOp.h" #include "messages/MOSDRepOp.h" #include "message...
4,541
25.406977
82
cc
null
ceph-main/src/osd/OpRequest.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2012 New Dream Network/Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Les...
5,812
28.810256
82
h
null
ceph-main/src/osd/PG.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...
81,130
27.617637
113
cc
null
ceph-main/src/osd/PG.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 ...
44,158
29.517623
112
h
null
ceph-main/src/osd/PGBackend.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013,2014 Inktank Storage, Inc. * Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * Thi...
17,716
25.966514
92
cc
null
ceph-main/src/osd/PGBackend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013,2014 Inktank Storage, Inc. * Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * Thi...
19,053
30.338816
95
h
null
ceph-main/src/osd/PGLog.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * ...
40,663
30.498064
120
cc
null
ceph-main/src/osd/PGLog.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * *...
53,934
30.540936
101
h
null
ceph-main/src/osd/PGPeeringEvent.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/mempool.h" #include "osd/PGPeeringEvent.h" #include "messages/MOSDPGLog.h" MEMPOOL_DEFINE_OBJECT_FACTORY(PGPeeringEvent, pg_peering_evt, osd); MLogRec::MLogRec(pg_shard_t from, MOSDPGLog *msg) : from...
458
24.5
70
cc
null
ceph-main/src/osd/PGPeeringEvent.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.hpp> #include "osd/osd_types.h" class MOSDPGLog; /// what we need to instantiate a pg struct PGCreateInfo { spg_t pgid; epoch_t epoch = 0; pg_history_t history; Pa...
6,484
28.343891
80
h