]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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>
14 years agorgw: put_obj_data uses aio
Yehuda Sadeh [Mon, 20 Jun 2011 22:49:15 +0000 (15:49 -0700)]
rgw: put_obj_data uses aio

This is just a trivial fix, making the etag calculation done while the io
is pending. Still some room for improvement.

14 years agorgw: put_obj_data doesn't need mtime
Yehuda Sadeh [Mon, 20 Jun 2011 21:31:37 +0000 (14:31 -0700)]
rgw: put_obj_data doesn't need mtime

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 agoqa: tiobench workunit: remove timeout
Sage Weil [Mon, 20 Jun 2011 18:47:15 +0000 (11:47 -0700)]
qa: tiobench workunit: remove timeout

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge remote branch 'origin/stable'
Sage Weil [Mon, 20 Jun 2011 18:28:29 +0000 (11:28 -0700)]
Merge remote branch 'origin/stable'

14 years agolibrados: return value on non void function
Yehuda Sadeh [Fri, 17 Jun 2011 23:20:27 +0000 (16:20 -0700)]
librados: return value on non void function

14 years agocommon: fix descriptinos for -i, -n too
Sage Weil [Fri, 17 Jun 2011 23:04:56 +0000 (16:04 -0700)]
common: fix descriptinos for -i, -n too

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoupdate clitests with new usage
Colin Patrick McCabe [Fri, 17 Jun 2011 23:18:47 +0000 (16:18 -0700)]
update clitests with new usage

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon: fix generic usage for -D vs -d
Sage Weil [Fri, 17 Jun 2011 23:01:55 +0000 (16:01 -0700)]
common: fix generic usage for -D vs -d

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: suspend/enable buckets through pool async api
Yehuda Sadeh [Fri, 17 Jun 2011 22:30:41 +0000 (15:30 -0700)]
rgw: suspend/enable buckets through pool async api

14 years agolibrados: add async pool op operations
Yehuda Sadeh [Fri, 17 Jun 2011 22:30:30 +0000 (15:30 -0700)]
librados: add async pool op operations

14 years agoqa: organize workunits
Sage Weil [Fri, 17 Jun 2011 22:01:56 +0000 (15:01 -0700)]
qa: organize workunits

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agosecret.c: use safe_read when appropriate
Colin Patrick McCabe [Fri, 17 Jun 2011 17:18:32 +0000 (10:18 -0700)]
secret.c: use safe_read when appropriate

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: fix use-after-free on ESession replay
Sage Weil [Fri, 17 Jun 2011 16:59:02 +0000 (09:59 -0700)]
mds: fix use-after-free on ESession replay

Reported by: Sam Lang <samlang@gmail.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoqa: make snap-rm-diff workunit clean up
Sage Weil [Fri, 17 Jun 2011 16:22:24 +0000 (09:22 -0700)]
qa: make snap-rm-diff workunit clean up

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoqa: wget -q
Sage Weil [Fri, 17 Jun 2011 16:22:17 +0000 (09:22 -0700)]
qa: wget -q

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: remove stray semicolon
Sage Weil [Fri, 17 Jun 2011 16:26:55 +0000 (09:26 -0700)]
rgw: remove stray semicolon

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: cast RGW_SUSPENDED_USER_AUID
Sage Weil [Fri, 17 Jun 2011 16:26:32 +0000 (09:26 -0700)]
rgw: cast RGW_SUSPENDED_USER_AUID

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: CDir::log_mark_dirty needs to flush before waiting
Sage Weil [Fri, 17 Jun 2011 16:21:34 +0000 (09:21 -0700)]
mds: CDir::log_mark_dirty needs to flush before waiting

We need to flush before waiting or else our completion (and mark_diryt())
will be out of order with respect to other dir updates.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomount.ceph: specify full path for /sbin/modprobe
Sage Weil [Wed, 15 Jun 2011 03:46:26 +0000 (20:46 -0700)]
mount.ceph: specify full path for /sbin/modprobe

Fixes: #1188
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoradosgw_admin: fix cli test
Sage Weil [Fri, 17 Jun 2011 03:01:41 +0000 (20:01 -0700)]
radosgw_admin: fix cli test

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Fri, 17 Jun 2011 02:44:19 +0000 (19:44 -0700)]
Merge branch 'stable'

14 years agoosd: fix find_object_context debug output
Sage Weil [Fri, 17 Jun 2011 02:42:48 +0000 (19:42 -0700)]
osd: fix find_object_context debug output

Erroneously said get_object_context, confusing developers everywhere.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: fix snap_trimmer obc ref
Sage Weil [Fri, 17 Jun 2011 02:40:25 +0000 (19:40 -0700)]
osd: fix snap_trimmer obc ref

As of fc4cc39 new_repop claims the obc reference (from the clonerange
branch) but this caller didn't get fixed.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: when prodding head inode on snapped behalf, avoid XSYN
Sage Weil [Fri, 17 Jun 2011 02:27:50 +0000 (19:27 -0700)]
mds: when prodding head inode on snapped behalf, avoid XSYN

