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/include/win32/sys/uio.h
#include "include/compat.h"
28
13.5
27
h
null
ceph-main/src/include/win32/sys/un.h
#include "include/win32/winsock_compat.h"
42
20.5
41
h
null
ceph-main/src/java/native/JniConstants.cpp
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1,491
33.697674
82
cpp
null
ceph-main/src/java/native/JniConstants.h
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
2,195
40.433962
99
h
null
ceph-main/src/java/native/ScopedLocalRef.h
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1,617
24.28125
80
h
null
ceph-main/src/java/native/libcephfs_jni.cc
/* * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or s...
79,866
25.323995
128
cc
null
ceph-main/src/journal/Entry.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/Entry.h" #include "include/encoding.h" #include "include/stringify.h" #include "common/Formatter.h" #include <strstream> #define dout_subsys ceph_subsys_journaler #undef dout_prefix #define dout_prefix ...
4,346
26.16875
82
cc
null
ceph-main/src/journal/Entry.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_ENTRY_H #define CEPH_JOURNAL_ENTRY_H #include "include/int_types.h" #include "include/buffer.h" #include "include/encoding.h" #include <iosfwd> #include <string> namespace ceph { class Formatter; } ...
1,402
21.269841
83
h
null
ceph-main/src/journal/Future.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/Future.h" #include "journal/FutureImpl.h" #include "include/ceph_assert.h" namespace journal { Future::Future() = default; Future::Future(const Future& o) = default; Future& Future::operator=(const Fut...
1,026
24.04878
94
cc
null
ceph-main/src/journal/Future.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_FUTURE_H #define CEPH_JOURNAL_FUTURE_H #include <iosfwd> #include <string> #include "include/ceph_assert.h" #include "include/int_types.h" #include "common/ref.h" class Context; namespace journal ...
1,106
18.086207
70
h
null
ceph-main/src/journal/FutureImpl.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/FutureImpl.h" #include "journal/Utils.h" namespace journal { FutureImpl::FutureImpl(uint64_t tag_tid, uint64_t entry_tid, uint64_t commit_tid) : m_tag_tid(tag_tid), m_entry...
4,087
23.333333
82
cc
null
ceph-main/src/journal/FutureImpl.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_FUTURE_IMPL_H #define CEPH_JOURNAL_FUTURE_IMPL_H #include "include/int_types.h" #include "common/RefCountedObj.h" #include "include/Context.h" #include "journal/Future.h" #include <list> #include <ma...
3,161
24.707317
90
h
null
ceph-main/src/journal/JournalMetadata.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/JournalMetadata.h" #include "journal/Utils.h" #include "common/errno.h" #include "common/Timer.h" #include "cls/journal/cls_journal_client.h" #include <functional> #include <set> #define dout_subsys cep...
35,478
29.427959
137
cc
null
ceph-main/src/journal/JournalMetadata.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_JOURNAL_METADATA_H #define CEPH_JOURNAL_JOURNAL_METADATA_H #include "include/int_types.h" #include "include/Context.h" #include "include/rados/librados.hpp" #include "common/AsyncOpTracker.h" #includ...
11,486
29.550532
83
h
null
ceph-main/src/journal/JournalMetadataListener.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 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 ve...
758
23.483871
70
h
null
ceph-main/src/journal/JournalPlayer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "common/PriorityCache.h" #include "include/stringify.h" #include "journal/JournalPlayer.h" #include "journal/Entry.h" #include "journal/ReplayHandler.h" #include "journal/Types.h" #include "journal/Utils.h" #def...
28,705
31.919725
90
cc
null
ceph-main/src/journal/JournalPlayer.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_JOURNAL_PLAYER_H #define CEPH_JOURNAL_JOURNAL_PLAYER_H #include "include/int_types.h" #include "include/Context.h" #include "include/rados/librados.hpp" #include "common/AsyncOpTracker.h" #include "c...
5,090
27.762712
82
h
null
ceph-main/src/journal/JournalRecorder.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/JournalRecorder.h" #include "common/errno.h" #include "journal/Entry.h" #include "journal/Utils.h" #include <atomic> #define dout_subsys ceph_subsys_journaler #undef dout_prefix #define dout_prefix *_d...
14,655
32.691954
82
cc
null
ceph-main/src/journal/JournalRecorder.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_JOURNAL_RECORDER_H #define CEPH_JOURNAL_JOURNAL_RECORDER_H #include "include/int_types.h" #include "include/Context.h" #include "include/rados/librados.hpp" #include "common/ceph_mutex.h" #include "c...
3,690
27.612403
80
h
null
ceph-main/src/journal/JournalTrimmer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/JournalTrimmer.h" #include "journal/Utils.h" #include "common/Cond.h" #include "common/errno.h" #include <limits> #define dout_subsys ceph_subsys_journaler #undef dout_prefix #define dout_prefix *_dout ...
7,743
30.225806
84
cc
null
ceph-main/src/journal/JournalTrimmer.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_JOURNAL_TRIMMER_H #define CEPH_JOURNAL_JOURNAL_TRIMMER_H #include "include/int_types.h" #include "include/rados/librados.hpp" #include "include/Context.h" #include "common/AsyncOpTracker.h" #include ...
2,407
24.617021
78
h
null
ceph-main/src/journal/Journaler.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/Journaler.h" #include "include/stringify.h" #include "common/errno.h" #include "common/Timer.h" #include "common/WorkQueue.h" #include "journal/Entry.h" #include "journal/FutureImpl.h" #include "journal/...
13,888
28.99784
91
cc
null
ceph-main/src/journal/Journaler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_JOURNALER_H #define CEPH_JOURNAL_JOURNALER_H #include "include/int_types.h" #include "include/buffer_fwd.h" #include "include/Context.h" #include "include/rados/librados.hpp" #include "journal/Future...
5,545
31.432749
81
h
null
ceph-main/src/journal/ObjectPlayer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/ObjectPlayer.h" #include "journal/Utils.h" #include "common/Timer.h" #include <limits> #define dout_subsys ceph_subsys_journaler #undef dout_prefix #define dout_prefix *_dout << "ObjectPlayer: " << this...
10,124
27.441011
83
cc
null
ceph-main/src/journal/ObjectPlayer.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_OBJECT_PLAYER_H #define CEPH_JOURNAL_OBJECT_PLAYER_H #include "include/Context.h" #include "include/interval_set.h" #include "include/rados/librados.hpp" #include "common/ceph_mutex.h" #include "comm...
3,672
24.866197
79
h
null
ceph-main/src/journal/ObjectRecorder.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/ObjectRecorder.h" #include "journal/Future.h" #include "journal/Utils.h" #include "include/ceph_assert.h" #include "common/Timer.h" #include "common/errno.h" #include "cls/journal/cls_journal_client.h" ...
13,578
30.950588
89
cc
null
ceph-main/src/journal/ObjectRecorder.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_OBJECT_RECORDER_H #define CEPH_JOURNAL_OBJECT_RECORDER_H #include "include/utime.h" #include "include/Context.h" #include "include/rados/librados.hpp" #include "common/ceph_mutex.h" #include "common/...
4,394
26.298137
82
h
null
ceph-main/src/journal/ReplayEntry.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_REPLAY_ENTRY_H #define CEPH_JOURNAL_REPLAY_ENTRY_H #include "include/int_types.h" #include "include/buffer.h" namespace journal { class ReplayEntry { public: ReplayEntry() : m_commit_tid(0) { }...
695
18.885714
70
h
null
ceph-main/src/journal/ReplayHandler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_REPLAY_HANDLER_H #define CEPH_JOURNAL_REPLAY_HANDLER_H namespace journal { struct ReplayHandler { virtual void handle_entries_available() = 0; virtual void handle_complete(int r) = 0; virtual ...
408
21.722222
70
h
null
ceph-main/src/journal/Settings.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_SETTINGS_H #define CEPH_JOURNAL_SETTINGS_H #include "include/int_types.h" namespace journal { struct Settings { double commit_interval = 5; ///< commit position throttle (in secs) uint6...
637
28
79
h
null
ceph-main/src/journal/Types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_TYPES_H #define CEPH_JOURNAL_TYPES_H namespace journal { struct CacheRebalanceHandler { virtual ~CacheRebalanceHandler() { } virtual void handle_cache_rebalanced(uint64_t new_cache_bytes) = 0...
720
23.862069
70
h
null
ceph-main/src/journal/Utils.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "journal/Utils.h" #include "include/Context.h" #include "include/stringify.h" namespace journal { namespace utils { std::string get_object_name(const std::string &prefix, uint64_t number) { return prefix + st...
670
24.807692
73
cc
null
ceph-main/src/journal/Utils.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_JOURNAL_UTILS_H #define CEPH_JOURNAL_UTILS_H #include "include/int_types.h" #include "include/Context.h" #include "include/rados/librados.hpp" #include <string> namespace journal { namespace utils { namesp...
1,389
24.272727
80
h
null
ceph-main/src/json_spirit/json_spirit.h
#ifndef JSON_SPIRIT #define JSON_SPIRIT // Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include "json_spirit_value.h" #include "json_spirit_reader...
395
19.842105
71
h
null
ceph-main/src/json_spirit/json_spirit_error_position.h
#ifndef JSON_SPIRIT_ERROR_POSITION #define JSON_SPIRIT_ERROR_POSITION // Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include <string> namespace ...
1,461
25.581818
110
h
null
ceph-main/src/json_spirit/json_spirit_reader.cpp
// Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #include "json_spirit_reader.h" #include "json_spirit_reader_template.h" using namespace json_spirit; #ifdef JSON_SPIRIT_VALUE_ENABLED bool json_spirit::read( c...
3,969
27.768116
124
cpp
null
ceph-main/src/json_spirit/json_spirit_reader.h
#ifndef JSON_SPIRIT_READER #define JSON_SPIRIT_READER // Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include "json_spirit_value.h" #include "json...
2,509
38.84127
112
h
null
ceph-main/src/json_spirit/json_spirit_reader_template.h
#ifndef JSON_SPIRIT_READER_TEMPLATE #define JSON_SPIRIT_READER_TEMPLATE // Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include "json_spirit_value...
21,383
31.302115
124
h
null
ceph-main/src/json_spirit/json_spirit_stream_reader.h
#ifndef JSON_SPIRIT_READ_STREAM #define JSON_SPIRIT_READ_STREAM // Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include "json_spirit_reader_templa...
1,724
23.295775
94
h
null
ceph-main/src/json_spirit/json_spirit_utils.h
#ifndef JSON_SPIRIT_UTILS #define JSON_SPIRIT_UTILS // Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include "json_spirit_value.h" #include <map> ...
1,644
24.703125
117
h
null
ceph-main/src/json_spirit/json_spirit_value.cpp
/* Copyright (c) 2007 John W Wilkinson This source code can be used for any purpose as long as this comment is retained. */ // json spirit version 2.00 #include "json_spirit_value.h"
192
20.444444
58
cpp
null
ceph-main/src/json_spirit/json_spirit_value.h
#ifndef JSON_SPIRIT_VALUE #define JSON_SPIRIT_VALUE // Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include <vector> #include <map> #include <stri...
15,731
25.892308
128
h
null
ceph-main/src/json_spirit/json_spirit_writer.cpp
// Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #include "json_spirit_writer.h" #include "json_spirit_writer_template.h" using namespace json_spirit; #ifdef JSON_SPIRIT_VALUE_ENABLED void json_spirit::write( ...
2,764
27.505155
92
cpp
null
ceph-main/src/json_spirit/json_spirit_writer.h
#ifndef JSON_SPIRIT_WRITER #define JSON_SPIRIT_WRITER // Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include "json_spirit_value.h" #include "json...
2,301
34.96875
100
h
null
ceph-main/src/json_spirit/json_spirit_writer_options.h
#ifndef JSON_SPIRIT_WRITER_OPTIONS #define JSON_SPIRIT_WRITER_OPTIONS // Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif namespace json_spirit { e...
1,341
42.290323
134
h
null
ceph-main/src/json_spirit/json_spirit_writer_template.h
#ifndef JSON_SPIRIT_WRITER_TEMPLATE #define JSON_SPIRIT_WRITER_TEMPLATE // Copyright John W. Wilkinson 2007 - 2011 // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.05 #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include "json_spirit_value...
10,833
27.14026
138
h
null
ceph-main/src/key_value_store/cls_kvs.cc
/* * OSD classes for the key value store * * Created on: Aug 10, 2012 * Author: Eleanor Cawthon */ #include "include/compat.h" #include "objclass/objclass.h" #include <errno.h> #include "key_value_store/kvs_arg_types.h" #include "include/types.h" #include <iostream> #include <climits> using std::string; us...
19,454
27.033141
83
cc
null
ceph-main/src/key_value_store/key_value_structure.h
/* * Interface for key-value store using librados * * September 2, 2012 * Eleanor Cawthon * eleanor.cawthon@inktank.com * * 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. ...
3,898
25.52381
85
h
null
ceph-main/src/key_value_store/kv_flat_btree_async.cc
/* * Key-value store using librados * * September 2, 2012 * Eleanor Cawthon * eleanor.cawthon@inktank.com * * 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 COPY...
74,925
31.019658
87
cc
null
ceph-main/src/key_value_store/kv_flat_btree_async.h
/* * Uses a two-level B-tree to store a set of key-value pairs. * * September 2, 2012 * Eleanor Cawthon * eleanor.cawthon@inktank.com * * 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 ...
25,031
26.875278
99
h
null
ceph-main/src/key_value_store/kvs_arg_types.h
/* * Argument types used by cls_kvs.cc * * Created on: Aug 10, 2012 * Author: eleanor */ #ifndef CLS_KVS_H_ #define CLS_KVS_H_ #define EBALANCE 137 #include "include/encoding.h" #include "key_value_store/kv_flat_btree_async.h" using ceph::bufferlist; struct assert_size_args { uint64_t bound; //the siz...
3,030
19.903448
62
h
null
ceph-main/src/kv/KeyValueDB.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "KeyValueDB.h" #include "RocksDBStore.h" using std::map; using std::string; KeyValueDB *KeyValueDB::create(CephContext *cct, const string& type, const string& dir, map<string,string> options...
603
20.571429
70
cc
null
ceph-main/src/kv/KeyValueDB.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef KEY_VALUE_DB_H #define KEY_VALUE_DB_H #include "include/buffer.h" #include <ostream> #include <set> #include <map> #include <optional> #include <string> #include <boost/scoped_ptr.hpp> #include "include/encoding.h...
14,552
30.914474
132
h
null
ceph-main/src/kv/KeyValueHistogram.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/stringify.h" #include "KeyValueHistogram.h" using std::map; using std::string; using ceph::Formatter; #define KEY_SLAB 32 #define VALUE_SLAB 64 int KeyValueHistogram::get_key_slab(size_t sz) { return...
2,392
29.291139
92
cc
null
ceph-main/src/kv/KeyValueHistogram.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef KeyValueHistogram_H #define KeyValueHistogram_H #include <map> #include <string> #include "common/Formatter.h" /** * * Key Value DB Histogram generator * */ struct KeyValueHistogram { struct value_dist { ...
999
24.641026
96
h
null
ceph-main/src/kv/RocksDBStore.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <filesystem> #include <map> #include <memory> #include <set> #include <string> #include <errno.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include "rocksdb/db.h" #include "rocksdb/table....
105,861
29.341645
130
cc
null
ceph-main/src/kv/RocksDBStore.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef ROCKS_DB_STORE_H #define ROCKS_DB_STORE_H #include "include/types.h" #include "include/buffer_fwd.h" #include "KeyValueDB.h" #include <set> #include <map> #include <string> #include <memory> #include <boost/scoped...
18,549
32.605072
133
h
null
ceph-main/src/kv/rocksdb_cache/BinnedLRUCache.cc
// Copyright (c) 2018-Present Red Hat Inc. All rights reserved. // // Copyright (c) 2011-2018, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 and Apache 2.0 License // // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a ...
20,729
27.791667
101
cc
null
ceph-main/src/kv/rocksdb_cache/BinnedLRUCache.h
// Copyright (c) 2018-Present Red Hat Inc. All rights reserved. // // Copyright (c) 2011-2018, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 and Apache 2.0 License // // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a ...
12,504
33.073569
92
h
null
ceph-main/src/kv/rocksdb_cache/ShardedCache.cc
// Copyright (c) 2018-Present Red Hat Inc. All rights reserved. // // Copyright (c) 2011-2018, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 and Apache 2.0 License // // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a ...
5,696
30.131148
105
cc
null
ceph-main/src/kv/rocksdb_cache/ShardedCache.h
// Copyright (c) 2018-Present Red Hat Inc. All rights reserved. // // Copyright (c) 2011-2018, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 and Apache 2.0 License // // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a ...
7,499
36.878788
105
h
null
ceph-main/src/librados/AioCompletionImpl.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...
5,013
22.990431
86
h
null
ceph-main/src/librados/IoCtxImpl.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...
59,825
25.90018
135
cc
null
ceph-main/src/librados/IoCtxImpl.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...
12,110
39.23588
106
h
null
ceph-main/src/librados/ListObjectImpl.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 David Zafman <dzafman@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Pu...
2,482
30.0375
99
h
null
ceph-main/src/librados/ObjectOperationImpl.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...
677
23.214286
80
h
null
ceph-main/src/librados/PoolAsyncCompletionImpl.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...
2,529
21.792793
79
h
null
ceph-main/src/librados/RadosClient.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...
28,810
23.29258
130
cc
null
ceph-main/src/librados/RadosClient.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...
6,525
31.79397
96
h
null
ceph-main/src/librados/RadosXattrIter.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 Sebastien Ponce <sebastien.ponce@cern.ch> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
645
20.533333
70
cc
null
ceph-main/src/librados/RadosXattrIter.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 Sebastien Ponce <sebastien.ponce@cern.ch> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
933
22.948718
70
h
null
ceph-main/src/librados/librados_asio.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...
8,461
36.946188
99
h
null
ceph-main/src/librados/librados_c.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <limits.h> #include "acconfig.h" #include "common/config.h" #include "common/errno.h" #include "common/ceph_argparse.h" #include "common/ceph_json.h" #include "common/common_init.h" #include "common/TracepointPr...
150,658
31.157737
131
cc
null
ceph-main/src/librados/librados_c.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef LIBRADOS_C_H #define LIBRADOS_C_H #include "include/types.h" #include "include/rados/librados.h" namespace __librados_base { struct rados_pool_stat_t { uint64_t num_bytes; uint64_t num_kb; uint64_t num_ob...
636
20.233333
70
h
null
ceph-main/src/librados/librados_cxx.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...
82,069
24.881425
140
cc
null
ceph-main/src/librados/librados_tp.cc
#include "acconfig.h" #ifdef WITH_LTTNG #define TRACEPOINT_DEFINE #define TRACEPOINT_PROBE_DYNAMIC_LINKAGE #include "tracing/librados.h" #undef TRACEPOINT_PROBE_DYNAMIC_LINKAGE #undef TRACEPOINT_DEFINE #endif
210
20.1
40
cc
null
ceph-main/src/librados/librados_util.cc
#include "librados_util.h" uint8_t get_checksum_op_type(rados_checksum_type_t type) { switch (type) { case LIBRADOS_CHECKSUM_TYPE_XXHASH32: return CEPH_OSD_CHECKSUM_OP_TYPE_XXHASH32; case LIBRADOS_CHECKSUM_TYPE_XXHASH64: return CEPH_OSD_CHECKSUM_OP_TYPE_XXHASH64; case LIBRADOS_CHECKSUM_TYPE_CRC32C: ...
2,228
33.828125
58
cc
null
ceph-main/src/librados/librados_util.h
#include <cstdint> #include "acconfig.h" #include "include/rados/librados.h" #include "IoCtxImpl.h" #ifdef WITH_LTTNG #include "tracing/librados.h" #else #define tracepoint(...) #endif uint8_t get_checksum_op_type(rados_checksum_type_t type); int get_op_flags(int flags); int translate_flags(int flags); struct librad...
780
21.314286
73
h
null
ceph-main/src/librados/snap_set_diff.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <vector> #include "snap_set_diff.h" #include "common/ceph_context.h" #include "include/rados/librados.hpp" #include "include/interval_set.h" #include "common/debug.h" #define dout_subsys ceph_subsys_rados usin...
3,506
28.720339
86
cc
null
ceph-main/src/librados/snap_set_diff.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef __CEPH_OSDC_SNAP_SET_DIFF_H #define __CEPH_OSDC_SNAP_SET_DIFF_H #include "include/common_fwd.h" #include "include/rados/rados_types.hpp" #include "include/interval_set.h" void calc_snap_set_diff(CephContext *cct...
555
28.263158
70
h
null
ceph-main/src/libradosstriper/MultiAioCompletionImpl.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 Sebastien Ponce <sebastien.ponce@cern.ch> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
1,347
21.098361
73
cc
null
ceph-main/src/libradosstriper/MultiAioCompletionImpl.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 Sebastien Ponce <sebastien.ponce@cern.ch> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
4,333
24.494118
84
h
null
ceph-main/src/libradosstriper/RadosStriperImpl.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 Sebastien Ponce <sebastien.ponce@cern.ch> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
58,551
35.345127
121
cc
null
ceph-main/src/libradosstriper/RadosStriperImpl.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 Sebastien Ponce <sebastien.ponce@cern.ch> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
9,688
33.978339
88
h
null
ceph-main/src/libradosstriper/libradosstriper.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 Sebastien Ponce <sebastien.ponce@cern.ch> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
20,082
28.148041
104
cc
null
ceph-main/src/librbd/AsioEngine.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "librbd/AsioEngine.h" #include "include/Context.h" #include "include/neorados/RADOS.hpp" #include "include/rados/librados.hpp" #include "common/dout.h" #include "librbd/asio/ContextWQ.h" #define dout_subsys ceph...
1,798
30.561404
79
cc
null
ceph-main/src/librbd/AsioEngine.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_LIBRBD_ASIO_ENGINE_H #define CEPH_LIBRBD_ASIO_ENGINE_H #include "include/common_fwd.h" #include "include/rados/librados_fwd.hpp" #include <memory> #include <boost/asio/dispatch.hpp> #include <boost/asio/io_c...
2,015
23.888889
70
h
null
ceph-main/src/librbd/AsyncObjectThrottle.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "librbd/AsyncObjectThrottle.h" #include "librbd/AsyncRequest.h" #include "librbd/ImageCtx.h" #include "librbd/Utils.h" #include "librbd/asio/ContextWQ.h" namespace librbd { template <typename T> AsyncObjectThrot...
2,763
24.357798
77
cc
null
ceph-main/src/librbd/AsyncObjectThrottle.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_LIBRBD_ASYNC_OBJECT_THROTTLE_H #define CEPH_LIBRBD_ASYNC_OBJECT_THROTTLE_H #include "include/int_types.h" #include "include/Context.h" #include <boost/function.hpp> namespace librbd { template <typename Ima...
2,043
24.55
74
h
null
ceph-main/src/librbd/AsyncRequest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "librbd/AsyncRequest.h" #include "librbd/ImageCtx.h" #include "librbd/Utils.h" #include "librbd/asio/ContextWQ.h" namespace librbd { template <typename T> AsyncRequest<T>::AsyncRequest(T &image_ctx, Context *on_...
1,866
24.930556
79
cc
null
ceph-main/src/librbd/AsyncRequest.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_LIBRBD_ASYNC_REQUEST_H #define CEPH_LIBRBD_ASYNC_REQUEST_H #include "include/Context.h" #include "include/rados/librados.hpp" #include "include/xlist.h" #include "include/compat.h" namespace librbd { class ...
1,604
19.844156
70
h
null
ceph-main/src/librbd/BlockGuard.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_LIBRBD_IO_BLOCK_GUARD_H #define CEPH_LIBRBD_IO_BLOCK_GUARD_H #include "include/int_types.h" #include "common/dout.h" #include "common/ceph_mutex.h" #include <boost/intrusive/list.hpp> #include <boost/intrusi...
5,596
30.44382
87
h
null
ceph-main/src/librbd/ConfigWatcher.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "librbd/ConfigWatcher.h" #include "common/config_obs.h" #include "common/dout.h" #include "common/errno.h" #include "librbd/ImageCtx.h" #include "librbd/ImageState.h" #include "librbd/api/Config.h" #include <dequ...
3,053
25.102564
75
cc
null
ceph-main/src/librbd/ConfigWatcher.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_LIBRBD_CONFIG_WATCHER_H #define CEPH_LIBRBD_CONFIG_WATCHER_H #include <set> #include <string> struct Context; namespace librbd { struct ImageCtx; template <typename ImageCtxT> class ConfigWatcher { publi...
917
18.125
70
h
null
ceph-main/src/librbd/DeepCopyRequest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "DeepCopyRequest.h" #include "common/errno.h" #include "librbd/ExclusiveLock.h" #include "librbd/ImageCtx.h" #include "librbd/ObjectMap.h" #include "librbd/Utils.h" #include "librbd/deep_copy/ImageCopyRequest.h" ...
9,954
26.5
81
cc
null
ceph-main/src/librbd/DeepCopyRequest.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_LIBRBD_DEEP_COPY_REQUEST_H #define CEPH_LIBRBD_DEEP_COPY_REQUEST_H #include "common/ceph_mutex.h" #include "common/RefCountedObj.h" #include "include/int_types.h" #include "librbd/ImageCtx.h" #include "librb...
4,194
29.179856
79
h
null
ceph-main/src/librbd/ExclusiveLock.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "librbd/cache/Utils.h" #include "librbd/ExclusiveLock.h" #include "librbd/ImageCtx.h" #include "librbd/ImageWatcher.h" #include "librbd/ImageState.h" #include "librbd/exclusive_lock/ImageDispatch.h" #include "lib...
11,476
28.503856
87
cc
null
ceph-main/src/librbd/ExclusiveLock.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_LIBRBD_EXCLUSIVE_LOCK_H #define CEPH_LIBRBD_EXCLUSIVE_LOCK_H #include "common/AsyncOpTracker.h" #include "librbd/ManagedLock.h" #include "librbd/exclusive_lock/Policy.h" #include "librbd/io/Types.h" #include...
4,124
33.957627
78
h
null
ceph-main/src/librbd/Features.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <boost/lexical_cast.hpp> #include <boost/algorithm/string.hpp> #include "librbd/Features.h" #include "include/rbd/features.h" #include <map> #include <vector> static const std::map<std::string, uint64_t> RBD_F...
3,181
27.410714
70
cc
null
ceph-main/src/librbd/Features.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> #include <ostream> namespace librbd { std::string rbd_features_to_string(uint64_t features, std::ostream *err); uint64_t rbd_features_from_string(const std::string& value, ...
359
20.176471
70
h