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/msg/async/dpdk/TCP.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may ...
29,014
33.45962
109
cc
null
ceph-main/src/msg/async/dpdk/TCP.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may ...
46,417
29.801593
117
h
null
ceph-main/src/msg/async/dpdk/UserspaceEvent.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * Ceph - scalable distributed file system * * Copyright (C) 2016 XSky <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser...
3,333
25.046875
92
cc
null
ceph-main/src/msg/async/dpdk/UserspaceEvent.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * Ceph - scalable distributed file system * * Copyright (C) 2015 XSky <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser...
2,557
22.906542
79
h
null
ceph-main/src/msg/async/dpdk/align.h
/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License. * * You may ...
1,575
29.901961
81
h
null
ceph-main/src/msg/async/dpdk/array_map.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
1,518
28.784314
82
h
null
ceph-main/src/msg/async/dpdk/byteorder.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
2,043
33.644068
79
h
null
ceph-main/src/msg/async/dpdk/capture.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * Ceph - scalable distributed file system * * Copyright (C) 2015 XSky <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser...
1,259
23.705882
70
h
null
ceph-main/src/msg/async/dpdk/circular_buffer.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may ...
10,157
28.189655
93
h
null
ceph-main/src/msg/async/dpdk/const.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
1,293
29.093023
79
h
null
ceph-main/src/msg/async/dpdk/dpdk_rte.cc
/* * 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 ...
5,671
26.668293
98
cc
null
ceph-main/src/msg/async/dpdk/dpdk_rte.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,314
27.9375
80
h
null
ceph-main/src/msg/async/dpdk/ethernet.cc
#include <iomanip> #include "ethernet.h" std::ostream& operator<<(std::ostream& os, const ethernet_address& ea) { auto& m = ea.mac; using u = uint32_t; os << std::hex << std::setw(2) << u(m[0]) << ":" << u(m[1]) << ":" << u(m[2]) << ":" << u(m[3]) << ":" << u(m[4]) << ":" << u(m[5]...
338
18.941176
72
cc
null
ceph-main/src/msg/async/dpdk/ethernet.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
2,297
26.035294
79
h
null
ceph-main/src/msg/async/dpdk/ip_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may ...
2,941
25.745455
90
h
null
ceph-main/src/msg/async/dpdk/net.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may ...
6,704
31.548544
137
cc
null
ceph-main/src/msg/async/dpdk/net.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 ...
4,196
29.194245
101
h
null
ceph-main/src/msg/async/dpdk/queue.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,210
21.793814
79
h
null
ceph-main/src/msg/async/dpdk/shared_ptr.h
// -*- mode:C++; tab-width:8; c-basic-offset:4; indent-tabs-mode:nil -*- /* * 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 ma...
11,638
28.691327
103
h
null
ceph-main/src/msg/async/dpdk/stream.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- /* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may...
4,223
26.076923
79
h
null
ceph-main/src/msg/async/dpdk/toeplitz.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 ...
3,507
36.72043
79
h
null
ceph-main/src/msg/async/dpdk/transfer.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,478
37.138462
116
h
null
ceph-main/src/msg/async/rdma/Infiniband.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2016 XSKY <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under...
41,160
30.135401
163
cc
null
ceph-main/src/msg/async/rdma/Infiniband.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2016 XSKY <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under...
17,645
28.807432
138
h
null
ceph-main/src/msg/async/rdma/RDMAConnectedSocketImpl.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2016 XSKY <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under...
18,298
29.097039
126
cc
null
ceph-main/src/msg/async/rdma/RDMAIWARPConnectedSocketImpl.cc
#include "RDMAStack.h" #define dout_subsys ceph_subsys_ms #undef dout_prefix #define dout_prefix *_dout << " RDMAIWARPConnectedSocketImpl " #define TIMEOUT_MS 3000 #define RETRY_COUNT 7 RDMAIWARPConnectedSocketImpl::RDMAIWARPConnectedSocketImpl(CephContext *cct, std::shared_ptr<Infiniband>& ib, ...
5,671
29.826087
109
cc
null
ceph-main/src/msg/async/rdma/RDMAIWARPServerSocketImpl.cc
#include <poll.h> #include "msg/async/net_handler.h" #include "RDMAStack.h" #define dout_subsys ceph_subsys_ms #undef dout_prefix #define dout_prefix *_dout << " RDMAIWARPServerSocketImpl " RDMAIWARPServerSocketImpl::RDMAIWARPServerSocketImpl( CephContext *cct, std::shared_ptr<Infiniband>& ib, std::shared_ptr<RD...
3,772
30.441667
110
cc
null
ceph-main/src/msg/async/rdma/RDMAServerSocketImpl.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2016 XSKY <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under...
3,787
26.852941
112
cc
null
ceph-main/src/msg/async/rdma/RDMAStack.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2016 XSKY <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under ...
28,620
34.204182
147
cc
null
ceph-main/src/msg/async/rdma/RDMAStack.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2016 XSKY <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under...
11,697
32.907246
110
h
null
ceph-main/src/neorados/RADOS.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) 2018 Red Hat <contact@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
52,108
28.964922
92
cc
null
ceph-main/src/neorados/RADOSImpl.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-2012 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...
3,412
26.97541
136
cc
null
ceph-main/src/neorados/RADOSImpl.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-2012 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...
3,189
22.455882
79
h
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/objsync/boto_del.py
#!/usr/bin/env python # # 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 version 2.1, as published by the Free Software # Foundation. See file COPYING. # ...
1,087
24.904762
76
py
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