Commit Graph

9791 Commits

Author SHA1 Message Date
Sage Weil
07e3984641 mds: journal oldest client tid
Journal the client's safe tid with new requests.  This keeps the client
completed_requests list trimmed, so that we don't build up a ginormous
list of all requests over the entire journal.

Forward rolling mds format change.
2010-04-06 12:32:07 -07:00
Sage Weil
2c2ea0a233 todo: updates 2010-04-06 12:32:07 -07:00
Greg Farnum
190067ebec rgw: rgw_admin checks that it hasn't regenerated user ids 2010-04-05 13:59:52 -07:00
Greg Farnum
4ee4ba7f0f mon: add new command 'lspools [uid]' to OSDMonitor 2010-04-05 13:45:41 -07:00
Greg Farnum
4b6e4fa87c osd: pg_pool_t prints out its owner 2010-04-05 12:50:41 -07:00
Sage Weil
2b92ddce5d mds: fix snap purging during commit
Use the helper!

The commit_partial is still incomplete.. we need to purge the
dentry after the commit completes?
2010-04-05 10:53:17 -07:00
Sage Weil
e9f4a6c7d7 mds: streamline stray checks with helper 2010-04-05 10:26:42 -07:00
Sage Weil
955cfdb712 mds: make beacon output more informative 2010-04-02 20:07:37 -07:00
Sage Weil
4d5ce888f2 qa: run tests in random order 2010-04-02 20:07:34 -07:00
Sage Weil
fd60670bb7 mds: allow reconnect as long as we are in reconnect state
This used to work.. I think this is fallout from the mds session state
simplification (CLOSED was != NEW before).
2010-04-02 20:07:29 -07:00
Anton Blanchard
2cb112890f Add missing Makefile dependency for debug.cc
We were missing a Makefile dependency for debug.cc, without it make -j fails
because ceph_ver.h hasn't been created.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-04-02 20:05:15 -07:00
Greg Farnum
d08ef701e1 rgw: radosgw_admin can delete users from the system 2010-04-02 16:51:19 -07:00
Greg Farnum
473c22a7f3 rgw: call url_decode in more appropriate places 2010-04-02 16:51:19 -07:00
Greg Farnum
fa8b9b9714 rgw: convert + to space in url_decode 2010-04-02 16:51:19 -07:00
Greg Farnum
1f3431ac62 rgw: send an error response if reading an ACL off disk fails 2010-04-02 16:51:19 -07:00
Greg Farnum
9cb74b9e37 rgw: remove bad local variable shadowing class member variable 2010-04-02 16:51:19 -07:00
Greg Farnum
a9620631d4 rgw: remove some invalid FIXMEs 2010-04-02 16:51:19 -07:00
Yehuda Sadeh
a98f8116de rbdtool: don't create empty object data 2010-04-02 14:20:28 -07:00
Yehuda Sadeh
00f1ec8182 rbd: created a userspace tool for creating rbd objects 2010-04-02 14:20:28 -07:00
Sage Weil
fdd5709afc mds: set laggy flag if dispatch takes too long
This prevents, e.g., tick() from coming in immediately after and
closing out client sessions after we chew through something particularly
slow.
2010-04-01 16:13:41 -07:00
Sage Weil
ea035fea80 msgr: set OPEN state after accepting connection
Not doing so can eventually lead to

msg/SimpleMessenger.cc: In function 'int SimpleMessenger::Pipe::accept()':
msg/SimpleMessenger.cc:765: FAILED assert(existing->state == STATE_CONNECTING)
2010-04-01 16:12:49 -07:00
Sage Weil
5fa165881a mds: fix file recovery
This was broken by commit d5574993f.
2010-04-01 13:18:00 -07:00
Sage Weil
4d56710ff3 mds: remove dir from 'new' list on any commit, not just on clean
A dir may be redirtied after the commit, such that it never becomes clean.
It only needs to stay on the 'new' list until it's been written to disk
at least once, though.
2010-04-01 13:17:56 -07:00
Sage Weil
96262fcb9d filejournal: fix journal full handling
We would block on journal full, but then try to continue where we left off,
which broke thoroughly.  Add return codes, and wait at the proper times:

 - if journal if full on first event, wait. otherwise, write what we have
   so far.
 - wait in write_thread_entry(), not check_for_full().

