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/test/msgr/test_msgr.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 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * mo...
79,934
31.962887
129
cc
null
ceph-main/src/test/msgr/test_userspace_event.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...
5,005
27.605714
88
cc
null
ceph-main/src/test/neorados/common_tests.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) 2020 Red Hat, Inc. * Author: Adam C. Emerson <aemerson@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms...
898
24.685714
70
cc
null
ceph-main/src/test/neorados/common_tests.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) 2020 Red Hat, Inc. * Author: Adam C. Emerson <aemerson@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms...
1,202
27.642857
70
h
null
ceph-main/src/test/neorados/completions.cc
#include <cassert> #include <boost/asio.hpp> #include <boost/system/system_error.hpp> constexpr int max_completions = 10'000'000; int completed = 0; boost::asio::io_context c; void nested_cb() { if (++completed < max_completions) c.post(&nested_cb); } int main(void) { c.post(&nested_cb); c.run(); assert...
366
16.47619
43
cc
null
ceph-main/src/test/neorados/list_pool.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) 2019 Red Hat <contact@redhat.com> * Author: Adam C. Emerson <aemerson@redhat.com> * * This is free software; you can redistribute it and/or * modify it ...
4,276
24.610778
76
cc
null
ceph-main/src/test/neorados/op_speed.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) 2019 Red Hat <contact@redhat.com> * Author: Adam C. Emerson <aemerson@redhat.com> * * This is free software; you can redistribute it and/or * modify it ...
1,000
27.6
71
cc
null
ceph-main/src/test/neorados/start_stop.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) 2019 Red Hat <contact@redhat.com> * Author: Adam C. Emerson <aemerson@redhat.com> * * This is free software; you can redistribute it and/or * modify it ...
4,838
26.651429
70
cc
null
ceph-main/src/test/neorados/test_neorados.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/rados/librados.hpp" #include "include/neorados/RADOS.hpp" #include "common/async/blocked_completion.h" #include "test/librados/test_cxx.h" #include "gtest/gtest.h" #include <iostream> namespace neorados...
1,132
22.604167
70
cc
null
ceph-main/src/test/objectstore/Allocator_aging_fragmentation.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Bitmap allocator fragmentation benchmarks. * Author: Adam Kupczyk, akupczyk@redhat.com */ #include <bit> #include <iostream> #include <boost/scoped_ptr.hpp> #include <gtest/gtest.h> #include <boost/random/triangle_...
13,776
28.69181
107
cc
null
ceph-main/src/test/objectstore/Allocator_bench.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * In memory space allocator benchmarks. * Author: Igor Fedotov, ifedotov@suse.com */ #include <iostream> #include <boost/scoped_ptr.hpp> #include <gtest/gtest.h> #include "common/Cond.h" #include "common/errno.h" #i...
9,803
25.569106
91
cc
null
ceph-main/src/test/objectstore/Allocator_test.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * In memory space allocator test cases. * Author: Ramesh Chander, Ramesh.Chander@sandisk.com */ #include <iostream> #include <boost/scoped_ptr.hpp> #include <gtest/gtest.h> #include "common/Cond.h" #include "common/...
18,320
27.671362
85
cc
null
ceph-main/src/test/objectstore/Fragmentation_simulator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Fragmentation Simulator * Author: Tri Dao, daominhtri0503@gmail.com */ #include "common/ceph_argparse.h" #include "common/common_init.h" #include "common/hobject.h" #include "global/global_init.h" #include "include...
5,420
27.68254
80
cc
null
ceph-main/src/test/objectstore/ObjectStoreImitator.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Fragmentation Simulator * Author: Tri Dao, daominhtri0503@gmail.com */ #include "test/objectstore/ObjectStoreImitator.h" #include "common/errno.h" #include "include/ceph_assert.h" #include "include/intarith.h" #de...
21,195
24.785888
80
cc
null
ceph-main/src/test/objectstore/ObjectStoreImitator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Fragmentation Simulator * Author: Tri Dao, daominhtri0503@gmail.com */ #pragma once #include "include/common_fwd.h" #include "os/ObjectStore.h" #include "os/bluestore/Allocator.h" #include "os/bluestore/bluestore_...
14,067
35.54026
80
h
null
ceph-main/src/test/objectstore/ObjectStoreTransactionBenchmark.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 UnitedStack <haomai@unitedstack.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * m...
9,053
32.910112
169
cc
null
ceph-main/src/test/objectstore/TestObjectStoreState.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) 2012 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...
7,909
25.366667
101
cc
null
ceph-main/src/test/objectstore/TestObjectStoreState.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 * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version...
4,213
25.503145
79
h
null
ceph-main/src/test/objectstore/TestRocksdbOptionParse.cc
#include <gtest/gtest.h> #include "include/Context.h" #include "rocksdb/db.h" #include "rocksdb/env.h" #include "rocksdb/thread_status.h" #include "kv/RocksDBStore.h" #include <iostream> using namespace std; const string dir("rocksdb.test_temp_dir"); TEST(RocksDBOption, simple) { rocksdb::Options options; rocksd...
3,007
37.075949
106
cc
null
ceph-main/src/test/objectstore/allocator_replay_test.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Allocator replay tool. * Author: Igor Fedotov, ifedotov@suse.com */ #include <iostream> #include <vector> #include "common/ceph_argparse.h" #include "common/debug.h" #include "common/Cycles.h" #include "common/err...
21,521
29.966906
185
cc
null
ceph-main/src/test/objectstore/fastbmap_allocator_test.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <iostream> #include <gtest/gtest.h> #include "os/bluestore/fastbmap_allocator_impl.h" class TestAllocatorLevel01 : public AllocatorLevel01Loose { public: void init(uint64_t capacity, uint64_t alloc_unit) { ...
33,713
30.597001
82
cc
null
ceph-main/src/test/objectstore/hybrid_allocator_test.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <iostream> #include <gtest/gtest.h> #include "os/bluestore/HybridAllocator.h" class TestHybridAllocator : public HybridAllocator { public: TestHybridAllocator(CephContext* cct, int64_t d...
7,271
30.344828
77
cc
null
ceph-main/src/test/objectstore/run_seed_to.sh
#!/usr/bin/env bash # vim: ts=8 sw=2 smarttab # # run_seed_to.sh - Run ceph_test_filestore_idempotent_sequence up until an # injection point, generating a sequence of operations based on a # provided seed. # # We also perform three additional tests, focused on assessing if # replaying a larger chunck of the journal a...
7,659
25.054422
146
sh
null
ceph-main/src/test/objectstore/run_seed_to_range.sh
#!/bin/sh set -x set -e seed=$1 from=$2 to=$3 dir=$4 mydir=`dirname $0` for f in `seq $from $to` do if ! $mydir/run_seed_to.sh -o 10 -e $seed $f; then if [ -d "$dir" ]; then echo copying evidence to $dir cp -a . $dir else echo no dir provided for evidence disposal fi exit 1 fi done
314
11.6
54
sh
null
ceph-main/src/test/objectstore/run_smr_bluestore_test.sh
#!/bin/bash -ex # 1) run_smr_bluestore_test.sh # Setup smr device, run all tests # 2) run_smr_bluestore_test.sh --smr # Setup smr device but skip tests failing on smr before_creation=$(mktemp) lsscsi > $before_creation echo "cd /backstores/user:zbc create name=zbc0 size=20G cfgstring=model-HM/zsize-256/conv-10@zbc...
1,198
23.469388
102
sh
null
ceph-main/src/test/objectstore/run_test_deferred.sh
#!/bin/bash if [[ ! (-x ./bin/unittest_deferred) || ! (-x ./bin/ceph-kvstore-tool) || ! (-x ./bin/ceph-bluestore-tool)]] then echo Test must be run from ceph build directory echo with unittest_deferred, ceph-kvstore-tool and ceph-bluestore-tool compiled exit 1 fi # Create BlueStore, only main block devic...
2,479
45.792453
191
sh
null
ceph-main/src/test/objectstore/store_test.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...
324,221
28.655355
1,049
cc
null
ceph-main/src/test/objectstore/store_test_fixture.cc
#include <stdlib.h> #include <string> #include <iostream> #include <assert.h> #include <gtest/gtest.h> #include "common/errno.h" #include "common/config.h" #include "os/ObjectStore.h" #if defined(WITH_BLUESTORE) #include "os/bluestore/BlueStore.h" #endif #include "store_test_fixture.h" using namespace std; static v...
3,667
25.970588
98
cc
null
ceph-main/src/test/objectstore/store_test_fixture.h
#include <string> #include <stack> #include <memory> #include <gtest/gtest.h> #include "common/config_fwd.h" class ObjectStore; class StoreTestFixture : virtual public ::testing::Test { const std::string type; const std::string data_dir; std::stack<std::pair<std::string, std::string>> saved_settings; ConfigP...
1,295
23.45283
70
h
null
ceph-main/src/test/objectstore/test_bdev.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <stdio.h> #include <string.h> #include <iostream> #include <gtest/gtest.h> #include "global/global_init.h" #include "global/global_context.h" #include "common/ceph_context.h" #include "common/ceph_argparse.h" #in...
2,725
23.339286
73
cc
null
ceph-main/src/test/objectstore/test_bluefs.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <stdio.h> #include <string.h> #include <iostream> #include <time.h> #include <fcntl.h> #include <unistd.h> #include <random> #include <thread> #include <stack> #include <gtest/gtest.h> #include "global/global_ini...
44,357
30.172171
103
cc
null
ceph-main/src/test/objectstore/test_bluestore_types.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 "os/bluestore/bluestore_types.h" #include "gtest/gtest.h" #include "include/stringify.h" #include "common/ceph_time.h" #include "os/bluestore/BlueStore.h" #include "os/bluestore/simple_...
85,116
35.266297
135
cc
null
ceph-main/src/test/objectstore/test_deferred.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <stdio.h> #include <string.h> #include <iostream> #include <memory> #include <time.h> #include "os/ObjectStore.h" #include "os/bluestore/BlueStore.h" #include "include/Context.h" #include "common/ceph_argparse.h...
4,206
27.619048
81
cc
null
ceph-main/src/test/objectstore/test_kv.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...
36,536
26.997701
120
cc
null
ceph-main/src/test/objectstore/test_memstore_clone.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) 2015 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....
5,408
25.64532
78
cc
null
ceph-main/src/test/objectstore/test_transaction.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 Casey Bodley <cbodley@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Pu...
4,692
20.726852
70
cc
null
ceph-main/src/test/old/test_disk_bw.cc
#include <sys/time.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <errno.h> #include <sys/uio.h> #include "common/Clock.h" #include "common/safe_io.h" #include <iostream> using namespace std; int main(int arg...
1,280
19.333333
115
cc
null
ceph-main/src/test/old/testfilepath.cc
#include "include/filepath.h" #include <iostream> using namespace std; int print(const string &s) { filepath fp = s; cout << "s = " << s << " filepath = " << fp << endl; cout << " depth " << fp.depth() << endl; for (int i=0; i<fp.depth(); i++) { cout << "\t" << i << " " << fp[i] << endl; } } int mai...
444
18.347826
56
cc
null
ceph-main/src/test/opensuse-13.2/install-deps.sh
../../../install-deps.sh
24
24
24
sh
null
ceph-main/src/test/osd/Object.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #include "include/interval_set.h" #include "include/buffer.h" #include <list> #include <map> #include <set> #include <iostream> #include "Object.h" void ContDesc::encode(bufferlist &bl) const { ENCODE_START(1, 1, bl); encode(objnum, bl); en...
5,268
25.21393
124
cc
null
ceph-main/src/test/osd/Object.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #include "include/interval_set.h" #include "include/buffer.h" #include "include/encoding.h" #include <list> #include <map> #include <set> #include <stack> #include <random> #ifndef OBJECT_H #define OBJECT_H /// describes an object class ContDesc ...
13,817
24.54159
131
h
null
ceph-main/src/test/osd/RadosModel.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/interval_set.h" #include "include/buffer.h" #include <list> #include <map> #include <set> #include "include/rados/librados.h" #include "RadosModel.h" #include "TestOpStat.h" void TestOp::begin() { _b...
833
21.540541
71
cc
null
ceph-main/src/test/osd/RadosModel.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/int_types.h" #include "common/ceph_mutex.h" #include "include/rados/librados.hpp" #include <iostream> #include <iterator> #include <sstream> #include <map> #include <set> #include <list> #include <stri...
98,817
27.065322
115
h
null
ceph-main/src/test/osd/TestECBackend.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...
2,005
30.84127
78
cc
null
ceph-main/src/test/osd/TestMClockScheduler.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #include <chrono> #include "gtest/gtest.h" #include "global/global_context.h" #include "global/global_init.h" #include "common/common_init.h" #include "osd/scheduler/mClockScheduler.h" #include "osd/scheduler/OpSchedulerItem.h" using namespace ...
6,769
24.938697
89
cc
null
ceph-main/src/test/osd/TestOSDMap.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #include "gtest/gtest.h" #include "osd/OSDMap.h" #include "osd/OSDMapMapping.h" #include "mon/OSDMonitor.h" #include "mon/PGMap.h" #include "global/global_context.h" #include "global/global_init.h" #include "common/common_init.h" #include "common/c...
98,246
35.146799
101
cc
null
ceph-main/src/test/osd/TestOSDScrub.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 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This program is free software; you can redistribute it an...
8,055
38.490196
139
cc
null
ceph-main/src/test/osd/TestOpStat.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #include "include/interval_set.h" #include "include/buffer.h" #include <list> #include <map> #include <set> #include "RadosModel.h" #include "TestOpStat.h" void TestOpStat::begin(TestOp *in) { std::lock_guard l{stat_lock}; stats[in->getType()]...
1,405
22.830508
82
cc
null
ceph-main/src/test/osd/TestOpStat.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #include "common/ceph_mutex.h" #include "common/Cond.h" #include "include/rados/librados.hpp" #ifndef TESTOPSTAT_H #define TESTOPSTAT_H class TestOp; class TestOpStat { public: mutable ceph::mutex stat_lock = ceph::make_mutex("TestOpStat lock"...
1,199
21.222222
71
h
null
ceph-main/src/test/osd/TestPGLog.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 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This program is free software; you can redistribute it an...
98,502
29.308615
130
cc
null
ceph-main/src/test/osd/TestRados.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "common/Cond.h" #include "common/errno.h" #include "common/version.h" #include <iostream> #include <sstream> #include <map> #include <numeric> #include <string> #include <vector> #include <stdlib.h> #include <uni...
22,438
29.738356
119
cc
null
ceph-main/src/test/osd/ceph_test_osd_stale_read.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "gtest/gtest.h" #include "mds/mdstypes.h" #include "include/buffer.h" #include "include/rbd_types.h" #include "include/rados/librados.h" #include "include/rados/librados.hpp" #include "include/stringify.h" #inclu...
4,536
24.488764
73
cc
null
ceph-main/src/test/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 * * 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...
5,183
25.181818
103
cc
null
ceph-main/src/test/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) 2012 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....
98,791
69.616154
155
cc
null
ceph-main/src/test/osd/safe-to-destroy.sh
#!/usr/bin/env bash source $CEPH_ROOT/qa/standalone/ceph-helpers.sh set -e function run() { local dir=$1 shift export CEPH_MON="127.0.0.1:$(get_unused_port)" export CEPH_ARGS CEPH_ARGS+="--fsid=$(uuidgen) --auth-supported=none " CEPH_ARGS+="--mon-host=$CEPH_MON " set -e local funcs=...
2,262
21.63
73
sh
null
ceph-main/src/test/osd/scrubber_generators.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/osd/scrubber_generators.h" #include <fmt/ranges.h> using namespace ScrubGenerator; // ref: PGLogTestRebuildMissing() bufferptr create_object_info(const ScrubGenerator::RealObj& objver) { object_info_t ...
4,867
27.804734
79
cc
null
ceph-main/src/test/osd/scrubber_generators.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once /// \file generating scrub-related maps & objects for unit tests #include <functional> #include <map> #include <sstream> #include <string> #include <variant> #include <vector> #include "include/buffer.h" #i...
6,753
24.29588
79
h
null
ceph-main/src/test/osd/scrubber_test_datasets.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /// \file data-sets used by the scrubber unit tests #include "./scrubber_test_datasets.h" using namespace ScrubGenerator; using namespace std::string_literals; namespace ScrubDatasets { static RealObj corrupt_object_...
2,725
21.528926
79
cc
null
ceph-main/src/test/osd/scrubber_test_datasets.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once /// \file data-sets used by the scrubber unit tests #include "./scrubber_generators.h" namespace ScrubDatasets { /* * Two objects with some clones. No inconsitencies. */ extern ScrubGenerator::RealObjsCon...
600
26.318182
72
h
null
ceph-main/src/test/osd/test_ec_transaction.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....
3,356
25.856
85
cc
null
ceph-main/src/test/osd/test_extent_cache.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....
5,929
19.954064
70
cc
null
ceph-main/src/test/osd/test_pg_transaction.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....
3,250
23.628788
73
cc
null
ceph-main/src/test/osd/test_scrub_sched.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /// \file testing the scrub scheduling algorithm #include <gtest/gtest.h> #include <algorithm> #include <map> #include "common/async/context_pool.h" #include "common/ceph_argparse.h" #include "global/global_context.h" ...
12,036
28.868486
80
cc
null
ceph-main/src/test/osd/test_scrubber_be.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "./scrubber_generators.h" #include "./scrubber_test_datasets.h" #include <gtest/gtest.h> #include <signal.h> #include <stdio.h> #include <fmt/ranges.h> #include "common/async/context_pool.h" #include "common/ce...
19,420
27.986567
80
cc
null
ceph-main/src/test/osd/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) 2011 New Dream Network * Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This is free soft...
63,090
27.612698
95
cc
null
ceph-main/src/test/osdc/FakeWriteback.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <errno.h> #include <time.h> #include <thread> #include "common/debug.h" #include "common/Cond.h" #include "common/Finisher.h" #include "common/ceph_mutex.h" #include "include/ceph_assert.h" #include "common/ceph...
2,576
26.414894
84
cc
null
ceph-main/src/test/osdc/FakeWriteback.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_TEST_OSDC_FAKEWRITEBACK_H #define CEPH_TEST_OSDC_FAKEWRITEBACK_H #include "include/Context.h" #include "include/types.h" #include "osd/osd_types.h" #include "osdc/WritebackHandler.h" #include <atomic> class...
1,424
28.6875
72
h
null
ceph-main/src/test/osdc/MemWriteback.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <errno.h> #include <time.h> #include <thread> #include "common/debug.h" #include "common/Cond.h" #include "common/Finisher.h" #include "common/ceph_mutex.h" #include "include/ceph_assert.h" #include "common/ceph...
4,928
28.51497
85
cc
null
ceph-main/src/test/osdc/MemWriteback.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_TEST_OSDC_MEMWRITEBACK_H #define CEPH_TEST_OSDC_MEMWRITEBACK_H #include "include/Context.h" #include "include/types.h" #include "osd/osd_types.h" #include "osdc/WritebackHandler.h" #include <atomic> class F...
1,688
30.867925
73
h
null
ceph-main/src/test/osdc/object_cacher_stress.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <cstdlib> #include <ctime> #include <sstream> #include <string> #include <vector> #include <boost/scoped_ptr.hpp> #include "common/ceph_argparse.h" #include "common/ceph_mutex.h" #include "common/common_init.h" ...
13,613
30.957746
100
cc
null
ceph-main/src/test/rbd_mirror/random_write.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "common/ceph_argparse.h" #include "common/config.h" #include "common/debug.h" #include "common/errno.h" #include "common/Cond.h" #include "include/rados/librados.hpp" #include "include/rbd/librbd.hpp" #include "g...
5,727
26.146919
95
cc
null
ceph-main/src/test/rbd_mirror/test_ClusterWatcher.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/rados/librados.hpp" #include "common/Cond.h" #include "common/errno.h" #include "common/ceph_mutex.h" #include "librbd/internal.h" #include "librbd/api/Mirror.h" #include "tools/rbd_mirror/ClusterWatcher....
8,113
29.503759
79
cc
null
ceph-main/src/test/rbd_mirror/test_ImageDeleter.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 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...
10,210
31.519108
80
cc
null
ceph-main/src/test/rbd_mirror/test_ImageReplayer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph distributed storage system * * Copyright (C) 2016 Mirantis Inc * * Author: Mykola Golub <mgolub@mirantis.com> * * This library is free software; you can redistribute it and/or * modify it under the term...
52,219
30.363363
98
cc
null
ceph-main/src/test/rbd_mirror/test_ImageSync.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/rbd_mirror/test_fixture.h" #include "include/stringify.h" #include "include/rbd/librbd.hpp" #include "common/Cond.h" #include "journal/Journaler.h" #include "journal/Settings.h" #include "librbd/ExclusiveLo...
12,634
32.693333
98
cc
null
ceph-main/src/test/rbd_mirror/test_InstanceWatcher.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/rados/librados.hpp" #include "include/stringify.h" #include "cls/rbd/cls_rbd_types.h" #include "cls/rbd/cls_rbd_client.h" #include "librbd/Utils.h" #include "librbd/internal.h" #include "test/rbd_mirror/...
4,097
29.81203
77
cc
null
ceph-main/src/test/rbd_mirror/test_Instances.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/rados/librados.hpp" #include "cls/rbd/cls_rbd_client.h" #include "test/rbd_mirror/test_fixture.h" #include "tools/rbd_mirror/InstanceWatcher.h" #include "tools/rbd_mirror/Instances.h" #include "tools/rbd...
4,603
26.90303
86
cc
null
ceph-main/src/test/rbd_mirror/test_LeaderWatcher.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/rados/librados.hpp" #include "librbd/internal.h" #include "librbd/Utils.h" #include "librbd/api/Mirror.h" #include "test/librbd/test_support.h" #include "test/rbd_mirror/test_fixture.h" #include "tools/r...
9,354
28.326019
80
cc
null
ceph-main/src/test/rbd_mirror/test_PoolWatcher.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/rados/librados.hpp" #include "include/rbd/librbd.hpp" #include "include/stringify.h" #include "test/rbd_mirror/test_fixture.h" #include "cls/rbd/cls_rbd_types.h" #include "cls/rbd/cls_rbd_client.h" #incl...
8,152
30.723735
87
cc
null
ceph-main/src/test/rbd_mirror/test_fixture.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "cls/rbd/cls_rbd_types.h" #include "test/rbd_mirror/test_fixture.h" #include "include/stringify.h" #include "include/rbd/librbd.hpp" #include "librbd/ImageCtx.h" #include "librbd/ImageState.h" #include "librbd/Op...
4,486
26.697531
81
cc
null
ceph-main/src/test/rbd_mirror/test_fixture.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_TEST_RBD_MIRROR_TEST_FIXTURE_H #define CEPH_TEST_RBD_MIRROR_TEST_FIXTURE_H #include "include/int_types.h" #include "include/rados/librados.hpp" #include <gtest/gtest.h> #include <memory> #include <set> name...
1,623
23.606061
72
h
null
ceph-main/src/test/rbd_mirror/test_main.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "common/perf_counters.h" #include "include/rados/librados.hpp" #include "global/global_context.h" #include "test/librados/test_cxx.h" #include "gtest/gtest.h" #include <iostream> #include <string> PerfCounters *...
1,558
27.87037
70
cc
null
ceph-main/src/test/rbd_mirror/test_mock_ImageMap.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/rbd_mirror/test_mock_fixture.h" #include "test/librados_test_stub/MockTestMemIoCtxImpl.h" #include "test/librados_test_stub/MockTestMemRadosClient.h" #include "test/librbd/mock/MockImageCtx.h" #include "tes...
57,432
35.166877
113
cc
null
ceph-main/src/test/rbd_mirror/test_mock_ImageReplayer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "cls/journal/cls_journal_types.h" #include "librbd/journal/Types.h" #include "librbd/journal/TypeTraits.h" #include "tools/rbd_mirror/ImageDeleter.h" #include "tools/rbd_mirror/ImageReplayer.h" #include "tools/rb...
29,542
30.065195
109
cc
null
ceph-main/src/test/rbd_mirror/test_mock_ImageSync.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/rbd_mirror/test_mock_fixture.h" #include "include/rbd/librbd.hpp" #include "librbd/DeepCopyRequest.h" #include "test/librados_test_stub/MockTestMemIoCtxImpl.h" #include "test/librbd/mock/MockImageCtx.h" #in...
18,060
37.509595
121
cc
null
ceph-main/src/test/rbd_mirror/test_mock_InstanceReplayer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/librbd/mock/MockImageCtx.h" #include "test/rbd_mirror/test_mock_fixture.h" #include "test/rbd_mirror/mock/MockContextWQ.h" #include "test/rbd_mirror/mock/MockSafeTimer.h" #include "tools/rbd_mirror/ImageRep...
12,869
32.603133
103
cc
null
ceph-main/src/test/rbd_mirror/test_mock_InstanceWatcher.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "librados/AioCompletionImpl.h" #include "librbd/ManagedLock.h" #include "test/librados/test_cxx.h" #include "test/librados_test_stub/MockTestMemIoCtxImpl.h" #include "test/librados_test_stub/MockTestMemRadosClien...
34,516
33.936235
95
cc
null
ceph-main/src/test/rbd_mirror/test_mock_LeaderWatcher.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 "librbd/Utils.h" #include "test/librbd/mock/MockImageCtx.h" #include "test/rbd_mirror/test_mock_fixture.h" #include "tools/rbd_mirror/LeaderWatcher.h" #include "tools/rbd_mirror/Thr...
20,057
31.614634
95
cc
null
ceph-main/src/test/rbd_mirror/test_mock_MirrorStatusUpdater.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/rbd_mirror/test_mock_fixture.h" #include "include/stringify.h" #include "tools/rbd_mirror/MirrorStatusUpdater.h" #include "tools/rbd_mirror/MirrorStatusWatcher.h" #include "tools/rbd_mirror/Threads.h" #incl...
24,494
33.646393
115
cc
null
ceph-main/src/test/rbd_mirror/test_mock_NamespaceReplayer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "librbd/api/Config.h" #include "test/librbd/mock/MockImageCtx.h" #include "test/rbd_mirror/test_mock_fixture.h" #include "test/rbd_mirror/mock/MockContextWQ.h" #include "test/rbd_mirror/mock/MockSafeTimer.h" #inc...
21,510
34.148693
110
cc
null
ceph-main/src/test/rbd_mirror/test_mock_PoolReplayer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "librbd/api/Config.h" #include "librbd/api/Namespace.h" #include "test/librbd/mock/MockImageCtx.h" #include "test/librados_test_stub/MockTestMemCluster.h" #include "test/librados_test_stub/MockTestMemIoCtxImpl.h"...
34,094
35.465241
126
cc
null
ceph-main/src/test/rbd_mirror/test_mock_PoolWatcher.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/rbd_mirror/test_mock_fixture.h" #include "test/librados_test_stub/MockTestMemIoCtxImpl.h" #include "test/librados_test_stub/MockTestMemRadosClient.h" #include "test/librbd/mock/MockImageCtx.h" #include "tes...
25,382
33.723666
117
cc
null
ceph-main/src/test/rbd_mirror/test_mock_Throttler.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 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...
7,264
27.602362
79
cc
null
ceph-main/src/test/rbd_mirror/test_mock_fixture.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/rbd_mirror/test_mock_fixture.h" #include "include/rbd/librbd.hpp" #include "test/librados_test_stub/LibradosTestStub.h" #include "test/librados_test_stub/MockTestMemCluster.h" #include "test/librados_test_s...
2,136
31.876923
82
cc
null
ceph-main/src/test/rbd_mirror/test_mock_fixture.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_TEST_RBD_MIRROR_TEST_MOCK_FIXTURE_H #define CEPH_TEST_RBD_MIRROR_TEST_MOCK_FIXTURE_H #include "test/rbd_mirror/test_fixture.h" #include "test/librados_test_stub/LibradosTestStub.h" #include "common/WorkQueue...
1,628
21.315068
70
h
null
ceph-main/src/test/rbd_mirror/image_deleter/test_mock_SnapshotPurgeRequest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/rbd_mirror/test_mock_fixture.h" #include "librbd/ExclusiveLock.h" #include "librbd/ImageCtx.h" #include "librbd/ImageState.h" #include "librbd/Operations.h" #include "tools/rbd_mirror/Threads.h" #include "t...
16,334
36.900232
88
cc
null
ceph-main/src/test/rbd_mirror/image_deleter/test_mock_TrashMoveRequest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/rbd_mirror/test_mock_fixture.h" #include "librbd/ExclusiveLock.h" #include "librbd/ImageCtx.h" #include "librbd/ImageState.h" #include "librbd/Operations.h" #include "librbd/TrashWatcher.h" #include "librbd...
34,172
36.885809
113
cc
null
ceph-main/src/test/rbd_mirror/image_deleter/test_mock_TrashRemoveRequest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/rbd_mirror/test_mock_fixture.h" #include "cls/rbd/cls_rbd_types.h" #include "librbd/ImageCtx.h" #include "librbd/TrashWatcher.h" #include "librbd/Utils.h" #include "librbd/trash/RemoveRequest.h" #include "t...
15,149
32.370044
117
cc
null
ceph-main/src/test/rbd_mirror/image_deleter/test_mock_TrashWatcher.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "test/rbd_mirror/test_mock_fixture.h" #include "test/librados_test_stub/MockTestMemIoCtxImpl.h" #include "test/librados_test_stub/MockTestMemRadosClient.h" #include "test/librbd/mock/MockImageCtx.h" #include "tes...
16,868
31.440385
87
cc
null
ceph-main/src/test/rbd_mirror/image_map/test_Policy.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/Context.h" #include "test/rbd_mirror/test_fixture.h" #include "tools/rbd_mirror/image_map/Types.h" #include "tools/rbd_mirror/image_map/SimplePolicy.h" #include "include/stringify.h" #include "common/Thr...
13,298
34.18254
94
cc