Commit Graph

10532 Commits

Author SHA1 Message Date
Sage Weil
21a97d1e7c mon: don't leak MAuth 2010-06-06 22:15:18 -07:00
Greg Farnum
989c9ee149 throttle: use signed counters and assert that count never drops below 0 2010-06-04 17:01:32 -07:00
Greg Farnum
800da082ad msgr: Fix uses of get_[data, payload, middle] to use throttling-aware functions. 2010-06-04 16:42:55 -07:00
Greg Farnum
3b333f7a3a msgr: put throttler usage on Message destruct 2010-06-04 16:42:55 -07:00
Greg Farnum
246415b3ea osd: fix compile issues 2010-06-04 16:42:55 -07:00
Greg Farnum
46040a5f66 msgr: switch to get/set functions for Message:throttler 2010-06-04 16:42:55 -07:00
Greg Farnum
0d4bdfac01 osd: add osd_client_message_size_cap option to config; default 500MB
And change the name in cosd to be that
2010-06-04 16:42:45 -07:00
Sage Weil
0c38b3d63d objectcacher: add verify_stats() debugging helper 2010-06-04 16:32:07 -07:00
Sage Weil
dff7cb33aa objectcacher: fix stat accounting when resizing bufferheads
Must keep stats in mind when adjusting bufferheads!
2010-06-04 16:32:07 -07:00
Sage Weil
a76d8fc65d objectcacher: cleanup formatting 2010-06-04 16:32:07 -07:00
Sage Weil
462552ab9d objectcacher: fix use of invalid iterator in map_write()
The p points to bh, which is removed by merge_left.  Move it back to final,
so we can advance to the new next a few lines down.
2010-06-04 16:32:06 -07:00
Sage Weil
12a5d7b2b5 objectcacher: match states before merging in map_write
The caller is going to set us to dirty, so we don't care what state we
have, so long as the left and right bits we're merging match all is ok.
2010-06-04 16:32:06 -07:00
Yehuda Sadeh
522c12e547 osd: fix rollback when head points at the rolled back snapshot 2010-06-04 16:23:38 -07:00
Greg Farnum
33b947cd10 msg: remove copy_payload and copy_data functions; change set to use throttler 2010-06-04 13:23:57 -07:00
Sage Weil
8d1e7739a5 Merge branch 'rbd' into unstable 2010-06-04 13:10:28 -07:00
Sage Weil
7b6aea6aea osd: clean up rollback debug output 2010-06-04 13:09:42 -07:00
Sage Weil
1b5920f806 uclient: handle inode with no caps from mds
This happens when you readdir and some inodes are in a different snaprealm.
2010-06-04 13:01:21 -07:00
Greg Farnum
e79a3fae4e osd: filter_xattrs on a rollback op 2010-06-04 12:57:59 -07:00
Greg Farnum
48555f527a osd: fix naughty iterator usage after invalidating it 2010-06-04 12:55:27 -07:00
Greg Farnum
a70a3668c0 osd: _make_clone now properly duplicates xattrs 2010-06-04 12:49:49 -07:00
Greg Farnum
c730b85ce3 osd: add filter_xattrs function to remove non-user xattrs from a map of them 2010-06-04 12:49:49 -07:00
Greg Farnum
f60be8e397 progress 2010-06-04 12:04:08 -07:00
Sage Weil
84b279a4b3 mds: fix straydn->first part deux
9ed0c30ecf forgot to remove the old code.
2010-06-04 11:07:09 -07:00
Greg Farnum
97f00aec19 debugging output 2010-06-03 18:22:24 -07:00
Greg Farnum
d386327205 rados: print out pool instead of object 2010-06-03 18:22:18 -07:00
Sage Weil
c4e6482d30 mds: only purge dentries with no extra refs (besides dirty)
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-03 17:33:30 -07:00
Sage Weil
9ed0c30ecf mds: set straydn first to match inode on unlink 2010-06-03 17:33:30 -07:00
Sage Weil
ec0aa43a6c mds: don't export stray (~mdsfoo/stray), and ignore in balancer
We _must_ keep mdsdir and stray on local mds for normal operations.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-03 17:33:30 -07:00
Sage Weil
074a9b10f4 mds: make discover work for multiversion inodes (e.g. dirs)
If we don't have the specific snap, look up the head and see if it's
multiversion.

