]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agoReplicatedPG: split get_obs_to_trim from snap_trimmer
Samuel Just [Mon, 6 Jun 2011 16:29:47 +0000 (09:29 -0700)]
ReplicatedPG: split get_obs_to_trim from snap_trimmer

Factor code for getting next collection/objects to trim into
get_obs_to_trim.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoReplicatedPG,PG: update snap_collections on replica
Samuel Just [Wed, 8 Jun 2011 18:23:56 +0000 (11:23 -0700)]
ReplicatedPG,PG: update snap_collections on replica

Previously, snap_collections did not get updated on the replica.  As a
result, snap collections would not necessarily get trimmed when the
replica recieved and updated purged_snaps via a pg info from the
primary.  Now, the log entries in sub_op_modified are scanned to check
for any new snap collections.  The first and last snaps on a clone entry
are possibly new snap collections.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoReplicatedPG: update pull_info and data_subset in sub_op_push
Samuel Just [Fri, 17 Jun 2011 23:23:58 +0000 (16:23 -0700)]
ReplicatedPG: update pull_info and data_subset in sub_op_push

data_subset and data_needed in pull_info need to be updated with the
results of running calc_clone_subsets in sub_op_push

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoFileStore: die if we get an ENOENT on a clone
Samuel Just [Mon, 20 Jun 2011 16:28:32 +0000 (09:28 -0700)]
FileStore: die if we get an ENOENT on a clone

During recovery, ignoring this would allow a bug in the osd to
erroneously mark the pg clean with incorrectly recovered objects.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agolibrbd: fix read_iterate for the case where block ofs is not 0
Yehuda Sadeh [Wed, 22 Jun 2011 17:51:18 +0000 (10:51 -0700)]
librbd: fix read_iterate for the case where block ofs is not 0

Conflicts:

src/librbd.cc

14 years agoMakefile.am: use libtool convenience libraries
Colin Patrick McCabe [Wed, 22 Jun 2011 17:33:52 +0000 (10:33 -0700)]
Makefile.am: use libtool convenience libraries

Use libtool convenience libraries rather than explicitly forcing .a
files (static code archives) to be generated or including library .c
files directly into applications.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'next'
Sage Weil [Wed, 22 Jun 2011 17:10:14 +0000 (10:10 -0700)]
Merge branch 'next'

14 years agoMerge remote branch 'origin/stable' into next
Sage Weil [Wed, 22 Jun 2011 17:09:48 +0000 (10:09 -0700)]
Merge remote branch 'origin/stable' into next

Conflicts:
src/librbd.cc

14 years agorbd: --help/-h
Sage Weil [Wed, 22 Jun 2011 03:34:42 +0000 (20:34 -0700)]
rbd: --help/-h

14 years agoosd: fix merge
Sage Weil [Wed, 22 Jun 2011 15:56:47 +0000 (08:56 -0700)]
osd: fix merge

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibrbd: sparse read cleanup, fixes
Yehuda Sadeh [Wed, 22 Jun 2011 05:40:28 +0000 (22:40 -0700)]
librbd: sparse read cleanup, fixes

Conflicts:

src/librbd.cc

14 years agolibrbd: fix and cleanup a bit read_iterate
Yehuda Sadeh [Tue, 21 Jun 2011 23:31:44 +0000 (16:31 -0700)]
librbd: fix and cleanup a bit read_iterate

14 years agolibrbd: sparse read cleanup, fixes
Yehuda Sadeh [Wed, 22 Jun 2011 05:40:28 +0000 (22:40 -0700)]
librbd: sparse read cleanup, fixes

14 years agolibrbd: fix and cleanup a bit read_iterate
Yehuda Sadeh [Tue, 21 Jun 2011 23:31:44 +0000 (16:31 -0700)]
librbd: fix and cleanup a bit read_iterate

14 years agorgw: some cleanups
Yehuda Sadeh [Tue, 21 Jun 2011 18:37:43 +0000 (11:37 -0700)]
rgw: some cleanups

