Commit Graph

16027 Commits

Author SHA1 Message Date
Yehuda Sadeh
1179a31b74 formatter: remove bad asserts 2011-08-17 12:16:37 -07:00
Yehuda Sadeh
afdb1f3842 rgw: list objects shows time in GMT, thread safety fix 2011-08-17 11:42:18 -07:00
Colin Patrick McCabe
a311715203 src/perfglue/heap_profiler.cc: fix snprintf
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-17 11:08:34 -07:00
Yehuda Sadeh
14de6d2688 client: compile with older libfuse2 2011-08-17 11:21:55 -07:00
Colin Patrick McCabe
82baaeb172 Merge branch 'wip-librados-tests' 2011-08-17 11:00:58 -07:00
Sage Weil
cb1f05009d osd_types: fix merge
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 10:47:39 -07:00
Sage Weil
46645936c5 Merge commit 'v0.33' 2011-08-17 10:47:02 -07:00
Sage Weil
340b4348bf v0.33 2011-08-17 09:16:27 -07:00
Sage Weil
89eeb34e65 osd: pg_stat_t: throw exception on unknown encoding
This is better then decoding nonsense, eating ram, etc.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 09:16:27 -07:00
Sage Weil
ce00564049 qa: test rename into snapped dir
Tests fix for #1399.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-17 09:07:08 -07:00
Sage Weil
e98669ea69 mds: mark newly created snaprealms as open
Fixes: #1399
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-17 09:07:06 -07:00
Colin Patrick McCabe
2dd5510c02 test/rados-api/misc.cc: test Rados::version
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 17:55:19 -07:00
Colin Patrick McCabe
d45b0f6336 test/rados-api/list.cc: C++ version
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 17:53:48 -07:00
Colin Patrick McCabe
b8b14c9c09 test/rados-api/snapshots.cc: C++ version
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 17:48:04 -07:00
Colin Patrick McCabe
65626edec7 test/rados-api/watch_notify.cc: implement C++ ver
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 17:37:38 -07:00
Colin Patrick McCabe
9ca1527b65 test/rados-api/stat.cc: implement C++ tests
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 17:30:34 -07:00
Colin Patrick McCabe
d8da2ce6e4 rados/librados.h: use rados_snap_t consistently
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 17:16:09 -07:00
Colin Patrick McCabe
80a094d254 test/rados-api/aio.cc: test RoundTripWriteFull
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 13:06:09 -07:00
Colin Patrick McCabe
9df460593a test/rados-api/aio.cc: implement FlushPP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 12:59:40 -07:00
Colin Patrick McCabe
4d9dab04b1 test/rados-api/aio.cc: test ReturnValuePP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 11:25:39 -07:00
Colin Patrick McCabe
8cc794b087 test/rados-api/aio.cc: test IsSafePP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 11:10:53 -07:00
Colin Patrick McCabe
3b81656a59 test/rados-api/aio.cc: add IsCompletePP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 10:49:34 -07:00
Colin Patrick McCabe
f4d7382932 test/rados-api/aio.cc: Add RoundTripAppendPP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 10:40:25 -07:00
Colin Patrick McCabe
cc25266957 test/rados-api/aio.cc: add RoundTripPP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-16 10:31:07 -07:00
Colin Patrick McCabe
8072bdcaa4 Fix bug in turning off logging. Remove log_dir.
Fix a bug that made it impossible to turn off logging to a file.

Remove the old "log_dir" setting. It has been deprecated for a long
time, and it adds a lot of complexity to the code.

heap_profiler: use the directory that log_file is in to construct a
profiler output file name. Don't use log_dir.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-15 20:58:23 -07:00
Sage Weil
e7de7cba9d Merge branch 'next' 2011-08-15 16:34:04 -07:00
Sage Weil
77c780df54 osd: fix heartbeats after bad markdown
The heartbeat start message comes from hbin messenger, which has no port
and a nonce of the pid (at startup).  When we mark ourselves down/up, and
then resend a start, the peer will send a RESETSESSION and the stat
message will get lost, and then we'll miss heartbeats.