This doesn't give us a "range" lookup like we get with dentries because
the inode_map is a hash, not a map.  However, we shouldn't need it,
because we always have a specific snapped inode we're looking for (because
it is refered to by a dentry) or we are looking at a multiversion head.
2010-06-03 17:33:30 -07:00
Sage Weil
9ead80f8bc mds: fix CDir::take_sub_waiting vs dnwaiter pin
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-03 17:33:30 -07:00
Sage Weil
791ca28295 mds: kill open_foreign_stray; but open remote mdsdirs instead
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-03 17:33:29 -07:00
Sage Weil
551a12f52e mds: fix cap clone logic to look at matching first, not last
The cap->client_follows is set to follows+1 by flushsnap, since the real
follows value isn't convenient.  But it is enough to know that it is more
than the old version's follows, so do that.
2010-06-03 17:33:29 -07:00
Yehuda Sadeh
ff0e871565 libatomic: fix assert.h compilation 2010-06-03 16:45:06 -07:00
Greg Farnum
900d4c6cbb msgr: add Throttle pointer to Policy 2010-06-03 16:40:32 -07:00
Greg Farnum
1facfe0fda Merge branch 'unstable' into msgr 2010-06-03 16:20:47 -07:00
Greg Farnum
3989ae40e3 osd: make sure we don't return EAGAIN to client 2010-06-03 14:12:41 -07:00
Sage Weil
62b900f5e2 mds: open past snap parents at end of rejoin phase
We really need past parents open before we go active or else anything
that needs to build a snap context will fail.
2010-06-03 14:14:04 -07:00
Sage Weil
26449e7c6a mdsmap: show individual mds states in summary 2010-06-03 13:48:10 -07:00
Sage Weil
09185a0078 osd: improve snap_trimmer debug output 2010-06-03 13:26:39 -07:00
Sage Weil
2b33d99b8c mds: another cap_exports message/mdcache encoding fix
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-03 13:24:48 -07:00
Sage Weil
55da048fb7 mds: only adjust dn->first on lock msg if !multiversion
The multiversion dn->first references a range of inode versions; don't
drag it forward.  Fixes 38cb2403c0.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-03 13:08:16 -07:00
Sage Weil
5f905961c5 mds: more fix cap_exports typing 2010-06-03 12:03:23 -07:00
Sage Weil
054669ab2b mds: fix scatter_nudge infinite loop 2010-06-03 11:59:50 -07:00
Sage Weil
40b23227cb mds: fix ESessions type 2010-06-03 11:08:00 -07:00
Sage Weil
5cd7919ab7 mds: drag in->first forward with straydn in handle_dentry_unlink 2010-06-03 11:04:05 -07:00
Sage Weil
394d9c3db5 mds: fix anchorclient dup lookups, again 2010-06-03 10:38:56 -07:00
Sage Weil
980f234fae mds: only log successful requests as completed 2010-06-03 10:17:37 -07:00
Sage Weil
fa1e560344 mds: anchor dir on mksnap 2010-06-03 10:09:19 -07:00
CC Lien
c09d610c00 mkcephfs: error when creating journal file in a directory that differs from OSD data dir
mkcephfs creates osd data directory automatically, but it doesn't create a
directory for the osd journal file.

When you have a journal file in a directory that differs from the osd data
directory in your configuration, like:

       osd data = /osd/osd$id
       osd journal = /journal/osd$id

You will receive a "mount failed to open journal /journal/osd0/journal: No
such file or directory" error when doing mkcephfs

Signed-off-by: CC Lien <cc_lien@tcloudcomputing.com>
2010-06-03 09:45:10 -07:00
Sage Weil
5dd4a2d6b7 mds: fix mismatched cap_exports type between msg and MDCache
The types need to match because they are encoded/decoded interchangeably.
See MMDSCacheRejoin::decode() and MDCache::rejoin_send_rejoins().
2010-06-03 09:40:57 -07:00