14 years agoqa: simple rbd import/export test
Sage Weil [Wed, 22 Jun 2011 03:31:00 +0000 (20:31 -0700)]
qa: simple rbd import/export test

Fixes: #1211
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoObjecter.cc: de-globalize
Colin Patrick McCabe [Tue, 21 Jun 2011 23:59:37 +0000 (16:59 -0700)]
Objecter.cc: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoinitialize g_ceph_context in common_preinit
Colin Patrick McCabe [Tue, 21 Jun 2011 20:00:04 +0000 (13:00 -0700)]
initialize g_ceph_context in common_preinit

Initialize g_ceph_context in common_preinit rather than in a global
constructor.

Add comments to all of the major initialization functions.

We still set globals in common_preinit, for the time being.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoCephContext: not copyable
Colin Patrick McCabe [Tue, 21 Jun 2011 23:16:09 +0000 (16:16 -0700)]
CephContext: not copyable

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomake misc items as not copyable
Sage Weil [Tue, 21 Jun 2011 22:58:59 +0000 (15:58 -0700)]
make misc items as not copyable

These structures are all not copyable.  Make sure we get a link error if
we try.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years ago[dex]list: not copyable
Sage Weil [Tue, 21 Jun 2011 16:05:15 +0000 (09:05 -0700)]
[dex]list: not copyable

The list items are embedded in other structures; copying the list will lead
to duplicated references and other badness.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomsgr: avoid copying Pipe* xlist
Sage Weil [Tue, 21 Jun 2011 22:57:46 +0000 (15:57 -0700)]
msgr: avoid copying Pipe* xlist

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge branch 'stable' into next
Sage Weil [Tue, 21 Jun 2011 22:54:54 +0000 (15:54 -0700)]
Merge branch 'stable' into next

Conflicts:
src/osd/OSD.cc

14 years agomds: make avoid copying sessionmap by_state xlist
Sage Weil [Tue, 21 Jun 2011 22:54:34 +0000 (15:54 -0700)]
mds: make avoid copying sessionmap by_state xlist

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: do misdirected request checks before pg active test
Sage Weil [Tue, 21 Jun 2011 22:54:13 +0000 (15:54 -0700)]
osd: do misdirected request checks before pg active test

We can process+discard a misdirected or invalid request without the pg
being active.  Reorder a few other checks too.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: avoid copying snap client_caps xlist
Sage Weil [Tue, 21 Jun 2011 16:07:03 +0000 (09:07 -0700)]
mds: avoid copying snap client_caps xlist

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomon: do not copy subscription xlist
Sage Weil [Mon, 20 Jun 2011 22:39:16 +0000 (15:39 -0700)]
mon: do not copy subscription xlist

xlist is not copyable.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoqa: clean up after snaptest-multiple-capsnaps.sh
Sage Weil [Tue, 21 Jun 2011 22:52:46 +0000 (15:52 -0700)]
qa: clean up after snaptest-multiple-capsnaps.sh

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoDispatcher: prevent copying
Colin Patrick McCabe [Tue, 21 Jun 2011 22:46:42 +0000 (15:46 -0700)]
Dispatcher: prevent copying

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomsgr: only SO_REUSEADDR when specific port is specified
Sage Weil [Tue, 21 Jun 2011 19:47:32 +0000 (12:47 -0700)]
msgr: only SO_REUSEADDR when specific port is specified

In general SO_REUSEADDR is slightly dangerous, but avoids waiting for the
timeout when restarting servers.  This is important when binding to a
specific port.

When binding to a random port, it doesn't matter.  Also, it appears that
two processes can bind() to the same port with that flag set, and then one
will fail with EADDRINUSE on listen().  That's racy when starting up
daemons that should be binding to unique/random ports.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomon: fix log state trimming
Sage Weil [Tue, 21 Jun 2011 19:13:04 +0000 (12:13 -0700)]
mon: fix log state trimming

