// -*- 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 version 2.1, as published by the Free Software * Foundation. See file COPYING. * */ #ifndef CEPH_GLOBAL_CONTEXT_H #define CEPH_GLOBAL_CONTEXT_H #include #include "common/config_fwd.h" #include "include/common_fwd.h" namespace TOPNSPC::global { extern CephContext *g_ceph_context; ConfigProxy& g_conf(); extern const char *g_assert_file; extern int g_assert_line; extern const char *g_assert_func; extern const char *g_assert_condition; extern unsigned long long g_assert_thread; extern char g_assert_thread_name[4096]; extern char g_assert_msg[8096]; extern char g_process_name[NAME_MAX + 1]; extern bool g_eio; extern char g_eio_devname[1024]; extern char g_eio_path[PATH_MAX]; extern int g_eio_error; extern int g_eio_iotype; // IOCB_CMD_* from libaio's aio_abh.io extern unsigned long long g_eio_offset; extern unsigned long long g_eio_length; extern int note_io_error_event( const char *devname, const char *path, int error, int iotype, unsigned long long offset, unsigned long long length); } using namespace TOPNSPC::global; #endif