Commit Graph

15843 Commits

Author SHA1 Message Date
Sage Weil
47d75af51b mds: explain weird encoding
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 16:12:14 -07:00
Sage Weil
a21a5ef8d6 mds: whitespace
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 15:53:22 -07:00
Sage Weil
b4fb82bb46 mds: drop unused projected dirfrag_t arg for EMetaBlob::add_primary_dentry
Not used.  If it is later, we need to project it properly.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 15:47:55 -07:00
Sage Weil
93b7167221 mds: drop unused snapbl arg
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 15:43:21 -07:00
Sage Weil
d011c62394 mds: avoid explicit passing of projected_xattrs
No need to pass this in explicitly; we can look in the projected inode for
it.  This actually fixes a race where a journaled inode following a
setxattr will not journal the projected xattrs.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 15:41:06 -07:00
Sage Weil
a9998c8d96 mds: avoid passing snapbl around explicitly
We now properly track projected snaprealm/sr_t's.  Use that for journaling
instead of manually passing around a snapbl.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 15:41:06 -07:00
Sage Weil
08fb8a614d mds: use snaprealm projection for MDCache::snaprealm_create()
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 15:33:28 -07:00
Sage Weil
6ee52e7d42 mds: simplify sr_t journaling
Drop encode/decode in SnapRealm and encode the sr_t's directly.  This way
the caller says what they mean (current or projected).

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 15:33:11 -07:00
Sage Weil
d60d5319ad mds: journal inode on mksnap
We were cowing but not journaling a simply-dirty inode.  Der.

Fixes: #1389
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 15:32:02 -07:00
Sage Weil
79db9fc509 mds: handle O_TRUNC when size is already 0
We always want to go through the truncation path.  Two reasons:

 - even if the size is already 0, we still need to update ctime/mtime
 - we may not have the correct size (client could have dirty data), in
   which case we still want to bump truncate_seq etc.

Basically, we can't trust pi->size here because we are holding a wrlock,
not an xlock.  And that's fine, since we need to update the inode
unconditionally anyway.

This broke cfuse pjd open/00.t tests when we added the fuse option
atomic_o_trunc.  libceph has always been broken in this regard.

Fixes: #1393
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 14:11:15 -07:00
Sage Weil
45740cf86a client: send O_TRUNC open requests to MDS
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 14:00:08 -07:00
Sage Weil
266110d672 client: move Inode operator<<
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 13:59:57 -07:00
Sage Weil
0ed2fafce0 rbd: remove dup 'rm' command from man page
Fixes: #1395
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 12:56:09 -07:00
Sage Weil
d314506442 cfuse: take out accidental bad channel add
This was a brainstorm that snuck into last commit, grr.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 12:53:06 -07:00
Yehuda Sadeh
d9df58e1b4 rgw: fix virtual bucket name handling 2011-08-17 12:56:19 -07:00
Sage Weil
2df3f2c946 cfuse: make use of fuse invalidate callback optional (and off by default)
This is hitting a deadlock in fuse itself (or so it appears).  Disable it
until that's sorted out.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-17 12:25:56 -07:00
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