We need to stash last_consumed in order for trimming to work.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'wip-globalfoo'
Colin Patrick McCabe [Tue, 21 Jun 2011 19:28:44 +0000 (12:28 -0700)]
Merge branch 'wip-globalfoo'

14 years agomon: add 'log ....' command
Sage Weil [Tue, 21 Jun 2011 19:13:38 +0000 (12:13 -0700)]
mon: add 'log ....' command

Just sticks something in the central log.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoConvert g_ceph_context to a pointer.
Colin Patrick McCabe [Tue, 21 Jun 2011 19:28:16 +0000 (12:28 -0700)]
Convert g_ceph_context to a pointer.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agogitignore: add test_libcommon_build
Colin Patrick McCabe [Tue, 21 Jun 2011 19:07:12 +0000 (12:07 -0700)]
gitignore: add test_libcommon_build

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoinode_load_vec_t: de-globalize
Colin Patrick McCabe [Tue, 21 Jun 2011 18:31:50 +0000 (11:31 -0700)]
inode_load_vec_t: de-globalize

Don't call ceph_clock_now from the constructor of inode_load_vec_t.
Update the classes that contain inode_load_vec_t to reflect this.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoCreate test_libcommon_build
Colin Patrick McCabe [Fri, 17 Jun 2011 19:19:11 +0000 (12:19 -0700)]
Create test_libcommon_build

Create test_libcommon_build to test for references to g_ceph_context and
other libglobal symbols from within libcommon.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoDecayCounter: take a utime_t in ::decode
Colin Patrick McCabe [Tue, 21 Jun 2011 17:49:49 +0000 (10:49 -0700)]
DecayCounter: take a utime_t in ::decode

We need to initialize the last_decay time of the DecayCounter when
decoding it. This is not found in the encoded information, but instead
is set to the current time. We need to pass this in explicitly now
because of deglobalization.

This also reduces the number of calls to gettimeofday, which is good in
general.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoThread.cc: deglobalize
Colin Patrick McCabe [Tue, 21 Jun 2011 00:12:01 +0000 (17:12 -0700)]
Thread.cc: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon_init: de-globalize
Colin Patrick McCabe [Tue, 21 Jun 2011 00:01:54 +0000 (17:01 -0700)]
common_init: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agofilestore: fix fiemap
Yehuda Sadeh [Mon, 20 Jun 2011 18:00:51 +0000 (11:00 -0700)]
filestore: fix fiemap

14 years agorbd: fix read_iterate for sparse read
Yehuda Sadeh [Mon, 20 Jun 2011 17:58:26 +0000 (10:58 -0700)]
rbd: fix read_iterate for sparse read

14 years agorgw: use adapting window for put obj
Yehuda Sadeh [Tue, 21 Jun 2011 18:22:47 +0000 (11:22 -0700)]
rgw: use adapting window for put obj

14 years agoAuthNone: encode entity name in authorizer
Colin Patrick McCabe [Tue, 21 Jun 2011 18:15:37 +0000 (11:15 -0700)]
AuthNone: encode entity name in authorizer

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosd: warn instead of error if cluster addr specified but not public addr
Sage Weil [Tue, 21 Jun 2011 16:51:22 +0000 (09:51 -0700)]
osd: warn instead of error if cluster addr specified but not public addr

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoinclude/atomic.h:fix build for non-atomic-ops case
Colin Patrick McCabe [Tue, 21 Jun 2011 05:40:28 +0000 (22:40 -0700)]
include/atomic.h:fix build for non-atomic-ops case

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: put data using a window
Yehuda Sadeh [Tue, 21 Jun 2011 00:09:27 +0000 (17:09 -0700)]
rgw: put data using a window

