From: Colin Patrick McCabe Date: Tue, 22 Feb 2011 19:23:31 +0000 (-0800) Subject: common: Fix some missing includes, copyrights X-Git-Tag: v0.25~45^2~28 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ebc9dbc1755c6a71eeae62e91a78b30a72e7e07a;p=ceph.git common: Fix some missing includes, copyrights Signed-off-by: Colin McCabe --- diff --git a/src/auth/AuthAuthorizeHandler.cc b/src/auth/AuthAuthorizeHandler.cc index 3c3bd3cd608e..83a555736869 100644 --- a/src/auth/AuthAuthorizeHandler.cc +++ b/src/auth/AuthAuthorizeHandler.cc @@ -1,8 +1,24 @@ +// -*- 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 + * License version 2.1, as published by the Free Software + * Foundation. See file COPYING. + * + */ + #include "Auth.h" #include "AuthAuthorizeHandler.h" #include "cephx/CephxAuthorizeHandler.h" #include "none/AuthNoneAuthorizeHandler.h" #include "AuthSupported.h" +#include "common/debug.h" +#include "common/Mutex.h" static bool _initialized = false; static Mutex _lock("auth_service_handler_init"); diff --git a/src/auth/AuthSupported.cc b/src/auth/AuthSupported.cc index 91b70bd7cb6e..dc14972ca146 100644 --- a/src/auth/AuthSupported.cc +++ b/src/auth/AuthSupported.cc @@ -13,8 +13,9 @@ */ #include "common/Mutex.h" -#include "include/str_list.h" #include "common/config.h" +#include "common/debug.h" +#include "include/str_list.h" #define DOUT_SUBSYS auth diff --git a/src/auth/Crypto.cc b/src/auth/Crypto.cc index 466f7b760572..1bca73d32e94 100644 --- a/src/auth/Crypto.cc +++ b/src/auth/Crypto.cc @@ -18,6 +18,7 @@ #include "include/ceph_fs.h" #include "common/config.h" +#include "common/debug.h" #include "common/armor.h" #include "common/Clock.h" #include "common/hex.h" diff --git a/src/auth/KeyRing.cc b/src/auth/KeyRing.cc index c42dea577a46..1ea1d988fc2d 100644 --- a/src/auth/KeyRing.cc +++ b/src/auth/KeyRing.cc @@ -16,6 +16,7 @@ #include #include "common/config.h" +#include "common/debug.h" #include "include/str_list.h" #include "common/ConfUtils.h" diff --git a/src/auth/RotatingKeyRing.cc b/src/auth/RotatingKeyRing.cc index fa484a2c2f1e..a96fc5618e48 100644 --- a/src/auth/RotatingKeyRing.cc +++ b/src/auth/RotatingKeyRing.cc @@ -2,6 +2,7 @@ #include #include "common/config.h" +#include "common/debug.h" #include "include/str_list.h" #include "Crypto.h" diff --git a/src/auth/cephx/CephxProtocol.cc b/src/auth/cephx/CephxProtocol.cc index 696174e977d9..57984397feb8 100644 --- a/src/auth/cephx/CephxProtocol.cc +++ b/src/auth/cephx/CephxProtocol.cc @@ -1,8 +1,21 @@ +// -*- 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 + * License version 2.1, as published by the Free Software + * Foundation. See file COPYING. + * + */ #include "CephxProtocol.h" #include "common/Clock.h" - #include "common/config.h" +#include "common/debug.h" #define DOUT_SUBSYS auth #undef dout_prefix diff --git a/src/auth/none/AuthNoneAuthorizeHandler.cc b/src/auth/none/AuthNoneAuthorizeHandler.cc index 0848e9fed584..b965049a1115 100644 --- a/src/auth/none/AuthNoneAuthorizeHandler.cc +++ b/src/auth/none/AuthNoneAuthorizeHandler.cc @@ -1,7 +1,19 @@ - +// -*- 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 + * License version 2.1, as published by the Free Software + * Foundation. See file COPYING. + * + */ #include "AuthNoneAuthorizeHandler.h" - +#include "common/debug.h" bool AuthNoneAuthorizeHandler::verify_authorizer(KeyStore *keys, bufferlist& authorizer_data, bufferlist& authorizer_reply, diff --git a/src/client/Trace.cc b/src/client/Trace.cc index d425320aeb59..20d4ce0dfc79 100644 --- a/src/client/Trace.cc +++ b/src/client/Trace.cc @@ -15,6 +15,7 @@ #include "Trace.h" +#include "common/debug.h" #include #include diff --git a/src/common/ClassLibrary.cc b/src/common/ClassLibrary.cc index 2cea0a127b9d..119f6543935c 100644 --- a/src/common/ClassLibrary.cc +++ b/src/common/ClassLibrary.cc @@ -1,5 +1,19 @@ +// -*- 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 + * License version 2.1, as published by the Free Software + * Foundation. See file COPYING. + * + */ #include "common/ClassVersion.h" +#include "common/debug.h" #include "include/ClassLibrary.h" #include "common/config.h" diff --git a/src/common/buffer.cc b/src/common/buffer.cc index 950527cff23d..73edf8b96a10 100644 --- a/src/common/buffer.cc +++ b/src/common/buffer.cc @@ -14,6 +14,7 @@ #include "armor.h" +#include "common/debug.h" #include "common/errno.h" #include "common/safe_io.h" #include "common/config.h" diff --git a/src/osd/OSDCaps.cc b/src/osd/OSDCaps.cc index fda0872473c2..cd43d9103ede 100644 --- a/src/osd/OSDCaps.cc +++ b/src/osd/OSDCaps.cc @@ -1,9 +1,20 @@ +// -*- 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 + * License version 2.1, as published by the Free Software + * Foundation. See file COPYING. + * + */ #include "OSDCaps.h" - #include "common/config.h" - - +#include "common/debug.h" void PoolsMap::dump() {