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/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/encoding.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 ... | 50,015 | 31.289219 | 113 | h |
null | ceph-main/src/include/err.h | #ifndef CEPH_ERR_H
#define CEPH_ERR_H
/*
* adapted from linux 2.6.24 include/linux/err.h
*/
#define MAX_ERRNO 4095
#define IS_ERR_VALUE(x) ((x) >= (uintptr_t)-MAX_ERRNO)
#include <errno.h>
#include <stdint.h>
#include <stdbool.h>
/* this generates a warning in c++; caller can do the cast manually
static inline voi... | 548 | 16.15625 | 67 | 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/expected.hpp | ///
// expected - An implementation of std::expected with extensions
// Written in 2017 by Sy Brand (tartanllama@gmail.com, @TartanLlama)
//
// Documentation available at http://tl.tartanllama.xyz/
//
// To the extent possible under law, the author(s) have dedicated all
// copyright and related and neighboring rights t... | 92,778 | 36.946421 | 128 | hpp |
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/function2.hpp |
// Copyright 2015-2018 Denis Blank <denis.blank at outlook dot com>
// Distributed under 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)
#ifndef FU2_INCLUDED_FUNCTION2_HPP_
#define FU2_INCLUDED_FUNCTION2_HPP_
... | 62,171 | 38.299621 | 80 | hpp |
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/int_types.h | #ifndef CEPH_INTTYPES_H
#define CEPH_INTTYPES_H
#include "acconfig.h"
#include <inttypes.h>
#ifdef __linux__
#include <linux/types.h>
#else
#ifndef HAVE___U8
typedef uint8_t __u8;
#endif
#ifndef HAVE___S8
typedef int8_t __s8;
#endif
#ifndef HAVE___U16
typedef uint16_t __u16;
#endif
#ifndef HAVE___S16
typedef int1... | 883 | 14.508772 | 62 | 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/lru.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,837 | 23.123967 | 162 | 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/on_exit.h | #ifndef CEPH_ON_EXIT_H
#define CEPH_ON_EXIT_H
#include <pthread.h>
#include <vector>
#include "include/ceph_assert.h"
/*
* Create a static instance at the file level to get callbacks called when the
* process exits via main() or exit().
*/
class OnExitManager {
public:
typedef void (*callback_t)(void *arg);... | 1,043 | 19.88 | 78 | h |
null | ceph-main/src/include/page.h | #ifndef CEPH_PAGE_H
#define CEPH_PAGE_H
namespace ceph {
// these are in common/page.cc
extern unsigned _page_size;
extern unsigned long _page_mask;
extern unsigned _page_shift;
}
#endif
#define CEPH_PAGE_SIZE ceph::_page_size
#define CEPH_PAGE_MASK ceph::_page_mask
#define CEPH_PAGE_SHIFT ceph::_page_shift... | 323 | 16.052632 | 41 | 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/rangeset.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,218 | 19.792829 | 72 | 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/spinlock.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... | 1,725 | 17.55914 | 70 | h |
null | ceph-main/src/include/stat.h | #ifndef CEPH_STAT_H
#define CEPH_STAT_H
#include <acconfig.h>
#include <sys/stat.h>
/*
* Access time-related `struct stat` members.
*
* Note that for each of the stat member get/set functions below, setting a
* high-res value (stat_set_*_nsec) on a platform without high-res support is
* a no-op.
*/
#ifdef HAV... | 2,716 | 17.609589 | 77 | 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/stringify.h | #ifndef __CEPH_STRINGIFY_H
#define __CEPH_STRINGIFY_H
#include <string>
#include <sstream>
#include "include/types.h"
template<typename T>
inline std::string stringify(const T& a) {
#if defined(__GNUC__) && !(defined(__clang__) || defined(__INTEL_COMPILER))
static __thread std::ostringstream ss;
ss.str("");
#els... | 625 | 17.411765 | 75 | 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/unordered_map.h | #ifndef CEPH_UNORDERED_MAP_H
#define CEPH_UNORDERED_MAP_H
#include <unordered_map>
namespace ceph {
using std::unordered_map;
using std::unordered_multimap;
}
#endif
| 173 | 13.5 | 32 | h |
null | ceph-main/src/include/unordered_set.h | #ifndef CEPH_UNORDERED_SET_H
#define CEPH_UNORDERED_SET_H
#include <unordered_set>
namespace ceph {
using std::unordered_set;
}
#endif
| 140 | 11.818182 | 28 | 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.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
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.... | 855 | 25.75 | 70 | cc |
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.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
*
* 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,162 | 30.432432 | 82 | cc |
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/libcephfs.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) 2009-2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... | 87,906 | 38.921435 | 215 | h |
null | ceph-main/src/include/cephfs/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) 2020 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... | 28,383 | 28.022495 | 153 | 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.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... | 90,900 | 34.342535 | 92 | 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/neorados/RADOS.hpp | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2018 Red Hat <contact@redhat.com>
* Author: Adam C. Emerson
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the... | 37,773 | 31.818419 | 81 | hpp |
null | ceph-main/src/include/neorados/RADOS_Decodable.hpp | // -*- 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 <contact@redhat.com>
* Author: Adam C. Emerson
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the... | 3,056 | 25.128205 | 79 | hpp |
null | ceph-main/src/include/neorados/buffer_fwd.h | ../buffer_fwd.h | 15 | 15 | 15 | h |
null | ceph-main/src/include/neorados/completion.h | ../../common/async/completion.h | 31 | 31 | 31 | h |
null | ceph-main/src/include/rados/buffer.h | ../buffer.h | 11 | 11 | 11 | h |
null | ceph-main/src/include/rados/buffer_fwd.h | ../buffer_fwd.h | 15 | 15 | 15 | h |
null | ceph-main/src/include/rados/crc32c.h | ../crc32c.h | 11 | 11 | 11 | h |
null | ceph-main/src/include/rados/inline_memory.h | ../inline_memory.h | 18 | 18 | 18 | h |
null | ceph-main/src/include/rados/librados.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... | 151,570 | 35.461631 | 106 | h |
null | ceph-main/src/include/rados/librados.hpp | #ifndef __LIBRADOS_HPP
#define __LIBRADOS_HPP
#include <string>
#include <list>
#include <map>
#include <memory>
#include <set>
#include <vector>
#include <utility>
#include "buffer.h"
#include "librados.h"
#include "librados_fwd.hpp"
#include "rados_types.hpp"
namespace libradosstriper
{
class RadosStriper;
}
na... | 58,142 | 36.057361 | 116 | hpp |
null | ceph-main/src/include/rados/librados_fwd.hpp | #ifndef __LIBRADOS_FWD_HPP
#define __LIBRADOS_FWD_HPP
struct blkin_trace_info;
namespace libradosstriper {
class RadosStriper;
} // namespace libradosstriper
namespace librados {
inline namespace v14_2_0 {
class AioCompletion;
class IoCtx;
class ListObject;
class NObjectIterator;
class ObjectCursor;
class ObjectI... | 616 | 16.628571 | 32 | hpp |
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/page.h | ../page.h | 9 | 9 | 9 | h |
null | ceph-main/src/include/rados/rados_types.h | #ifndef CEPH_RADOS_TYPES_H
#define CEPH_RADOS_TYPES_H
#include <stdint.h>
/**
* @struct obj_watch_t
* One item from list_watchers
*/
struct obj_watch_t {
/// Address of the Watcher
char addr[256];
/// Watcher ID
int64_t watcher_id;
/// Cookie
uint64_t cookie;
/// Timeout in Seconds
uint32_t timeout... | 720 | 16.166667 | 57 | h |
null | ceph-main/src/include/rados/rados_types.hpp | #ifndef CEPH_RADOS_TYPES_HPP
#define CEPH_RADOS_TYPES_HPP
#include <map>
#include <utility>
#include <vector>
#include <stdint.h>
#include <string>
#include "buffer.h"
#include "rados_types.h"
namespace librados {
typedef uint64_t snap_t;
enum {
SNAP_HEAD = (uint64_t)(-2),
SNAP_DIR = (uint64_t)(-1)
};
struct ... | 9,560 | 26.95614 | 208 | hpp |
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/radosstriper/libradosstriper.h | #ifndef CEPH_LIBRADOSSTRIPER_H
#define CEPH_LIBRADOSSTRIPER_H
#ifdef __cplusplus
extern "C" {
#endif
#include <string.h>
#include "../rados/librados.h"
#define LIBRADOSSTRIPER_VER_MAJOR 0
#define LIBRADOSSTRIPER_VER_MINOR 0
#define LIBRADOSSTRIPER_VER_EXTRA 0
#define LIBRADOSSTRIPER_VERSION(maj, min, extra) ((maj ... | 21,367 | 33.409018 | 141 | h |
null | ceph-main/src/include/radosstriper/libradosstriper.hpp | #ifndef __LIBRADOSSTRIPER_HPP
#define __LIBRADOSSTRIPER_HPP
#include <string.h>
#include <string>
#include <map>
#include "../rados/buffer.h"
#include "../rados/librados.hpp"
#include "libradosstriper.h"
namespace libradosstriper
{
struct RadosStriperImpl;
struct MultiAioCompletionImpl;
/*
* Completion obj... | 7,815 | 31.297521 | 125 | hpp |
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/rbd/librbd.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 ve... | 67,649 | 42.645161 | 106 | h |
null | ceph-main/src/include/rbd/librbd.hpp | // -*- 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 ... | 32,889 | 36.804598 | 108 | hpp |
null | ceph-main/src/include/rbd/object_map_types.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#ifndef CEPH_RBD_OBJECT_MAP_TYPES_H
#define CEPH_RBD_OBJECT_MAP_TYPES_H
#include "include/int_types.h"
static const uint8_t OBJECT_NONEXISTENT = 0;
static const uint8_t OBJECT_EXISTS = 1;
static const uint8_t OBJE... | 426 | 29.5 | 70 | h |
null | ceph-main/src/include/win32/dlfcn.h | #include "../dlfcn_compat.h"
| 29 | 14 | 28 | 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/netdb.h | #include "winsock_compat.h"
| 28 | 13.5 | 27 | h |
null | ceph-main/src/include/win32/poll.h | #include "winsock_compat.h"
| 28 | 13.5 | 27 | 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/win32_errno.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... | 2,671 | 17.176871 | 79 | 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/include/win32/arpa/inet.h | #include "winsock_compat.h"
| 28 | 13.5 | 27 | h |
null | ceph-main/src/include/win32/netinet/in.h | #include "winsock_compat.h"
| 28 | 13.5 | 27 | h |
null | ceph-main/src/include/win32/netinet/ip.h | 0 | 0 | 0 | h | |
null | ceph-main/src/include/win32/netinet/tcp.h | 0 | 0 | 0 | h | |
null | ceph-main/src/include/win32/sys/errno.h | #include <errno.h>
| 19 | 9 | 18 | h |
null | ceph-main/src/include/win32/sys/select.h | 0 | 0 | 0 | h | |
null | ceph-main/src/include/win32/sys/socket.h | #include "winsock_compat.h"
| 28 | 13.5 | 27 | h |
null | ceph-main/src/include/win32/sys/statvfs.h | #ifndef _SYS_STATVFS_H
#define _SYS_STATVFS_H 1
typedef unsigned __int64 fsfilcnt64_t;
typedef unsigned __int64 fsblkcnt64_t;
typedef unsigned __int64 fsblkcnt_t;
struct statvfs
{
unsigned long int f_bsize;
unsigned long int f_frsize;
fsblkcnt64_t f_blocks;
fsblkcnt64_t f_bfree;
fsblkcnt64_t f_ba... | 734 | 18.864865 | 38 | h |