Commit Graph

14959 Commits

Author SHA1 Message Date
Colin Patrick McCabe
3e284a729d boto_tool: add put_bucket_acl
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-10 14:55:35 -07:00
Yehuda Sadeh
7fa8b97328 rgw: don't allow handing out object ownership 2011-06-10 13:24:29 -07:00
Yehuda Sadeh
b282603598 librados: remove useless reference holding 2011-06-10 11:55:03 -07:00
Yehuda Sadeh
98a3b54641 librados: get reference to the io context for the pending async ops 2011-06-10 11:55:03 -07:00
Greg Farnum
52e9e5ec33 heap_profiler: if log_dir is empty, don't try and log to root dir!
If log_dir was empty then the prefix would be of the form /mon.a
That isn't good, so fill it in so it writes to the current dir.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-10 12:26:16 -07:00
Josh Durgin
f41773bedc coverage.sh: use .lcov instead of .info to avoid confusion
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-06-10 11:31:08 -07:00
Josh Durgin
08d0d0ae21 Merge remote branch 'origin/wip_coverage'
Conflicts:
	src/mon/Monitor.cc

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-06-10 11:28:09 -07:00
Yehuda Sadeh
a6afb0519b rgw: remove required indexes when modifying user info
Conflicts:

	src/rgw/rgw_admin.cc
2011-06-10 10:23:39 -07:00
Greg Farnum
9a705c749b mon: Follow the Message rules when forwarding tells
My initial commit was naughty, fix that up here by
creating a new message for each mon and just copying
the command.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-10 10:12:36 -07:00
Yehuda Sadeh
842f3ac683 rgw: remove required indexes when modifying user info 2011-06-10 10:07:55 -07:00
Sage Weil
c2de9e6a48 mds: clear correct state bit in do_file_recover
The RECOVERING bit is set, not NEEDSRECOVER.  This way we match
_recovered().

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-10 09:25:49 -07:00
Yehuda Sadeh
35beabf68b rgw: remove clutter 2011-06-09 22:15:01 -07:00
Yehuda Sadeh
c863f52245 rgw: fix user anonymous permissions 2011-06-09 22:05:55 -07:00
Colin Patrick McCabe
dadf2a3fa2 Thread: remove globals. Thread create must succeed
Remove the references to global variables from Thread.h. They are really
unecessary. In every case, the printout is followed by an assert which
will deliver the exact same information.

Assert that thread creation succeeds. Nobody was checking the return
value of Thread::create() previously. Added a new function,
Thread::try_create(), which programmers can use if they do want to check
the value of Thread::create() and handle it appropriately.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 18:32:32 -07:00
Colin Patrick McCabe
4e0ddae48f LogClient: pass in CephContext explicitly
Again, the Messenger passed to LogClient may be NULL, so pass in the
CephContext explicitly.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 18:04:39 -07:00
Colin Patrick McCabe
03aef0b67f Monitor: pass in CephContext explicitly
Sometimes we create a Monitor without a Messenger. So we can't pull the
CephContext out of the Messenger, because it may be NULL. Just specify
it explicitly in the Monitor constructor.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 17:56:41 -07:00
Josh Durgin
2b5e01117e mds, mon, osd: with coverage enabled, exit(0) when SIGTERM is received
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-06-09 17:43:41 -07:00
Josh Durgin
befe42267a Revert "mon: add all_exit and exit commands"
This reverts commit 69092735c4.
2011-06-09 17:43:33 -07:00
Josh Durgin
cf129ff71b Revert "mds: allow mds to 'exit immediately'"
This reverts commit c01961ff4b.
2011-06-09 17:42:29 -07:00
Josh Durgin
dd9ea9c6ca Revert "osd: add command to exit cleanly"
This reverts commit 1cc78b6a86.
2011-06-09 17:42:22 -07:00
Greg Farnum
b6e5c080a2 mds: fix up MDCache::path_is_mine to remove a totally bogus assert.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 17:22:37 -07:00
Greg Farnum
3a582f9949 mon: add new "tell" infrastructure.
This lets you issue commands
like "ceph mon tell 0 heap start_profiler". Hurray!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 17:22:37 -07:00
Yehuda Sadeh
4c798752c6 rgw: can specify alternative remote addr http header param 2011-06-09 17:03:23 -07:00
Yehuda Sadeh
cf5e70d434 rgw: skeleton for list multipart uploads 2011-06-09 16:40:58 -07:00
Colin Patrick McCabe
2c4367f95d CephContext: initialize module_type in ctor
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 16:21:23 -07:00
Sage Weil
20d11b0b14 mds: be slightly more careful about checking if lock has caps
issued_caps_need_gather==true implies it, but we can skip the work if the
lock has no caps.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:03 -07:00
Sage Weil
96f01b03c0 mds: fix xlock_finish do_issue checks
Should default to false, and only get set to true if there are caps for
this lock.  Among other things this means we don't set it for dentry
locks (which have no caps).

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:03 -07:00
Sage Weil
7c0ae24713 mds: fix eval_gather callers passing pissue_gather as wrong arg
Whoops!

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:03 -07:00
Sage Weil
87ba043533 mds: fix xlock_finish issue flag check
We were sometimes setting do_issue but not *pneed_issue.  Simplify by
setting do_issue internally to the function and then either issuing or
setting *pneed_issue at the end.