Also fix up 'room' calculation.
2010-04-01 11:39:16 -07:00
Sage Weil
e6bc437528 qa: make snaptest trigger capsnap dirty(caps)==0 bug
Prior to ceph-client.git commit 819ccbfa448, this will cause a

	VFS: Busy inodes after unmount of ceph. Self-destruct in 5 seconds.  Have a nice day...

on umount.
2010-04-01 09:44:04 -07:00
Sage Weil
4f8a353278 mds: remove dentry AND inode when dropping snap metadata; add helper
We should only drop obsolete snapped metadata when it is unreferenced, and
at that point we need to drop the dentry AND inode, not just the dentry.
This delays things until caps are released, among other things.
2010-04-01 07:34:24 -07:00
Sage Weil
74980486d1 osd: improve print of snapc in MOSDOp 2010-04-01 07:28:41 -07:00
Sage Weil
3f094f7b70 osd: fix snap trimmer SnapSet adjustment
AFAICS it's totally wrong?
2010-04-01 07:27:59 -07:00
Sage Weil
bd43b3a263 todo: updates 2010-03-31 15:30:29 -07:00
Sage Weil
4bb676d6d3 osd: improve snap trimmer debug output 2010-03-31 15:30:17 -07:00
Sage Weil
bca73ed71a mds: clear old snap_trace before building new one
Otherwise we just build up a big stack of historical information and send
it all to the client.
2010-03-31 15:00:23 -07:00
Sage Weil
4d174b593a qa: make snaptest.sh repeatable in same dir 2010-03-31 14:46:20 -07:00
Sage Weil
6cf94518eb Merge branch 'mds' into unstable 2010-03-31 09:49:55 -07:00
Sage Weil
11114331b1 todo: kclient snap bug 2010-03-30 21:28:12 -07:00
Sage Weil
8c3765e307 mds: don't adjust subtree map in rename_prepare
Not sure what the reasoning behind this was.

This code is from pre git history, and the git->subversion conversion
managed to make pretty git-blame unusable.  I doubt I really documented
what its purpose at that point was anyway.
2010-03-30 21:28:04 -07:00
Sage Weil
7293dd5b73 mds: subtree map should always reflect current hierarchy
Not projected!
2010-03-30 21:28:01 -07:00
Sage Weil
4abb47a24c qa: drop numeric prefix from workunits 2010-03-30 21:24:45 -07:00
Sage Weil
b206d2a648 osd: don't filter out shutdown msg to self 2010-03-30 13:40:41 -07:00
Sage Weil
2a0ed8301e msgr: init local_pipe peer_{addr,type} 2010-03-30 13:19:30 -07:00
Sage Weil
9b552c753f Merge branch 'mds' into unstable 2010-03-30 12:22:37 -07:00
Sage Weil
47286cb1ba mds: todo rejoin bug 2010-03-30 12:14:03 -07:00
Sage Weil
3ab157faa5 todo: kclient bug 2010-03-30 12:13:33 -07:00
Greg Farnum
a9f6bd3908 rgw: revert accidental commit of get_attr prototype change 2010-03-30 11:48:06 -07:00
Sage Weil
858314367f Merge branch 'msgr' into unstable 2010-03-30 11:45:00 -07:00
Sage Weil
3edc9d67bd msgr: source, not orig_source, in dbg output 2010-03-30 11:40:38 -07:00
Sage Weil
bf62cc01c4 mds: don't use get_orig_source
MDS doesn't do any request forwarding, so there is no need.
2010-03-30 11:40:38 -07:00
Sage Weil
ddf61d067c msgr: NOSRCADDR protocol feature drops src/orig_src in msg header
This lets us drop the src, orig_src ceph_entity_addr's from the message
header, saving about 160 bytes per message.

The feature is optional.  We can still talk to peers who use the old
protocol.
2010-03-30 11:40:38 -07:00
Sage Weil
9a4b7686c2 msgr: put features in connection_state 2010-03-30 11:40:38 -07:00
Sage Weil
cd102fb61c msgr: use connection for src addr 2010-03-30 11:40:38 -07:00
Sage Weil
94137309db msgr: make Message::get_orig_* differ only when explicitly directed to
This paves the way for removal of the orig_src field from the message
header.
2010-03-30 11:40:38 -07:00