If we try to rdlock a snapped inode in snap->sync state, we need to prod
the head inode into SYNC to get the data flushed.  Make sure we avoid
XSYN by passing as_anon=true to rdlock_start(head).

Also fix the waiting code.  If it succeeds, continue around the loop.  If
not, the rdlock_start will add the waiter for us--don't do it again!

Fixes workunit snaps/snaptest-snap-rm-cmp.sh.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: fix transitions away from XSYN state
Sage Weil [Fri, 17 Jun 2011 02:00:41 +0000 (19:00 -0700)]
mds: fix transitions away from XSYN state

If we are in XSYN, we need to transition first to EXCL before moving on.
Simply going to the other unstable state isn't enough, because if gather
is zero at the end of the method we end up jumping directly to the wrong
state without passing EXCL.   Instead, call file_excl(), and continue only
if we got there immediately.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: user suspension
Yehuda Sadeh [Thu, 16 Jun 2011 23:53:38 +0000 (16:53 -0700)]
rgw: user suspension

14 years agoMerge branch 'rgw-multipart'
Yehuda Sadeh [Thu, 16 Jun 2011 21:20:33 +0000 (14:20 -0700)]
Merge branch 'rgw-multipart'

14 years agoMerge remote-tracking branch 'origin/master' into rgw-multipart
Yehuda Sadeh [Thu, 16 Jun 2011 21:19:47 +0000 (14:19 -0700)]
Merge remote-tracking branch 'origin/master' into rgw-multipart

Conflicts:
src/os/FileStore.cc
src/rgw/rgw_admin.cc
src/rgw/rgw_fs.h
src/rgw/rgw_log.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_user.cc
src/rgw/rgw_user.h

14 years agoqa: pjd must run as root
Sage Weil [Thu, 16 Jun 2011 21:07:15 +0000 (14:07 -0700)]
qa: pjd must run as root

14 years agorgw: get multipart list marker to work
Yehuda Sadeh [Thu, 16 Jun 2011 20:26:19 +0000 (13:26 -0700)]
rgw: get multipart list marker to work

14 years agov0.29.1 v0.29.1
Sage Weil [Thu, 16 Jun 2011 20:10:59 +0000 (13:10 -0700)]
v0.29.1

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge remote branch 'origin/mds_xsyn'
Sage Weil [Thu, 16 Jun 2011 18:30:45 +0000 (11:30 -0700)]
Merge remote branch 'origin/mds_xsyn'

14 years agorgw: some multipart cleanups, fixes
Yehuda Sadeh [Thu, 16 Jun 2011 18:17:01 +0000 (11:17 -0700)]
rgw: some multipart cleanups, fixes

14 years agoMerge remote branch 'origin/stable'
Josh Durgin [Thu, 16 Jun 2011 00:43:35 +0000 (17:43 -0700)]
Merge remote branch 'origin/stable'

14 years agolibrbd: fix block_completion race condition
Josh Durgin [Tue, 14 Jun 2011 19:38:14 +0000 (12:38 -0700)]
librbd: fix block_completion race condition

If block completions finished before all of them were scheduled, the
pending_count could reach 0, and the callback could be called more
than once. This caused the reference counting to be off, so the next
call to the callback passed an invalid pointer, resulting in crashes
like this (or more mysterious ones):

common/Mutex.h: In function 'void Mutex::Lock(bool)', in thread '0x7f5f37e62700'
common/Mutex.h: 118: FAILED assert(r == 0)
 1: (librbd::RBD::AioCompletion::get_return_value()+0x19c) [0x7f5f408835bc]
 2: /usr/bin/kvm() [0x4629fd]
 3: (librbd::AioCompletion::complete_block(librbd::AioBlockCompletion*, long)+0x13c) [0x7f5f4088ab5c]
 4: (librbd::rados_aio_sparse_read_cb(void*, void*)+0x8d) [0x7f5f4088b40d]
 5: (librados::RadosClient::C_aio_sparse_read_Ack::finish(int)+0x12e) [0x7f5f4050beee]
 6: (Objecter::handle_osd_op_reply(MOSDOpReply*)+0x783) [0x7f5f40517863]
 7: (librados::RadosClient::_dispatch(Message*)+0x3c) [0x7f5f404ffe8c]
 8: (librados::RadosClient::ms_dispatch(Message*)+0x33) [0x7f5f404fff53]
 9: (SimpleMessenger::dispatch_entry()+0x69d) [0x7f5f405bf5bd]
 10: (SimpleMessenger::DispatchThread::entry()+0x1c) [0x7f5f4050052c]
 11: (()+0x6d8c) [0x7f5f40c9dd8c]
 12: (clone()+0x6d) [0x7f5f3e0b904d]

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorgw: implement list multiparts
Yehuda Sadeh [Thu, 16 Jun 2011 00:06:55 +0000 (17:06 -0700)]
rgw: implement list multiparts

