Commit Graph

14926 Commits

Author SHA1 Message Date
Colin Patrick McCabe
7735b35fb0 g_clock.now -> ceph_clock_now
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:34:17 -07:00
Colin Patrick McCabe
2452ef440e 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>
2011-06-20 16:22:27 -07:00
Colin Patrick McCabe
d6adc4e7d2 auth: de-globlize CephXAuthorizer
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:22:27 -07:00
Colin Patrick McCabe
d03c96e5d2 auth: de-globalize AuthServiceHandler and pals
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:22:27 -07:00
Colin Patrick McCabe
be8fe54a95 auth: de-globalize AuthClientHandler and friends
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:22:27 -07:00
Colin Patrick McCabe
1dbb0ac80b 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>
2011-06-20 16:22:27 -07:00
Colin Patrick McCabe
9085597b7c run_cmd: ret empty string on success;err otherwise
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:22:27 -07:00
Colin Patrick McCabe
03c83799b3 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>
2011-06-20 16:22:26 -07:00
Colin Patrick McCabe
bf2c226ac3 include/atomic.h: whitespace cleanup
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:22:26 -07:00
Colin Patrick McCabe
ff626f0ea9 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>
2011-06-20 16:22:26 -07:00
Colin Patrick McCabe
07ff69a7aa include/Completion: de-globalize
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:22:26 -07:00
Colin Patrick McCabe
c0e804dbfb ObjectStore: clean up includes a little bit
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:22:26 -07:00
Colin Patrick McCabe
6c58da04f6 include/Context.h: de-globalize
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:22:25 -07:00
Colin Patrick McCabe
f2bd39faa0 common/MemoryModel: de-globalize
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:22:25 -07:00
Colin Patrick McCabe
0fa77948ae common/Finisher: use ldout
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:22:25 -07:00
Colin Patrick McCabe
d80b331f34 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>
2011-06-20 16:22:24 -07:00
Colin Patrick McCabe
823eb2670a 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>
2011-06-20 16:17:19 -07:00
Colin Patrick McCabe
5a612f9589 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>
2011-06-20 16:06:54 -07:00
Colin Patrick McCabe
ee5502d2ae Remove cdout
cdout just duplicates the functionality of dout.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:06:54 -07:00
Colin Patrick McCabe
9678ad3fb0 lockdep: add lockdep_register_ceph_context,cleanup
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:06:54 -07:00
Colin Patrick McCabe
620d078429 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>
2011-06-20 16:05:55 -07:00
Yehuda Sadeh
1e5cb06838 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.
2011-06-20 16:01:21 -07:00
Yehuda Sadeh
128bfcfdbf rgw: put_obj_data doesn't need mtime 2011-06-20 16:01:21 -07:00
Yehuda Sadeh
10171cad2a filestore: fix fiemap 2011-06-20 15:58:45 -07:00
Yehuda Sadeh
ca2f4e2875 rbd: fix read_iterate for sparse read 2011-06-20 15:58:23 -07:00
Sage Weil
04d10d1028 qa: tiobench workunit: remove timeout
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-20 11:47:24 -07:00
Sage Weil
29e64df93e Merge remote branch 'origin/stable' 2011-06-20 11:28:29 -07:00
Yehuda Sadeh
7335fbbf2d librados: return value on non void function 2011-06-17 16:20:27 -07:00
Sage Weil
93623fba99 common: fix descriptinos for -i, -n too
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-17 16:17:27 -07:00
Colin Patrick McCabe
830f48d23a update clitests with new usage
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-17 16:18:47 -07:00
Sage Weil
1b9575ea2f common: fix generic usage for -D vs -d
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-17 16:01:55 -07:00
Yehuda Sadeh
b9c367299a rgw: suspend/enable buckets through pool async api 2011-06-17 16:00:59 -07:00
Yehuda Sadeh
e2150a0890 librados: add async pool op operations 2011-06-17 16:00:45 -07:00
Sage Weil
6fb971ffdb qa: organize workunits
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-17 15:01:56 -07:00
Colin Patrick McCabe
b2c803db33 secret.c: use safe_read when appropriate
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-17 10:24:49 -07:00
Sage Weil
7b8bf550d0 mds: fix use-after-free on ESession replay
Reported by: Sam Lang <samlang@gmail.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-17 09:59:02 -07:00
Sage Weil
9e4adf0de9 qa: make snap-rm-diff workunit clean up
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-17 09:22:24 -07:00
Sage Weil
e9f308df87 qa: wget -q
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-17 09:22:17 -07:00
Sage Weil
4efdc52ad8 rgw: remove stray semicolon
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-17 09:26:55 -07:00
Sage Weil
4ca8054c5a rgw: cast RGW_SUSPENDED_USER_AUID
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-17 09:26:32 -07:00
Sage Weil
20e3ac2ce5 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>
2011-06-17 09:21:51 -07:00
Sage Weil
ad5ff230d5 mount.ceph: specify full path for /sbin/modprobe
Fixes: #1188
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-16 20:02:03 -07:00
Sage Weil
f5f563ddaa radosgw_admin: fix cli test
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-16 20:01:41 -07:00
Sage Weil
ca4e2877af Merge branch 'stable' 2011-06-16 19:44:19 -07:00
Sage Weil
bc1782a1ce osd: fix find_object_context debug output
Erroneously said get_object_context, confusing developers everywhere.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-16 19:44:06 -07:00
Sage Weil
447ea1dc31 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>
2011-06-16 19:44:06 -07:00
Sage Weil
1c5f655044 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>
2011-06-16 19:44:06 -07:00
Sage Weil
3a59579eeb 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>
2011-06-16 19:44:06 -07:00
Yehuda Sadeh
9974b7e58a rgw: user suspension 2011-06-16 16:53:38 -07:00
Yehuda Sadeh
c35770c4b0 Merge branch 'rgw-multipart' 2011-06-16 14:20:33 -07:00