Also fix bug with second argument to eval_gather().

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:03 -07:00
Sage Weil
5b304bdd87 mds: make pneed_issue required for eval(SimpleLock*)
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:03 -07:00
Sage Weil
bdd94ef1a7 mds: explicitly issue_caps after file_recover
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
b06fa1ceed mds: make pneed_issue required for *lock_finish()
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
bc69d4e024 mds: efficiently issue_caps for OOO or extra locks in acquire_locks
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
a340421a40 mds: explicitly issue_caps for rdlock_finish_set
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
ffeb59d5e5 mds: explicitly issue_caps for slave xlock release
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
cc398ccfa7 mds: efficiently issue_caps for scatterlocks unlock during refragment
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
f62f8deb21 mds: efficiently drop_rdlocks and drop_xlocks too
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
3e52a33d0c mds: set or issue caps on lock state changes
Set pneed_issue (or issue ourselves) whenever we jump directly to the
target lock state.  Make sure we only do it if there are caps (cap shift)
for this particular lock.

Part of fix for #1084.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
88b2246350 mds: make issue_caps from file_update_finish smarter
We do one funky thing in file_update_finish that only issues caps on a
single cap when max_size changes.  This is more commonly we see.  However,
if a lock changes state and we need to issue on the whole inode (for all
clients), avoid doing the cap-specific issue by checking the issue set.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
2a45bcad02 mds: issue caps from drop_locks
In drop_locks, build a set of inodes we need to issue caps on.  Then do it
all at once.  This does two things:

 - it fixes the fact that currently a dropped lock leading to an eval and
   lock state change will not issue caps _at_all_
 - it ensure we only issue_caps once for each inode, even when we are
   dropping multiple locks on it.

This should fix #1084.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:02 -07:00
Sage Weil
c786391161 mds: pass pissue_caps through *lock_finish()
This allows *lock_finish() callers to handle the issue_caps themselves.
None of them do yet (this arg is still optional) so this is patch has no
functional change (yet!).

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 16:14:01 -07:00
Colin Patrick McCabe
6d4b93dd17 CephContext: remove silly debug code
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 16:09:38 -07:00
Colin Patrick McCabe
e6349ec2e0 Dispatcher should take a CephContext argument
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 16:08:14 -07:00
Greg Farnum
4ef41c5ab3 mds: fix tcmalloc check.
We can run commands to do things like start the profiler even if
it's not already running!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 15:33:21 -07:00
Greg Farnum
63073ab8b6 mds: xlock_finish should only do_issue in certain cases.
We accidentally (we think) initialized this variable to true when
we want it to be false: we should only do_issue if there aren't
any remaining locks, not in all cases.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 15:33:21 -07:00
Greg Farnum
379dc6fa0b MDiscoverReply: encode/decode wanted_ino.
This wasn't encoded previously so it was always zero on the
receiver's end, which led to nasty hangs. :(

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 15:33:21 -07:00
Greg Farnum
58250fdde4 mdcache: correct error message.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 15:33:21 -07:00
Greg Farnum
c1ea3a263b mds: replay: save the right dir!
We were using the wrong one and breaking replay.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-09 15:33:21 -07:00
Sage Weil
f69bc30106 debian: move gceph into a separate package
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-09 14:34:36 -07:00
Colin Patrick McCabe
0b40f48073 tools/common: fix C_ObserverRefresh constructor
Fixes #1159

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-09 14:03:31 -07:00