doesn't work completely, getting there

14 years agolibrbd: add AioCompletion debugging
Josh Durgin [Wed, 15 Jun 2011 19:04:23 +0000 (12:04 -0700)]
librbd: add AioCompletion debugging

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agouclient: path_walk should notice when it gets absolute paths.
Greg Farnum [Wed, 15 Jun 2011 21:24:43 +0000 (14:24 -0700)]
uclient: path_walk should notice when it gets absolute paths.

Previously it assumed everything was relative, but we need to handle
absolute paths on occasion, and already have the code to do so!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agovstart: put .journal outside of osd data dir
Sage Weil [Wed, 15 Jun 2011 19:11:13 +0000 (12:11 -0700)]
vstart: put .journal outside of osd data dir

This prevents it from getting cleaned up during mkfs.  Then we can make it
a symlink, or at the very least avoid deleting + reallocating it.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoqa: Make snaptest-git-ceph.sh clean up after itself.
Tommi Virtanen [Wed, 15 Jun 2011 18:27:54 +0000 (11:27 -0700)]
qa: Make snaptest-git-ceph.sh clean up after itself.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agorgw: fix abort multipart upload
Yehuda Sadeh [Wed, 15 Jun 2011 17:16:42 +0000 (10:16 -0700)]
rgw: fix abort multipart upload

14 years agoauth: remove CephCryptoManager
Colin Patrick McCabe [Tue, 14 Jun 2011 23:27:02 +0000 (16:27 -0700)]
auth: remove CephCryptoManager

It doesn't do anything.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrbd: fix AioCompletion race condition
Josh Durgin [Tue, 14 Jun 2011 19:38:14 +0000 (12:38 -0700)]
librbd: fix AioCompletion race condition

If block completions finished before all of them where scheduled, the
pending_count would reach 0, and the AioCompletion would be destroyed
since the refcount would also reach 0. To fix this, hold a reference
to the AioCompletion while scheduling more block completions.

This caused a crash like this when running qemu:

1: ceph::__ceph_assert_fail (assertion=<value optimized out>, file=<value optimized out>, line=<value optimized out>, func=<value optimized out>) at common/assert.cc:86
2: Lock (ictx=0x7f83d0001f00, off=5368705024, len=0, buf=0x2fac000 "", c=0x2cebe00) at common/Mutex.h:118
3: add_block_completion (ictx=0x7f83d0001f00, off=5368705024, len=0, buf=0x2fac000 "", c=0x2cebe00) at librbd.cc:159
4: librbd::aio_read (ictx=0x7f83d0001f00, off=5368705024, len=0, buf=0x2fac000 "", c=0x2cebe00) at librbd.cc:1368
5: rbd_aio_rw_vector (bs=<value optimized out>, sector_num=10485752, qiov=<value optimized out>, nb_sectors=<value optimized out>, cb=<value optimized out>, opaque=<value optimized out>, write=0) at block/rbd.c:626
6: qemu_rbd_aio_readv (bs=<value optimized out>, sector_num=<value optimized out>, qiov=<value optimized out>, nb_sectors=<value optimized out>, cb=<value optimized out>, opaque=<value optimized out>) at block/rbd.c:649
7: bdrv_aio_readv (bs=0x2ce92e0, sector_num=10485752, qiov=0x2de08f0, nb_sectors=8, cb=<value optimized out>, opaque=<value optimized out>)

Fixes: #998
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agomonmaptool: implement --help
Colin Patrick McCabe [Tue, 14 Jun 2011 21:47:03 +0000 (14:47 -0700)]
monmaptool: implement --help

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/bufferlist: don't alloc large array on stack
Colin Patrick McCabe [Tue, 14 Jun 2011 21:43:02 +0000 (14:43 -0700)]
test/bufferlist: don't alloc large array on stack

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years ago.gitignore man/Makefile
Sage Weil [Tue, 14 Jun 2011 20:58:05 +0000 (13:58 -0700)]
.gitignore man/Makefile

blech

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoqa: do not use automake for workunit makefiles
Sage Weil [Tue, 14 Jun 2011 19:53:33 +0000 (12:53 -0700)]
qa: do not use automake for workunit makefiles

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoqa/workunits/direct_io: fit .gitignore
Sage Weil [Tue, 14 Jun 2011 19:35:35 +0000 (12:35 -0700)]
qa/workunits/direct_io: fit .gitignore

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoradosgw_admin: fix clitest help
Sage Weil [Tue, 14 Jun 2011 19:27:41 +0000 (12:27 -0700)]
radosgw_admin: fix clitest help

14 years agocrbdnamer: man page
Sage Weil [Tue, 14 Jun 2011 05:22:25 +0000 (22:22 -0700)]
crbdnamer: man page

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>