14 years agoMDSMap: de-globalize
Colin Patrick McCabe [Mon, 20 Jun 2011 21:47:41 +0000 (14:47 -0700)]
MDSMap: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoassert: de-globalize
Colin Patrick McCabe [Mon, 20 Jun 2011 21:14:33 +0000 (14:14 -0700)]
assert: de-globalize

Implement a simple registration system so that assert output can still
show up non-interleaved in daemons and utilities. Library code will just
use dout_emergency, which is simple and deadlock-free, but might be
interleaved with ongoing messages sometimes.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMessenger: de-globalize
Colin Patrick McCabe [Mon, 20 Jun 2011 19:46:36 +0000 (12:46 -0700)]
Messenger: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoDoutStreambuf: de-globalize
Colin Patrick McCabe [Mon, 20 Jun 2011 19:46:15 +0000 (12:46 -0700)]
DoutStreambuf: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoOSDMap: de-globalize
Colin Patrick McCabe [Mon, 20 Jun 2011 19:40:34 +0000 (12:40 -0700)]
OSDMap: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: more deglobalization
Colin Patrick McCabe [Mon, 20 Jun 2011 19:31:24 +0000 (12:31 -0700)]
auth: more deglobalization

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agohex.cc: de-globalize
Colin Patrick McCabe [Mon, 20 Jun 2011 18:49:38 +0000 (11:49 -0700)]
hex.cc: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMonClient: deglobalize
Colin Patrick McCabe [Fri, 17 Jun 2011 23:34:04 +0000 (16:34 -0700)]
MonClient: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoProfLogger: de-globalize
Colin Patrick McCabe [Fri, 17 Jun 2011 23:33:52 +0000 (16:33 -0700)]
ProfLogger: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotcp.cc: de-globalize
Colin Patrick McCabe [Mon, 20 Jun 2011 18:43:06 +0000 (11:43 -0700)]
tcp.cc: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoLogClient: remove accidental g_conf references
Colin Patrick McCabe [Fri, 17 Jun 2011 19:45:13 +0000 (12:45 -0700)]
LogClient: remove accidental g_conf references

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomsg: remove globals
Colin Patrick McCabe [Fri, 17 Jun 2011 20:49:33 +0000 (13:49 -0700)]
msg: remove globals

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoKeyRing: derr -> lderr
Colin Patrick McCabe [Fri, 17 Jun 2011 19:38:55 +0000 (12:38 -0700)]
KeyRing: derr -> lderr

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: AuthSupported: deglobalize
Colin Patrick McCabe [Fri, 17 Jun 2011 19:34:51 +0000 (12:34 -0700)]
auth: AuthSupported: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoCreate global_context.cc to house g_ceph_context
Colin Patrick McCabe [Fri, 17 Jun 2011 17:51:45 +0000 (10:51 -0700)]
Create global_context.cc to house g_ceph_context

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMove signal, pidfile to global
Colin Patrick McCabe [Fri, 17 Jun 2011 17:03:07 +0000 (10:03 -0700)]
Move signal, pidfile to global

Move the global parts of signal and pidfile handling into global/

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomove common_init to global_init
Colin Patrick McCabe [Fri, 17 Jun 2011 03:15:24 +0000 (20:15 -0700)]
move common_init to global_init

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMakefile: put LIBGLOBAL LDFLAGS into LIBGLOBAL_LDA
Colin Patrick McCabe [Thu, 16 Jun 2011 23:05:38 +0000 (16:05 -0700)]
Makefile: put LIBGLOBAL LDFLAGS into LIBGLOBAL_LDA

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibclient: remove client/SyntheticClient.cc
Colin Patrick McCabe [Thu, 16 Jun 2011 18:09:49 +0000 (11:09 -0700)]
libclient: remove client/SyntheticClient.cc

