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/rgw/driver/rados/rgw_sync_trace.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include <atomic>
#include "common/ceph_mutex.h"
#include "common/shunique_lock.h"
#include "common/admin_socket.h"
#include <set>
#include <ostream>
#include <string>
#include <shared_mutex>
#inclu... | 3,267 | 22.014085 | 93 | h |
null | ceph-main/src/rgw/driver/rados/rgw_tools.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "common/errno.h"
#include "librados/librados_asio.h"
#include "include/stringify.h"
#include "rgw_tools.h"
#include "rgw_acl_s3.h"
#include "rgw_aio_throttle.h"
#include "rgw_compression.h"
#include "com... | 12,780 | 28.180365 | 130 | cc |
null | ceph-main/src/rgw/driver/rados/rgw_tools.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include <string>
#include "include/types.h"
#include "include/ceph_hash.h"
#include "common/ceph_time.h"
#include "rgw_common.h"
#include "rgw_sal_fwd.h"
class RGWSI_SysObj;
class RGWRados;
stru... | 8,832 | 30.888087 | 146 | h |
null | ceph-main/src/rgw/driver/rados/rgw_trim_bilog.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 Red Hat, Inc
*
* Author: Casey Bodley <cbodley@redhat.com>
*
* This is free software; you can redistribute it and/or
* modify it under the... | 46,253 | 30.987552 | 118 | cc |
null | ceph-main/src/rgw/driver/rados/rgw_trim_bilog.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2017 Red Hat, Inc
*
* Author: Casey Bodley <cbodley@redhat.com>
*
* This is free software; you can redistribute it and/or
* modify it under the... | 3,920 | 31.139344 | 82 | h |
null | ceph-main/src/rgw/driver/rados/rgw_trim_datalog.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include <vector>
#include <string>
#include "common/errno.h"
#include "rgw_trim_datalog.h"
#include "rgw_cr_rados.h"
#include "rgw_cr_rest.h"
#include "rgw_datalog.h"
#include "rgw_data_sync.h"
#include "rgw_zon... | 8,526 | 32.308594 | 112 | cc |
null | ceph-main/src/rgw/driver/rados/rgw_trim_datalog.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include <string>
#include <vector>
#include "common/dout.h"
class RGWCoroutine;
class RGWRados;
class RGWHTTPManager;
class utime_t;
namespace rgw { namespace sal {
class RadosStore;
} }
// Data... | 965 | 32.310345 | 104 | h |
null | ceph-main/src/rgw/driver/rados/rgw_trim_mdlog.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "common/errno.h"
#include "rgw_trim_mdlog.h"
#include "rgw_sync.h"
#include "rgw_cr_rados.h"
#include "rgw_cr_rest.h"
#include "rgw_zone.h"
#include "services/svc_zone.h"
#include "services/svc_meta.h"
#i... | 27,534 | 33.461827 | 121 | cc |
null | ceph-main/src/rgw/driver/rados/rgw_trim_mdlog.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
class RGWCoroutine;
class DoutPrefixProvider;
class RGWRados;
class RGWHTTPManager;
class utime_t;
namespace rgw { namespace sal {
class RadosStore;
} }
// MetaLogTrimCR factory function
RGWCorouti... | 908 | 33.961538 | 74 | h |
null | ceph-main/src/rgw/driver/rados/rgw_user.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "common/errno.h"
#include "rgw_user.h"
#include "rgw_bucket.h"
#include "rgw_quota.h"
#include "services/svc_user.h"
#include "services/svc_meta.h"
#define dout_subsys ceph_subsys_rgw
using namespace ... | 72,377 | 25.063378 | 171 | cc |
null | ceph-main/src/rgw/driver/rados/rgw_user.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include <string>
#include <boost/algorithm/string.hpp>
#include "include/ceph_assert.h"
#include "include/types.h"
#include "rgw_common.h"
#include "rgw_tools.h"
#include "rgw_string.h"
#include "... | 26,434 | 28.836343 | 140 | h |
null | ceph-main/src/rgw/driver/rados/rgw_zone.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "rgw_zone.h"
#include "rgw_realm_watcher.h"
#include "rgw_sal_config.h"
#include "rgw_sync.h"
#include "services/svc_zone.h"
#define dout_context g_ceph_context
#define dout_subsys ceph_subsys_rgw
using... | 46,852 | 30.131561 | 136 | cc |
null | ceph-main/src/rgw/driver/rados/rgw_zone.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include <ostream>
#include "rgw_zone_types.h"
#include "rgw_common.h"
#include "rgw_sal_fwd.h"
#include "rgw_sync_policy.h"
class RGWSyncModulesManager;
class RGWSI_SysObj;
class RGWSI_Zone;
clas... | 36,835 | 36.511202 | 141 | h |
null | ceph-main/src/rgw/driver/rados/sync_fairness.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 Red Hat, Inc
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Licen... | 8,772 | 23.923295 | 83 | cc |
null | ceph-main/src/rgw/driver/rados/sync_fairness.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 Red Hat, Inc
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Licen... | 1,584 | 28.351852 | 79 | h |
null | ceph-main/src/rgw/driver/rados/config/impl.cc | // vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 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 f... | 3,758 | 27.915385 | 71 | cc |
null | ceph-main/src/rgw/driver/rados/config/impl.h | // vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 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 f... | 4,066 | 28.05 | 78 | h |
null | ceph-main/src/rgw/driver/rados/config/period.cc | // vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 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 f... | 8,201 | 34.506494 | 82 | cc |
null | ceph-main/src/rgw/driver/rados/config/period_config.cc | // vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 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 f... | 1,760 | 30.446429 | 75 | cc |
null | ceph-main/src/rgw/driver/rados/config/realm.cc | // vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 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 f... | 11,737 | 31.158904 | 83 | cc |
null | ceph-main/src/rgw/driver/rados/config/store.cc | // vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 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 f... | 1,282 | 23.207547 | 68 | cc |
null | ceph-main/src/rgw/driver/rados/config/store.h | // vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 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 f... | 9,218 | 49.377049 | 93 | h |
null | ceph-main/src/rgw/driver/rados/config/zone.cc | // vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 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 f... | 9,991 | 30.923323 | 81 | cc |
null | ceph-main/src/rgw/driver/rados/config/zonegroup.cc | // vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2022 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 f... | 10,804 | 33.193038 | 91 | cc |
null | ceph-main/src/rgw/jwt-cpp/base.h | #pragma once
#include <string>
#include <array>
namespace jwt {
namespace alphabet {
struct base64 {
static const std::array<char, 64>& data() {
static std::array<char, 64> data = {
{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', ... | 5,000 | 28.591716 | 117 | h |
null | ceph-main/src/rgw/jwt-cpp/jwt.h | #pragma once
#define PICOJSON_USE_INT64
#include "picojson/picojson.h"
#include "base.h"
#include <set>
#include <chrono>
#include <unordered_map>
#include <memory>
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include <openssl/pem.h>
#include <openssl/ec.h>
#include <openssl/err.h>
//If openssl version less tha... | 57,647 | 34.673267 | 214 | h |
null | ceph-main/src/rgw/picojson/picojson.h | /*
* Copyright 2009-2010 Cybozu Labs, Inc.
* Copyright 2011-2014 Kazuho Oku
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copy... | 33,546 | 27.477929 | 132 | h |
null | ceph-main/src/rgw/services/svc_bi.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... | 1,402 | 30.177778 | 144 | h |
null | ceph-main/src/rgw/services/svc_bi_rados.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_bi_rados.h"
#include "svc_bilog_rados.h"
#include "svc_zone.h"
#include "rgw_bucket.h"
#include "rgw_zone.h"
#include "rgw_datalog.h"
#include "cls/rgw/cls_rgw_client.h"
#define dout_subsys ceph_su... | 17,189 | 32.705882 | 157 | cc |
null | ceph-main/src/rgw/services/svc_bi_rados.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 5,875 | 34.185629 | 141 | h |
null | ceph-main/src/rgw/services/svc_bilog_rados.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_bilog_rados.h"
#include "svc_bi_rados.h"
#include "cls/rgw/cls_rgw_client.h"
#define dout_subsys ceph_subsys_rgw
using namespace std;
RGWSI_BILog_RADOS::RGWSI_BILog_RADOS(CephContext *cct) : RGWSe... | 7,333 | 32.18552 | 164 | cc |
null | ceph-main/src/rgw/services/svc_bilog_rados.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... | 1,914 | 30.393443 | 148 | h |
null | ceph-main/src/rgw/services/svc_bucket.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_bucket.h"
#define dout_subsys ceph_subsys_rgw
std::string RGWSI_Bucket::get_entrypoint_meta_key(const rgw_bucket& bucket)
{
if (bucket.bucket_id.empty()) {
return bucket.get_key();
}
rgw... | 488 | 17.807692 | 75 | cc |
null | ceph-main/src/rgw/services/svc_bucket.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... | 5,165 | 45.125 | 134 | h |
null | ceph-main/src/rgw/services/svc_bucket_sobj.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_bucket_sobj.h"
#include "svc_zone.h"
#include "svc_sys_obj.h"
#include "svc_sys_obj_cache.h"
#include "svc_bi.h"
#include "svc_meta.h"
#include "svc_meta_be_sobj.h"
#include "svc_sync_modules.h"
#in... | 22,430 | 33.776744 | 135 | cc |
null | ceph-main/src/rgw/services/svc_bucket_sobj.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... | 7,278 | 39.21547 | 134 | h |
null | ceph-main/src/rgw/services/svc_bucket_sync.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 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 ve... | 1,863 | 32.285714 | 82 | h |
null | ceph-main/src/rgw/services/svc_bucket_sync_sobj.cc | #include "svc_bucket_sync_sobj.h"
#include "svc_zone.h"
#include "svc_sys_obj_cache.h"
#include "svc_bucket_sobj.h"
#include "rgw_bucket_sync.h"
#include "rgw_zone.h"
#include "rgw_sync_policy.h"
#define dout_subsys ceph_subsys_rgw
using namespace std;
static string bucket_sync_sources_oid_prefix = "bucket.sync-sou... | 29,479 | 31.610619 | 165 | cc |
null | ceph-main/src/rgw/services/svc_bucket_sync_sobj.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 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 ve... | 4,274 | 33.475806 | 100 | h |
null | ceph-main/src/rgw/services/svc_bucket_types.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... | 1,037 | 25.615385 | 104 | h |
null | ceph-main/src/rgw/services/svc_cls.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_cls.h"
#include "svc_rados.h"
#include "svc_zone.h"
#include "rgw_zone.h"
#include "cls/otp/cls_otp_client.h"
#include "cls/log/cls_log_client.h"
#include "cls/lock/cls_lock_client.h"
#define dou... | 12,658 | 25.427975 | 141 | cc |
null | ceph-main/src/rgw/services/svc_cls.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 6,338 | 36.958084 | 147 | h |
null | ceph-main/src/rgw/services/svc_config_key.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Li... | 697 | 20.8125 | 79 | h |
null | ceph-main/src/rgw/services/svc_config_key_rados.cc |
#include "svc_rados.h"
#include "svc_config_key_rados.h"
using namespace std;
RGWSI_ConfigKey_RADOS::~RGWSI_ConfigKey_RADOS(){}
int RGWSI_ConfigKey_RADOS::do_start(optional_yield, const DoutPrefixProvider *dpp)
{
maybe_insecure_mon_conn = !svc.rados->check_secure_mon_conn(dpp);
return 0;
}
void RGWSI_ConfigKe... | 1,132 | 21.215686 | 192 | cc |
null | ceph-main/src/rgw/services/svc_config_key_rados.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Li... | 1,107 | 19.145455 | 76 | h |
null | ceph-main/src/rgw/services/svc_finisher.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "common/Finisher.h"
#include "svc_finisher.h"
using namespace std;
int RGWSI_Finisher::do_start(optional_yield, const DoutPrefixProvider *dpp)
{
finisher = new Finisher(cct);
finisher->start();
r... | 1,012 | 16.169492 | 75 | cc |
null | ceph-main/src/rgw/services/svc_finisher.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "rgw_service.h"
class Context;
class Finisher;
class RGWSI_Finisher : public RGWServiceInstance
{
friend struct RGWServices_Def;
public:
class ShutdownCB;
private:
Finisher *finisher... | 898 | 18.977778 | 73 | h |
null | ceph-main/src/rgw/services/svc_mdlog.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_mdlog.h"
#include "svc_rados.h"
#include "svc_zone.h"
#include "svc_sys_obj.h"
#include "rgw_tools.h"
#include "rgw_mdlog.h"
#include "rgw_coroutine.h"
#include "rgw_cr_rados.h"
#include "rgw_zone.h"... | 17,119 | 30.127273 | 139 | cc |
null | ceph-main/src/rgw/services/svc_mdlog.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 3,956 | 32.252101 | 144 | h |
null | ceph-main/src/rgw/services/svc_meta.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_meta.h"
#include "rgw_metadata.h"
#define dout_subsys ceph_subsys_rgw
using namespace std;
RGWSI_Meta::RGWSI_Meta(CephContext *cct) : RGWServiceInstance(cct) {
}
RGWSI_Meta::~RGWSI_Meta() {}
vo... | 1,039 | 21.12766 | 78 | cc |
null | ceph-main/src/rgw/services/svc_meta.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 1,098 | 21.428571 | 71 | h |
null | ceph-main/src/rgw/services/svc_meta_be.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_meta_be.h"
#include "rgw_mdlog.h"
#define dout_subsys ceph_subsys_rgw
using namespace std;
RGWSI_MetaBackend::Context::~Context() {} // needed, even though destructor is pure virtual
RGWSI_MetaBa... | 5,858 | 29.201031 | 135 | cc |
null | ceph-main/src/rgw/services/svc_meta_be.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... | 9,488 | 31.166102 | 119 | h |
null | ceph-main/src/rgw/services/svc_meta_be_otp.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_meta_be_otp.h"
#include "rgw_tools.h"
#include "rgw_metadata.h"
#include "rgw_mdlog.h"
#define dout_subsys ceph_subsys_rgw
using namespace std;
RGWSI_MetaBackend_OTP::RGWSI_MetaBackend_OTP(CephCon... | 2,284 | 29.878378 | 126 | cc |
null | ceph-main/src/rgw/services/svc_meta_be_otp.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Li... | 2,477 | 26.533333 | 115 | h |
null | ceph-main/src/rgw/services/svc_meta_be_params.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Li... | 578 | 21.269231 | 83 | h |
null | ceph-main/src/rgw/services/svc_meta_be_sobj.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_meta_be_sobj.h"
#include "svc_meta_be_params.h"
#include "svc_mdlog.h"
#include "rgw_tools.h"
#include "rgw_metadata.h"
#include "rgw_mdlog.h"
#define dout_subsys ceph_subsys_rgw
using namespace st... | 8,036 | 31.538462 | 127 | cc |
null | ceph-main/src/rgw/services/svc_meta_be_sobj.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Li... | 6,733 | 33.533333 | 117 | h |
null | ceph-main/src/rgw/services/svc_meta_be_types.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... | 528 | 18.592593 | 70 | h |
null | ceph-main/src/rgw/services/svc_notify.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "include/random.h"
#include "include/Context.h"
#include "common/errno.h"
#include "rgw_cache.h"
#include "svc_notify.h"
#include "svc_finisher.h"
#include "svc_zone.h"
#include "svc_rados.h"
#include "r... | 11,700 | 24.887168 | 134 | cc |
null | ceph-main/src/rgw/services/svc_notify.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "rgw_service.h"
#include "svc_rados.h"
class Context;
class RGWSI_Zone;
class RGWSI_Finisher;
class RGWWatcher;
class RGWSI_Notify_ShutdownCB;
struct RGWCacheNotifyInfo;
class RGWSI_Not... | 2,755 | 24.757009 | 101 | h |
null | ceph-main/src/rgw/services/svc_otp.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_otp.h"
#include "svc_zone.h"
#include "svc_meta.h"
#include "svc_meta_be_sobj.h"
#include "rgw_zone.h"
#define dout_subsys ceph_subsys_rgw
using namespace std;
class RGW_MB_Handler_Module_OTP : pu... | 5,105 | 26.304813 | 112 | cc |
null | ceph-main/src/rgw/services/svc_otp.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... | 2,780 | 27.96875 | 71 | h |
null | ceph-main/src/rgw/services/svc_otp_types.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... | 740 | 23.7 | 94 | h |
null | ceph-main/src/rgw/services/svc_quota.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_quota.h"
#include "svc_zone.h"
#include "rgw_zone.h"
const RGWQuotaInfo& RGWSI_Quota::get_bucket_quota() const
{
return zone_svc->get_current_period().get_config().quota.bucket_quota;
}
const RGW... | 443 | 22.368421 | 72 | cc |
null | ceph-main/src/rgw/services/svc_quota.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "rgw_service.h"
class RGWSI_Quota : public RGWServiceInstance
{
RGWSI_Zone *zone_svc{nullptr};
public:
RGWSI_Quota(CephContext *cct): RGWServiceInstance(cct) {}
void init(RGWSI_Zone... | 463 | 19.173913 | 70 | h |
null | ceph-main/src/rgw/services/svc_rados.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_rados.h"
#include "include/rados/librados.hpp"
#include "common/errno.h"
#include "osd/osd_types.h"
#include "rgw_tools.h"
#include "rgw_cr_rados.h"
#include "auth/AuthRegistry.h"
#define dout_subs... | 11,560 | 24.921525 | 117 | cc |
null | ceph-main/src/rgw/services/svc_rados.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "rgw_service.h"
#include "include/rados/librados.hpp"
#include "common/async/yield_context.h"
class RGWAsyncRadosProcessor;
class RGWAccessListFilter {
public:
virtual ~RGWAccessListFilt... | 6,282 | 23.833992 | 112 | h |
null | ceph-main/src/rgw/services/svc_role_rados.cc | #include "svc_role_rados.h"
#include "svc_meta_be_sobj.h"
#include "svc_meta.h"
#include "rgw_role.h"
#include "rgw_zone.h"
#include "svc_zone.h"
#include "rgw_tools.h"
#define dout_subsys ceph_subsys_rgw
class RGWSI_Role_Module : public RGWSI_MBSObj_Handler_Module {
RGWSI_Role_RADOS::Svc& svc;
const std::string ... | 2,264 | 26.289157 | 96 | cc |
null | ceph-main/src/rgw/services/svc_role_rados.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* 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 v... | 1,357 | 25.627451 | 73 | h |
null | ceph-main/src/rgw/services/svc_sync_modules.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_sync_modules.h"
#include "svc_zone.h"
#include "rgw_sync_module.h"
#include "rgw_zone.h"
#define dout_subsys ceph_subsys_rgw
void RGWSI_SyncModules::init(RGWSI_Zone *zone_svc)
{
svc.zone = zone_s... | 1,295 | 27.8 | 145 | cc |
null | ceph-main/src/rgw/services/svc_sync_modules.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "rgw_service.h"
#include "rgw_sync_module.h"
class RGWSI_Zone;
class RGWSyncModulesManager;
class RGWSI_SyncModules : public RGWServiceInstance
{
RGWSyncModulesManager *sync_modules_mana... | 790 | 21.6 | 71 | h |
null | ceph-main/src/rgw/services/svc_sys_obj.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_sys_obj.h"
#include "svc_sys_obj_core.h"
#include "svc_rados.h"
#include "svc_zone.h"
#include "rgw_zone.h"
#define dout_subsys ceph_subsys_rgw
using namespace std;
RGWSI_SysObj::Obj RGWSI_SysObj:... | 5,749 | 30.25 | 134 | cc |
null | ceph-main/src/rgw/services/svc_sys_obj.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "common/static_ptr.h"
#include "rgw_service.h"
#include "svc_rados.h"
#include "svc_sys_obj_types.h"
#include "svc_sys_obj_core_types.h"
class RGWSI_Zone;
class RGWSI_SysObj;
struct rgw_... | 7,197 | 25.560886 | 134 | h |
null | ceph-main/src/rgw/services/svc_sys_obj_cache.cc |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "common/admin_socket.h"
#include "svc_sys_obj_cache.h"
#include "svc_zone.h"
#include "svc_notify.h"
#include "rgw_zone.h"
#include "rgw_tools.h"
#define dout_subsys ceph_subsys_rgw
using namespace st... | 19,023 | 27.351714 | 133 | cc |
null | ceph-main/src/rgw/services/svc_sys_obj_cache.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "common/RWLock.h"
#include "rgw_service.h"
#include "rgw_cache.h"
#include "svc_sys_obj_core.h"
class RGWSI_Notify;
class RGWSI_SysObj_Cache_CB;
class RGWSI_SysObj_Cache_ASocketHook;
clas... | 6,954 | 30.188341 | 126 | h |
null | ceph-main/src/rgw/services/svc_sys_obj_core.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_sys_obj_core.h"
#include "svc_rados.h"
#include "svc_zone.h"
#include "rgw_tools.h"
#define dout_subsys ceph_subsys_rgw
using namespace std;
int RGWSI_SysObj_Core_GetObjState::get_rados_obj(const ... | 18,124 | 26.173913 | 110 | cc |
null | ceph-main/src/rgw/services/svc_sys_obj_core.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "rgw_service.h"
#include "svc_rados.h"
#include "svc_sys_obj.h"
#include "svc_sys_obj_core_types.h"
class RGWSI_Zone;
struct rgw_cache_entry_info;
class RGWSI_SysObj_Core : public RGWSer... | 5,988 | 40.020548 | 121 | h |
null | ceph-main/src/rgw/services/svc_sys_obj_core_types.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "rgw_service.h"
#include "svc_rados.h"
#include "svc_sys_obj_types.h"
struct RGWSI_SysObj_Core_GetObjState : public RGWSI_SysObj_Obj_GetObjState {
RGWSI_RADOS::Obj rados_obj;
bool ha... | 909 | 25 | 98 | h |
null | ceph-main/src/rgw/services/svc_sys_obj_types.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "rgw_service.h"
struct RGWSI_SysObj_Obj_GetObjState {
};
struct RGWSI_SysObj_Pool_ListInfo {
};
| 230 | 13.4375 | 70 | h |
null | ceph-main/src/rgw/services/svc_tier_rados.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_tier_rados.h"
using namespace std;
const std::string MP_META_SUFFIX = ".meta";
MultipartMetaFilter::~MultipartMetaFilter() {}
bool MultipartMetaFilter::filter(const string& name, string& key) {
... | 841 | 21.756757 | 70 | cc |
null | ceph-main/src/rgw/services/svc_tier_rados.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 4,259 | 26.483871 | 105 | h |
null | ceph-main/src/rgw/services/svc_user.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_user.h"
RGWSI_User::RGWSI_User(CephContext *cct): RGWServiceInstance(cct) {
}
RGWSI_User::~RGWSI_User() {
}
| 231 | 18.333333 | 70 | cc |
null | ceph-main/src/rgw/services/svc_user.h |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... | 5,374 | 40.992188 | 89 | h |
null | ceph-main/src/rgw/services/svc_user_rados.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include <boost/algorithm/string.hpp>
#include "svc_user.h"
#include "svc_user_rados.h"
#include "svc_zone.h"
#include "svc_sys_obj.h"
#include "svc_sys_obj_cache.h"
#include "svc_meta.h"
#include "svc_meta_be_sob... | 29,944 | 29.902993 | 160 | cc |
null | ceph-main/src/rgw/services/svc_user_rados.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2019 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 8,779 | 40.415094 | 150 | h |
null | ceph-main/src/rgw/services/svc_zone.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_zone.h"
#include "svc_rados.h"
#include "svc_sys_obj.h"
#include "svc_sync_modules.h"
#include "rgw_zone.h"
#include "rgw_rest_conn.h"
#include "rgw_bucket_sync.h"
#include "common/errno.h"
#include... | 34,371 | 30.650092 | 173 | cc |
null | ceph-main/src/rgw/services/svc_zone.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "rgw_service.h"
class RGWSI_RADOS;
class RGWSI_SysObj;
class RGWSI_SyncModules;
class RGWSI_Bucket_Sync;
class RGWRealm;
class RGWZoneGroup;
class RGWZone;
class RGWZoneParams;
class RGWPe... | 6,428 | 37.963636 | 160 | h |
null | ceph-main/src/rgw/services/svc_zone_utils.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "svc_zone_utils.h"
#include "svc_rados.h"
#include "svc_zone.h"
#include "rgw_zone.h"
using namespace std;
int RGWSI_ZoneUtils::do_start(optional_yield, const DoutPrefixProvider *dpp)
{
init_unique_tr... | 2,350 | 35.169231 | 140 | cc |
null | ceph-main/src/rgw/services/svc_zone_utils.h | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#pragma once
#include "rgw_service.h"
class RGWSI_RADOS;
class RGWSI_Zone;
class RGWSI_ZoneUtils : public RGWServiceInstance
{
friend struct RGWServices_Def;
RGWSI_RADOS *rados_svc{nullptr};
RGWSI_Zone *... | 825 | 20.179487 | 71 | h |
null | ceph-main/src/script/add_osd.sh | #!/usr/bin/env bash
set -ex
CEPH_DEV_DIR=dev
CEPH_BIN=bin
ceph_adm=$CEPH_BIN/ceph
osd=$1
location=$2
weight=.0990
# DANGEROUS
rm -rf $CEPH_DEV_DIR/osd$osd
mkdir -p $CEPH_DEV_DIR/osd$osd
uuid=`uuidgen`
echo "add osd$osd $uuid"
OSD_SECRET=$($CEPH_BIN/ceph-authtool --gen-print-key)
echo "{\"cephx_secret\": \"$OSD_SECR... | 896 | 23.916667 | 107 | sh |
null | ceph-main/src/script/ceph-backport.sh | #!/usr/bin/env bash
set -e
#
# ceph-backport.sh - Ceph backporting script
#
# Credits: This script is based on work done by Loic Dachary
#
#
# This script automates the process of staging a backport starting from a
# Backport tracker issue.
#
# Setup:
#
# ceph-backport.sh --setup
#
# Usage and troubleshooting:
#
#... | 64,260 | 34.211507 | 267 | sh |
null | ceph-main/src/script/ceph-debug-docker.sh | #!/usr/bin/env bash
# This can be run from e.g. the senta machines which have docker available. You
# may need to run this script with sudo.
#
# Once you have booted into the image, you should be able to debug the core file:
# $ gdb -q /ceph/teuthology-archive/.../coredump/1500013578.8678.core
#
# You may want to ... | 5,570 | 30.653409 | 316 | sh |
null | ceph-main/src/script/check_commands.sh | #!/bin/sh
git grep -e COMMAND\( -e COMMAND_WITH_FLAG\( | grep -o "(\"[a-zA-Z ]*\"" | grep -o "[a-zA-Z ]*" | sort | uniq > commands.txt
missing_test=false
good_tests=""
bad_tests=""
while read cmd; do
if git grep -q "$cmd" -- src/test qa/; then
good_tests="$good_tests '$cmd'"
else
echo "'$cmd' has no apparent... | 495 | 22.619048 | 124 | sh |
null | ceph-main/src/script/crash_bdev.sh | #!/usr/bin/env bash
set -ex
while true; do
./ceph daemon osd.0 config set bdev_inject_crash 2
sleep 5
tail -n 1000 out/osd.0.log | grep bdev_inject_crash || exit 1
./init-ceph start osd.0
sleep 20
done
| 223 | 19.363636 | 65 | sh |
null | ceph-main/src/script/credits.sh | #!/usr/bin/env bash
range="$1"
TMP=/tmp/credits
declare -A mail2author
declare -A mail2organization
remap="s/'/ /g"
git log --pretty='%ae %aN <%aE>' $range | sed -e "$remap" | sort -u > $TMP
while read mail who ; do
author=$(echo $who | git -c mailmap.file=.peoplemap check-mailmap --stdin)
mail2author[$mail]="... | 2,379 | 49.638298 | 219 | sh |
null | ceph-main/src/script/extend_stretch_cluster.sh | #!/usr/bin/env bash
set -ex
../src/script/add_osd.sh 4 'host=host1-1 datacenter=site1 root=default'
../src/script/add_osd.sh 5 'host=host1-2 datacenter=site1 root=default'
../src/script/add_osd.sh 6 'host=host2-1 datacenter=site2 root=default'
../src/script/add_osd.sh 7 'host=host2-2 datacenter=site2 root=default'
| 318 | 34.444444 | 71 | sh |
null | ceph-main/src/script/find_dups_in_pg_log.sh | #!/bin/sh
# pipe output of grep for objectname in osd logs to me
#
# e.g.,
#
# zgrep smithi01817880-936 remote/*/log/*osd* | ~/src/ceph/src/script/find_dups_in_pg_log.sh
#
# or
#
# zcat remote/*/log/*osd* | ~/src/ceph/src/script/find_dups_in_pg_log.sh
#
# output will be any requests that appear in the pg log >1 time... | 690 | 29.043478 | 145 | sh |
null | ceph-main/src/script/gen-corpus.sh | #!/usr/bin/env bash
# -*- mode:sh; tab-width:4; sh-basic-offset:4; indent-tabs-mode:nil -*-
# vim: softtabstop=4 shiftwidth=4 expandtab
set -ex
function get_jobs() {
local jobs=$(nproc)
if [ $jobs -ge 8 ] ; then
echo 8
else
echo $jobs
fi
}
[ -z "$BUILD_DIR" ] && BUILD_DIR=build
funct... | 2,323 | 21.563107 | 71 | sh |
null | ceph-main/src/script/kcon_all.sh | #!/bin/sh -x
p() {
echo "$*" > /sys/kernel/debug/dynamic_debug/control
}
echo 9 > /proc/sysrq-trigger
p 'module ceph +p'
p 'module libceph +p'
p 'module rbd +p'
| 164 | 14 | 52 | sh |