repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
null
ceph-main/src/include/ceph_fuse.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 Inktank Storage, Inc. * Copyright (C) 2014 Red Hat <contact@redhat.com> * * This is free software; you can redistribute it and/or * modify it unde...
1,529
28.423077
88
h
null
ceph-main/src/include/common_fwd.h
#pragma once #if defined(WITH_SEASTAR) && !defined(WITH_ALIEN) #define TOPNSPC crimson #else #define TOPNSPC ceph #endif namespace TOPNSPC::common { class CephContext; class PerfCounters; class PerfCountersBuilder; class PerfCountersCollection; class PerfCountersCollectionImpl; class PerfGuard; class Re...
898
26.242424
50
h
null
ceph-main/src/include/compact_map.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2015 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 version 2.1, as published by the Free Software * Foundation. See file COPYING. * */ #ifndef CEPH_CO...
11,062
27.809896
122
h
null
ceph-main/src/include/compact_set.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2015 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 version 2.1, as published by the Free Software * Foundation. See file COPYING. * */ #ifndef CEPH_CO...
8,630
27.205882
116
h
null
ceph-main/src/include/compat.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2011 Stanislav Sedov <stas@FreeBSD.org> * * 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. ...
10,220
23.27791
91
h
null
ceph-main/src/include/cpp_lib_backport.h
#pragma once #include <cstring> #include <type_traits> namespace std { #ifndef __cpp_lib_bit_cast #define __cpp_lib_bit_cast 201806L /// Create a value of type `To` from the bits of `from`. template<typename To, typename From> requires (sizeof(To) == sizeof(From)) && std::is_trivially_copyable_v<From> && ...
685
21.129032
56
h
null
ceph-main/src/include/crc32c.h
#ifndef CEPH_CRC32C_H #define CEPH_CRC32C_H #include <stdint.h> #ifdef __cplusplus extern "C" { #endif typedef uint32_t (*ceph_crc32c_func_t)(uint32_t crc, unsigned char const *data, unsigned length); /* * this is a static global with the chosen crc32c implementation for * the given architecture. */ extern ceph_...
1,356
22.396552
97
h
null
ceph-main/src/include/demangle.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 Allen Samuels <allen.samuels@sandisk.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
1,146
22.408163
109
h
null
ceph-main/src/include/dlfcn_compat.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 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...
1,234
24.204082
70
h
null
ceph-main/src/include/elist.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 ...
4,262
20.974227
92
h
null
ceph-main/src/include/error.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
1,034
23.642857
74
h
null
ceph-main/src/include/event_type.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) 2015 XSky <haomai@xsky.com> * * Author: Haomai Wang <haomaiwang@gmail.com> * * This is free software; you can redistribute it and/or * modify it under ...
640
24.64
70
h
null
ceph-main/src/include/filepath.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 ...
6,138
23.458167
75
h
null
ceph-main/src/include/frag.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 ...
16,190
25.284091
95
h
null
ceph-main/src/include/fs_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_INCLUDE_FS_TYPES_H #define CEPH_INCLUDE_FS_TYPES_H #include "types.h" class JSONObj; #define CEPHFS_EBLOCKLISTED 108 #define CEPHFS_EPERM 1 #define CEPHFS_ESTALE 116 #define CEPHFS_ENOS...
4,912
26.914773
86
h
null
ceph-main/src/include/hash.h
#ifndef CEPH_HASH_H #define CEPH_HASH_H #include "acconfig.h" // Robert Jenkins' function for mixing 32-bit values // http://burtleburtle.net/bob/hash/evahash.html // a, b = random bits, c = input and output #define hashmix(a,b,c) \ a=a-b; a=a-c; a=a^(c>>13); \ b=b-c; b=b-a; b=b^(a<<8); \ c=c-a; c=c-b; c=c...
1,422
20.892308
61
h
null
ceph-main/src/include/health.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <ostream> #include <string> #include "include/encoding.h" // health_status_t enum health_status_t { HEALTH_ERR = 0, HEALTH_WARN = 1, HEALTH_OK = 2, }; inline void encode(health_status_t hs,...
1,930
21.988095
82
h
null
ceph-main/src/include/inline_memory.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 ...
3,634
23.072848
78
h
null
ceph-main/src/include/intarith.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...
2,485
25.446809
90
h
null
ceph-main/src/include/interval_set.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 ...
19,553
22.701818
116
h
null
ceph-main/src/include/ipaddr.h
#ifndef CEPH_IPADDR_H #define CEPH_IPADDR_H class entity_addr_t; /* * Check if an IP address that is in the wanted subnet. */ bool matches_ipv4_in_subnet(const struct ifaddrs& addrs, const struct sockaddr_in* net, unsigned int prefix_len); bool matches_ipv6_in...
1,325
26.625
77
h
null
ceph-main/src/include/krbd.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2014 Inktank Storage, Inc. * * 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. * */ #ifnd...
3,294
32.622449
70
h
null
ceph-main/src/include/libcephsqlite.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) 2021 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 versio...
2,424
31.77027
104
h
null
ceph-main/src/include/linux_fiemap.h
/* * FS_IOC_FIEMAP ioctl infrastructure. * * Some portions copyright (C) 2007 Cluster File Systems, Inc * * Authors: Mark Fasheh <mfasheh@suse.com> * Kalpak Shah <kalpak.shah@sun.com> * Andreas Dilger <adilger@sun.com> */ #ifndef _LINUX_FIEMAP_H #define _LINUX_FIEMAP_H #if defined(__linux__) ...
2,748
36.148649
75
h
null
ceph-main/src/include/mempool.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 Allen Samuels <allen.samuels@sandisk.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
16,597
28.74552
82
h
null
ceph-main/src/include/msgr.h
#ifndef CEPH_MSGR_H #define CEPH_MSGR_H #ifndef __KERNEL__ #include <sys/socket.h> // for struct sockaddr_storage #endif #include "include/int_types.h" /* See comment in ceph_fs.h. */ #ifndef __KERNEL__ #include "byteorder.h" #define __le16 ceph_le16 #define __le32 ceph_le32 #define __le64 ceph_le64 #endif /* * D...
7,552
28.503906
84
h
null
ceph-main/src/include/object.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 ...
4,408
22.205263
98
h
null
ceph-main/src/include/object_fmt.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once /** * \file fmtlib formatters for some object.h structs */ #include <fmt/format.h> #include "object.h" template <> struct fmt::formatter<snapid_t> { constexpr auto parse(format_parse_context& ctx) { r...
677
21.6
73
h
null
ceph-main/src/include/rados.h
#ifndef CEPH_RADOS_H #define CEPH_RADOS_H /* * Data types for the Ceph distributed object storage layer RADOS * (Reliable Autonomic Distributed Object Store). */ #include <string.h> #include <stdbool.h> #include "msgr.h" /* See comment in ceph_fs.h. */ #ifndef __KERNEL__ #include "byteorder.h" #define __le16 cep...
24,587
34.125714
118
h
null
ceph-main/src/include/random.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 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...
8,256
26.34106
105
h
null
ceph-main/src/include/rbd_types.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2004-2010 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software * Foundation. See file COPYING. ...
4,766
28.79375
91
h
null
ceph-main/src/include/scope_guard.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2016 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
1,427
27.56
82
h
null
ceph-main/src/include/sock_compat.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2018 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 version 2.1, as published by the Free Software * Foundation. See file COPYING. */ #ifndef CEPH_SOC...
1,133
24.772727
93
h
null
ceph-main/src/include/statlite.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_STATLITE_H #define CEPH_STATLITE_H extern "C" { #include <time.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <dirent.h> #include "include/compat.h" struct statlite { dev_t...
2,750
35.68
72
h
null
ceph-main/src/include/str_list.h
#ifndef CEPH_STRLIST_H #define CEPH_STRLIST_H #include <list> #include <set> #include <string> #include <string_view> #include <vector> namespace ceph { /// Split a string using the given delimiters, passing each piece as a /// (non-null-terminated) std::string_view to the callback. template <typename Func> // where...
3,179
31.44898
112
h
null
ceph-main/src/include/str_map.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 Cloudwatt <libre.licensing@cloudwatt.com> * * Author: Loic Dachary <loic@dachary.org> * * This library is free software; you can redistribute it ...
6,044
32.39779
76
h
null
ceph-main/src/include/timegm.h
// (C) Copyright Howard Hinnant // (C) Copyright 2010-2011 Vicente J. Botet Escriba // Use, modification and distribution are subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt). //===-------------------------- locale --...
2,229
26.875
102
h
null
ceph-main/src/include/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) 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...
17,254
26.388889
110
h
null
ceph-main/src/include/uses_allocator.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab // Derived from: /* uses_allocator.h -*-C++-*- * * Copyright (C) 2016 Pablo Halpern <phalpern@halpernwightsoftware.com> * Distributed under the Boost Software License - Version 1.0 */ // Downloaded fr...
11,402
41.707865
98
h
null
ceph-main/src/include/util.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 Inktank Storage, Inc. * Copyright (C) 2014 Red Hat <contact@redhat.com> * * This is free software; you can redistribute it and/or * modify it unde...
3,494
29.391304
85
h
null
ceph-main/src/include/utime.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 ...
16,026
25.578773
101
h
null
ceph-main/src/include/utime_fmt.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once /** * \file fmtlib formatter for utime_t */ #include <fmt/chrono.h> #include <fmt/format.h> #include "include/utime.h" template <> struct fmt::formatter<utime_t> { template <typename ParseContext> cons...
1,245
24.958333
70
h
null
ceph-main/src/include/uuid.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #ifndef _CEPH_UUID_H #define _CEPH_UUID_H /* * Thin C++ wrapper around libuuid. */ #include "encoding.h" #include "random.h" #include <ostream> #include <random> #include <boost/uuid/uuid.hpp> #include <boost/uuid/uuid_generators.hpp> #include...
2,326
20.546296
70
h
null
ceph-main/src/include/xlist.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 ...
5,427
21.806723
76
h
null
ceph-main/src/include/cephfs/ceph_ll_client.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * scalable distributed file system * * Copyright (C) Jeff Layton <jlayton@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
6,463
28.925926
88
h
null
ceph-main/src/include/cephfs/metrics/Types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_INCLUDE_CEPHFS_METRICS_TYPES_H #define CEPH_INCLUDE_CEPHFS_METRICS_TYPES_H #include <string> #include <boost/variant.hpp> #include "common/Formatter.h" #include "include/buffer_fwd.h" #include "include/enco...
19,934
27.478571
96
h
null
ceph-main/src/include/cpp-btree/btree_container.h
// Copyright 2018 The Abseil Authors. // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
19,109
35.26186
85
h
null
ceph-main/src/include/cpp-btree/btree_map.h
// Copyright 2018 The Abseil Authors. // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
6,052
36.83125
80
h
null
ceph-main/src/include/cpp-btree/btree_set.h
// Copyright 2018 The Abseil Authors. // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
21,678
33.248025
80
h
null
ceph-main/src/include/rados/librgw.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ...
922
23.945946
96
h
null
ceph-main/src/include/rados/objclass.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_OBJCLASS_OBJCLASS_PUBLIC_H #define CEPH_OBJCLASS_OBJCLASS_PUBLIC_H #ifdef __cplusplus #include "buffer.h" extern "C" { #endif #define CEPH_CLS_API [[gnu::visibility("default")]] #define CLS_VER(maj,min) ...
3,860
20.691011
98
h
null
ceph-main/src/include/rados/rgw_file.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * convert RGW commands to file commands * * Copyright (C) 2015 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 versio...
10,819
23.988453
121
h
null
ceph-main/src/include/rbd/features.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_RBD_FEATURES_H #define CEPH_RBD_FEATURES_H #define RBD_FEATURE_LAYERING (1ULL<<0) #define RBD_FEATURE_STRIPINGV2 (1ULL<<1) #define RBD_FEATURE_EXCLUSIVE_LOCK (1ULL<<2) #define RBD_FE...
6,383
51.327869
80
h
null
ceph-main/src/include/win32/fs_compat.h
/* * Ceph - scalable distributed file system * * Copyright (C) 2021 SUSE LINUX GmbH * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software * Foundation. See file COPYING. * */ // Those de...
1,069
21.291667
75
h
null
ceph-main/src/include/win32/ifaddrs.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) 2002-2016 Free Software Foundation, Inc. * Copyright (C) 2019 SUSE LINUX GmbH * * This is free software; you can redistribute it and/or * modify it unde...
1,100
26.525
70
h
null
ceph-main/src/include/win32/syslog.h
/* * Copyright 2013, 2015 Cloudbase Solutions Srl * * 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 applicable ...
2,597
38.969231
76
h
null
ceph-main/src/include/win32/winsock_compat.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (c) 2019 SUSE LLC * * 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,000
24.025
77
h
null
ceph-main/src/include/win32/winsock_wrapper.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 SUSE LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2...
683
23.428571
76
h
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/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/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.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.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.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.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.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.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.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/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.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_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.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.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.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/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/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.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.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.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.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.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.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.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.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_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.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.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.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