client/SyntheticClient.cc is only of interest to csyn. The other users
of libclient don't need it.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomon/MonClient: use ldout instead of dout
Colin Patrick McCabe [Wed, 15 Jun 2011 22:53:43 +0000 (15:53 -0700)]
mon/MonClient: use ldout instead of dout

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomon/MonMap: deglobalize
Colin Patrick McCabe [Wed, 15 Jun 2011 22:49:08 +0000 (15:49 -0700)]
mon/MonMap: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoSimpleMessenger: de-globalize
Colin Patrick McCabe [Wed, 15 Jun 2011 22:24:29 +0000 (15:24 -0700)]
SimpleMessenger: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon/DecayCounter: deglobalize
Colin Patrick McCabe [Wed, 15 Jun 2011 22:01:50 +0000 (15:01 -0700)]
common/DecayCounter: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoThreadPool: de-globalize
Colin Patrick McCabe [Wed, 15 Jun 2011 21:42:35 +0000 (14:42 -0700)]
ThreadPool: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon: de-globalize LogClient, ProfLogger, Timer
Colin Patrick McCabe [Wed, 15 Jun 2011 20:47:46 +0000 (13:47 -0700)]
common: de-globalize LogClient, ProfLogger, Timer

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon_init: misc globals cleanup
Colin Patrick McCabe [Wed, 15 Jun 2011 20:41:26 +0000 (13:41 -0700)]
common_init: misc globals cleanup

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: remove remaining globals
Colin Patrick McCabe [Wed, 15 Jun 2011 20:34:08 +0000 (13:34 -0700)]
auth: remove remaining globals

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: CephxKeyServer: de-globalize
Colin Patrick McCabe [Wed, 15 Jun 2011 20:16:29 +0000 (13:16 -0700)]
auth: CephxKeyServer: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: AuthAuthorizeHandler: deglobalize
Colin Patrick McCabe [Wed, 15 Jun 2011 19:37:36 +0000 (12:37 -0700)]
auth: AuthAuthorizeHandler: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: KeyRing, RotatingKeyRing: deglobalize
Colin Patrick McCabe [Wed, 15 Jun 2011 18:34:55 +0000 (11:34 -0700)]
auth: KeyRing, RotatingKeyRing: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: CryptoKey, CryptoAES: deglobalize
Colin Patrick McCabe [Wed, 15 Jun 2011 18:09:33 +0000 (11:09 -0700)]
auth: CryptoKey, CryptoAES: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoCreate ProfLoggerCollection to hold ProfLoggers
Colin Patrick McCabe [Thu, 9 Jun 2011 19:38:42 +0000 (12:38 -0700)]
Create ProfLoggerCollection to hold ProfLoggers

Rather than having global variables, create ProfLoggerCollection to
store the current set of ProfLoggers. This collection will be stored
inside of CephContext.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agog_clock.now -> ceph_clock_now
Colin Patrick McCabe [Tue, 14 Jun 2011 21:14:15 +0000 (14:14 -0700)]
g_clock.now -> ceph_clock_now

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon/Clock: add deglobalized clock stuff
Colin Patrick McCabe [Tue, 14 Jun 2011 19:37:35 +0000 (12:37 -0700)]
common/Clock: add deglobalized clock stuff

Add clock functions which don't use globals. Remove Clock::recent_now.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: de-globlize CephXAuthorizer
Colin Patrick McCabe [Tue, 14 Jun 2011 19:21:54 +0000 (12:21 -0700)]
auth: de-globlize CephXAuthorizer

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: de-globalize AuthServiceHandler and pals
Colin Patrick McCabe [Tue, 14 Jun 2011 19:10:07 +0000 (12:10 -0700)]
auth: de-globalize AuthServiceHandler and pals

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: de-globalize AuthClientHandler and friends
Colin Patrick McCabe [Tue, 14 Jun 2011 19:01:44 +0000 (12:01 -0700)]
auth: de-globalize AuthClientHandler and friends

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoauth: de-globalize TicketManager, TicketHandler
Colin Patrick McCabe [Tue, 14 Jun 2011 18:48:52 +0000 (11:48 -0700)]
auth: de-globalize TicketManager, TicketHandler