Mark down all connections, so that when we reconnect, our start message
is not lost.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-15 16:33:57 -07:00
Sage Weil
44d3193afa monmaptool: don't inc bool
Coverity cid 22

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-15 16:33:40 -07:00
Sage Weil
915aa41282 crushtool: don't inc bool
Coverity cid 21

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-15 16:33:40 -07:00
Sage Weil
8df56b5064 mds: break #include recursion
CInode.h -> SessionMap.h -> CInode.h

Coverity cid 14

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-15 16:33:40 -07:00
Yehuda Sadeh
3e66b8079c rgw: some encoding fixes 2011-08-15 14:15:35 -07:00
Yehuda Sadeh
3b9fbcfee2 rgw: handle zero and invalid max_keys 2011-08-15 14:15:35 -07:00
Yehuda Sadeh
b10b3a39fc rgw: create CommonPrefixes section for each prefix 2011-08-15 14:15:35 -07:00
Yehuda Sadeh
19ec8d0fa8 rgw: adjust returned error when got invalid auth request 2011-08-15 14:15:35 -07:00
Colin Patrick McCabe
80dfc981a0 obsync: add SRC_SECURE, DST_SECURE
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-12 17:44:45 -07:00
Colin Patrick McCabe
e2d4462ad7 LibRadosAio: WaitForSafePP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-12 14:55:07 -07:00
Colin Patrick McCabe
ffab58f7d7 test/rados-api/aio.cc: SimpleWritePP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-12 14:46:20 -07:00
Colin Patrick McCabe
1d6224ef82 rados_setxattr: return 0 on success
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-12 11:13:16 -07:00
Colin Patrick McCabe
431e98a94a rados_write_full: remove offset parameter
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-12 11:07:19 -07:00
Sage Weil
2f7e371581 Merge branch 'next' 2011-08-12 10:33:42 -07:00
Josh Durgin
361997af37 librbd: output copy progress
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-08-12 10:48:00 -07:00
Sage Weil
8c5e7dcf8c mds: avoid issue_caps on snapped inodes
Only head inodes have caps.  Don't set need_issue if it's not a head inode.

This is cleaner than bailing out of issue_caps(); we shouldn't get to that
point. The places that set need_issue = true usually set gather++ too,
which also shouldn't happen on a snapped inode.

Fixes: #1390
Reported-by: Damien Churchill <damoxc@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-12 10:33:19 -07:00
Colin Patrick McCabe
dc3058391f test/rados-api/snapshots.cc:RollbackPP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-11 17:54:09 -07:00
Colin Patrick McCabe
8f2933f86d test/rados-api/snapshots.cc:SnapGetNamePP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-11 17:50:27 -07:00
Colin Patrick McCabe
2a766bce9a test/rados-api/snapshots.cc:SelfManagedRollbackTest
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-11 17:45:44 -07:00
Colin Patrick McCabe
19ed6b652a SelfManagedSnapTest: test more
* test more snapshot functions in SelfManagedSnapTest

* rados_ioctx_selfmanaged_snap_set_write_ctx: fix name in C file to
conform to header file

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-11 17:30:52 -07:00
Colin Patrick McCabe
54810b6d60 test/rados-api/snapshots.cc: SelfManagedSnapTestPP
Also test SelfManagedSnapRollbackPP

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-11 17:09:02 -07:00
Colin Patrick McCabe
db36816156 test/rados-api/io.cc: test XattrListPP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-11 14:43:33 -07:00
Colin Patrick McCabe
020f063c28 test/rados-api/io.cc: test RmXattrPP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-11 14:06:07 -07:00
Colin Patrick McCabe
4781fa8695 test/rados-api/io.cc: test XattrsRoundTripPP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-11 13:56:12 -07:00