Samuel Just
de1f424a72
ceph/src/test/store_test.cc: added store_test.cc
...
Meant to test basic file store functionality
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-08-29 17:43:01 -07:00
Samuel Just
71123b2dce
ObjectStore.h: const cleanup in transaction method params
...
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-08-29 17:42:51 -07:00
Samuel Just
1fe54bfefe
FileStore.cc: Fix error in collection_rename
...
Previously, the rename operated on the collection names. Now, rename
operations on the full paths to the collections.
Signed-off-by: Samuel Just <rexludorum@gmail.com>
2011-08-29 17:42:51 -07:00
Samuel Just
30856dc18e
JournalingObjectStore: journal_replay committed_seq fix
...
Previously, committed_seq was set to op_seq at the end of
replay_journal. committed_seq should not actually be set until the
sync thread runs.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-08-29 17:42:51 -07:00
Tommi Virtanen
afede55c83
Integrate Doxygen into Sphinx docs.
...
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-08-29 17:27:14 -07:00
Tommi Virtanen
f1d8964499
First draft of the documentation overhaul.
...
To build the docs, run ./admin/build-doc. To browse them, either get
them on any static website, or just run ./admin/serve-doc to serve
them quickly off of port 8080.
build-doc sets up a virtualenv to avoid needing Sphinx installed
system-wide. serve-doc needs thttpd installed.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-08-29 17:27:14 -07:00
Yehuda Sadeh
68f57f9afb
test: make escaping unitest happy
2011-08-29 17:19:37 -07:00
Yehuda Sadeh
f2d19a0317
json escaping fix
2011-08-29 17:12:03 -07:00
Yehuda Sadeh
a2b0857c5e
radosgw_admin, rados tool: don't use camel casing for json output
2011-08-29 17:02:38 -07:00
Yehuda Sadeh
19f09c0a83
fix json escaping
2011-08-29 17:02:38 -07:00
Josh Durgin
8293dfabb5
pg: warn about inconsistent object_info/on-disk size
...
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-08-29 16:50:15 -07:00
Josh Durgin
281dae6548
osd_types: add standard header so spacing is correct
...
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-08-29 16:48:31 -07:00
Josh Durgin
e61fc66305
pg: remove useless line
...
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-08-29 16:48:31 -07:00
Sage Weil
b140ff223e
client: debug link/unlink and dn_set parent relationship
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-29 15:53:57 -07:00
Sage Weil
853658e9f1
heartbeatmap: fix reset_timeout with mixed-used threads
...
If you have a ThreadPool used by multiple WorkQueues, and some of them are
setting a suicide timeout, we need to clear it when a suicide timeout is
not set.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-29 15:02:46 -07:00
Yehuda Sadeh
f8296ef550
rados tool: df dumps formatted data
2011-08-29 15:04:59 -07:00
Yehuda Sadeh
c4219a11fb
rgw: log show dumps some information about bucket owner
2011-08-29 14:20:17 -07:00
Samuel Just
8cb25cab2e
bandaid for gitbuider
2011-08-29 13:42:36 -07:00
Sage Weil
3ecdd1122b
Merge remote branch 'vapre/wip-pgid'
2011-08-29 13:39:12 -07:00
Sage Weil
698df7e15c
osd: remove dead lookup_lock_pg()
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-29 13:39:10 -07:00
Sage Weil
9d37c92c58
osd: set suicide timeouts on some workqueues
...
OpWQ: timeout * 10
RecoveryWQ: this does no io; it if stalls we're probably stuck in an
infinite loop. timeout * 10.
ScrubFinalizeWQ: this is cpu only. we're probably stuck in a loop, or
swapping. timeout * 10.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-29 11:54:21 -07:00
Sage Weil
66b6289a1b
mon: health not ok when up < in osds
...
We were warning if there were any not up or in osds. Instead, warn if
there are any osds that are in but not up. That means if a node fails
and successfully marks the node out and retracts onto remaining nodes, the
ceph cluster is healthy again.
Presumably the fact that the nodes failed should raise other alerts,
because those specific daemons/nodes are not healthy.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-29 11:46:16 -07:00
Sage Weil
502cf0b239
filestore: add suicide grace to workqueue
...
The main thing we are worried about here are kernel BUGs that kill off our
threads.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-29 11:46:16 -07:00
Sage Weil
5fde4011ac
heartbeatmap: add suicide grace
...
Add a second suicide grace period that will make us kill ourselves if
we are sufficiently catatonic.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-29 11:46:15 -07:00
Yehuda Sadeh
68d1ba84a7
rgw: don't check for time skew when Expires was set
2011-08-29 10:58:28 -07:00
Sage Weil
1bb0e3cc69
client: simplify Client::remove_cap() args
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-29 09:31:17 -07:00
Sage Weil
b9c824c038
client: clean up Client::remove_session_caps() args
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-29 09:31:17 -07:00
Sage Weil
16a5761fa9
client: don't falsely populate mds_sessions on bad MClientSession msg
...
If from isn't in the map, we don't want to add it via operator[].
Fixes : #1367
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-29 09:31:16 -07:00
Sage Weil
04153abb4b
testlibrbd: remove useless sizeofs
...
Should be sizeof(*result), if anything.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-29 08:59:46 -07:00
Sage Weil
3dcb04b9e7
testlibrbd: fix assert side effect
...
Coverity cid 1, 2
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-29 08:56:49 -07:00
Wido den Hollander
66f1d41dae
FileJournal: Also classify kernel major version 3 as safe with disk-cache on
...
Signed-off-by: Wido den Hollander <wido@widodh.nl>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-27 20:53:58 -07:00
Sage Weil
6c27367d66
osd: decode pg_t in old PG::Info
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-27 20:45:15 -07:00
Sage Weil
5d81c4fe06
osd: requrie PGID64 of mons, other osds
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-27 10:20:55 -07:00
Sage Weil
d996ce2a23
mds: require PGID64 of mons
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-27 10:20:54 -07:00
Sage Weil
efd43bbc59
mon: require PGID64 of osds and other mons
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:20:54 -07:00
Sage Weil
f093a2eefa
pgmap: decode old pg_t
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:20:54 -07:00
Sage Weil
92b524e1cd
mdsmap: int64_t pool ids
...
Encode old-format maps for clients without PGID64 feature bit.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:20:54 -07:00
Sage Weil
6e58bc9d64
osd: add 64-bit pools to ObjectLocator
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:20:54 -07:00
Sage Weil
d1ce410842
osdmap: encode/decode old + new version
...
In MOSDMap, reencode map payloads using old format if the target doesn't
have the PGID64 feature bit.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:20:54 -07:00
Sage Weil
eae1922ad5
osd: decode old pg_stat_t
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:20:54 -07:00
Sage Weil
fbeafdf9c3
osd: make MOSDOp[Reply] encoding backwards compatible
...
Move away from struct-based encoding of MOSDOpReply while we're at it.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:20:54 -07:00
Sage Weil
7cedf7b8d1
osd: add PGID64 feature bit
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:20:54 -07:00
Sage Weil
468e28ee60
osd: int pool -> int64_t pool
...
Internal interfaces.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:20:51 -07:00
Sage Weil
877aa92b80
osd: redo pg_t encoding with 64-bit pool id
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:18:46 -07:00
Sage Weil
d8f1f1dd29
osd: fix pg_pool_t::get_pg_num return types
...
Unsigned!
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-27 10:18:46 -07:00
Sage Weil
0b00350bc8
ceph_context: whitespace
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-27 09:25:26 -07:00
Sage Weil
458371e10d
Merge commit 'v0.34'
2011-08-27 09:27:41 -07:00
Sage Weil
2f039eeeb7
v0.34
2011-08-26 21:48:47 -07:00
Yehuda Sadeh
44cb5ee258
rgw: use formatter->dump_string() instead of dump_format()
2011-08-26 16:54:05 -07:00
Yehuda Sadeh
0e8bd0dc10
rgw: get bucket info only if bucket name is not empty
2011-08-26 14:11:06 -07:00