de-globalize CephXTicketManager and CephXTicketHandler. Also
de-globalize two static functions.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorun_cmd: ret empty string on success;err otherwise
Colin Patrick McCabe [Fri, 10 Jun 2011 23:08:04 +0000 (16:08 -0700)]
run_cmd: ret empty string on success;err otherwise

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoinclude/atomic cleanup
Colin Patrick McCabe [Fri, 10 Jun 2011 21:43:28 +0000 (14:43 -0700)]
include/atomic cleanup

* Don't allow copying of class atomic_t.
* Remove common/Spinlock.h because it's unecessary
* SimpleMessenger: use atomic var for qlen

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoinclude/atomic.h: whitespace cleanup
Colin Patrick McCabe [Tue, 14 Jun 2011 21:16:07 +0000 (14:16 -0700)]
include/atomic.h: whitespace cleanup

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agobufferlist: get rid of derr usage
Colin Patrick McCabe [Fri, 10 Jun 2011 21:30:17 +0000 (14:30 -0700)]
bufferlist: get rid of derr usage

bufferlist doesn't need to use dout/derr. Only one function used it, and
that was only to return an error string.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoinclude/Completion: de-globalize
Colin Patrick McCabe [Fri, 10 Jun 2011 21:06:54 +0000 (14:06 -0700)]
include/Completion: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoObjectStore: clean up includes a little bit
Colin Patrick McCabe [Fri, 10 Jun 2011 20:38:14 +0000 (13:38 -0700)]
ObjectStore: clean up includes a little bit

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoinclude/Context.h: de-globalize
Colin Patrick McCabe [Fri, 10 Jun 2011 20:06:09 +0000 (13:06 -0700)]
include/Context.h: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon/MemoryModel: de-globalize
Colin Patrick McCabe [Fri, 10 Jun 2011 20:00:59 +0000 (13:00 -0700)]
common/MemoryModel: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon/Finisher: use ldout
Colin Patrick McCabe [Fri, 10 Jun 2011 19:51:02 +0000 (12:51 -0700)]
common/Finisher: use ldout

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolockdep: code cleanup and de-globalization
Colin Patrick McCabe [Fri, 10 Jun 2011 19:35:25 +0000 (12:35 -0700)]
lockdep: code cleanup and de-globalization

common/Mutex.cc: this is a duplicate of the code in common/lockdep.cc.
Delete the duplicate code.

common/lockdep.cc: require the programmer to register a CephContext to
use with lockdep. If we don't have one, we don't print anything out.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoThread.cc: clean up
Colin Patrick McCabe [Fri, 10 Jun 2011 19:05:06 +0000 (12:05 -0700)]
Thread.cc: clean up

Don't implement everything in the header file. It slows down compilation
and usually runtime.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoCreate de-globalized versions of the dout macro
Colin Patrick McCabe [Fri, 10 Jun 2011 18:07:45 +0000 (11:07 -0700)]
Create de-globalized versions of the dout macro

The de-globalized versions are available in dout.h
Versions relying on globals continue to be available in debug.h

Split md_config_obs_t off into common/config_obs.h. This will make it
possible for DoutStreambuf.h to include just that structure, without
pulling in all of config.h.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoRemove cdout
Colin Patrick McCabe [Fri, 10 Jun 2011 18:02:27 +0000 (11:02 -0700)]
Remove cdout

cdout just duplicates the functionality of dout.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolockdep: add lockdep_register_ceph_context,cleanup
Colin Patrick McCabe [Fri, 10 Jun 2011 17:31:47 +0000 (10:31 -0700)]
lockdep: add lockdep_register_ceph_context,cleanup

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agosignal: const cleanup, don't use derr
Colin Patrick McCabe [Mon, 20 Jun 2011 22:41:41 +0000 (15:41 -0700)]
signal: const cleanup, don't use derr

In signal.cc: const cleanup, don't use derr, add a comment.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>