Commit Graph

11637 Commits

Author SHA1 Message Date
Yehuda Sadeh
10466c5263 qa: add rbd test 2010-10-28 15:49:21 -07:00
Sage Weil
b44901cb8f SubmittingPatches: initial version
Largely based on Linux's version.  Includes the Signed-off-by stuff at
the top, and a bit more modern description of how to prepare/send patches
using git format-patch and send-email.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-28 14:55:09 -07:00
Yehuda Sadeh
b6ffdf18f2 qa: add basic rbd test 2010-10-28 14:32:06 -07:00
Sage Weil
66e1d9fccf osd: fix unneeded get_object_context() (and leak) in _rollback_to
All we want is the name of the head sobject_t, which is 'soid' in the
parent frame.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-28 13:40:38 -07:00
Sage Weil
4fe3ec91b7 cephfs: remove unused variables
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-28 13:30:04 -07:00
Sage Weil
7a688a9f99 config: fix signal handler recursion
Avoid having old handler pointer match the new handler.

Avoid calling an old handler if it pointer is null.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-28 12:10:56 -07:00
Sage Weil
ee27a61b01 objecter: refactor interface with object_locator_t
This paves the way for a locator that lets the user specify an arbitrary
string to hash for placement (instead of the object name).  It also
captures everything that would affect placement (pool, preferred, etc.)
in a single type.

Just the client side; no server side or protocol changes yet.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-28 12:10:56 -07:00
Sage Weil
8f08510834 mds: pin NEEDSNAPFLUSH only when adding item
This is mainly paranoia.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-28 11:02:26 -07:00
Sage Weil
69f5ccdd08 mds: store dir inode in separate object; fetch from both. incompat flag.
This avoids setting large xattrs.  There's no reason the inode needs to be
on the same object as the dir(frag) data.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-27 17:17:33 -07:00
Yehuda Sadeh
c1d078160a filestore: can force use of stale snaps
also, overwrite the commit_seq with the current version in case we
forced stale snaps.
2010-10-27 13:21:11 -07:00
Yehuda Sadeh
c1a6ee574b filestore: don't revert to old snapshots on startup
This should fix bug #55
2010-10-27 11:39:12 -07:00
Yehuda Sadeh
bcc068eaa8 filestore: read commit_seq before mounting (btrfs ioctls) 2010-10-27 11:39:12 -07:00
Colin Patrick McCabe
ae78ed42de ceph.cc: delete deadcode
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-26 23:28:36 -07:00
Colin Patrick McCabe
551711fb4a Move ceph.cc to tools/
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-26 23:25:56 -07:00
Colin Patrick McCabe
a14dd819a4 configure.ac: add ./configure option for gtk2
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-26 20:59:01 -07:00
Greg Farnum
96beaf6ce3 messenger: always unlock existing pipes, even if they're lossy 2010-10-26 16:28:48 -07:00
Sage Weil
2ed57d2a6d Merge remote branch 'origin/testing' into unstable
Conflicts:
	configure.ac
	src/rados.cc
2010-10-26 12:04:17 -07:00
Yehuda Sadeh
ef90cb5e5e filestore: some cleanup 2010-10-26 12:00:04 -07:00
Yehuda Sadeh
54fdd64118 filestore: escape the xattr chunk names 2010-10-26 11:59:50 -07:00
Colin Patrick McCabe
84b85aa6ee osd::Missing: const cleanup
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-26 11:41:16 -07:00
Colin Patrick McCabe
45f7110d50 osd: move PG::Missing implementation to PG.cc
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-26 11:41:10 -07:00
Yehuda Sadeh
44202873dc filestore: some cleanup 2010-10-26 11:06:12 -07:00
Sage Weil
2a3e73bb32 Merge branch 'btrfs_snap_ioctls' into unstable 2010-10-25 21:52:30 -07:00
Sage Weil
f131f4292f filestore: warn if btrfs_snaps enabled but no async snap create ioctl
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-25 21:52:07 -07:00
Sage Weil
e275e85531 mon: remove pg from deleted pools from pg_map
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-25 16:44:22 -07:00
Sage Weil
00d5442857 mds: fix up mds_bal_frag options
Use the mds_bal_frag option to enable/disable.  Make checks consistent.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-25 16:44:22 -07:00
Sage Weil
a8f6ba946b add cephfs to deb, rpm 2010-10-25 16:44:22 -07:00
Greg Farnum
5e453454f8 Merge branch 'objectcacher' into unstable 2010-10-25 16:51:38 -07:00
Greg Farnum
b15e3b485b client: fix to handle new ObjectCacher pool requirements. 2010-10-25 16:50:12 -07:00
Greg Farnum
38d7ddf209 osdc: Add pool awareness to the ObjectCacher, to prevent unfortunate collisions. 2010-10-25 16:50:07 -07:00
Greg Farnum
7bb31f75a3 osdc: Fix release_all so it loops properly 2010-10-25 16:45:56 -07:00
Yehuda Sadeh
e27f0b1e62 filestore: escape the xattr chunk names 2010-10-25 16:36:24 -07:00
Colin Patrick McCabe
961d3bc4d9 PG::Log::Entry: remove unused snap_t field
The snap_t information is stored in the sobject_t field now.

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-25 15:24:33 -07:00
Greg Farnum
61b3fc354c makefile: add cephfs 2010-10-25 13:42:24 -07:00
Colin Patrick McCabe
d4bbde5ab1 ./ceph osd setcrushmap: validate crushmap
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-25 12:31:49 -07:00
Colin Patrick McCabe
394b0712bc crush: improve error handling in map decoding
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-25 12:08:30 -07:00
Colin Patrick McCabe
a869b35abd cap_reconnect_t: ignore embedded NULLs in the path
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-24 14:28:14 -07:00
Sage Weil
e912e686de v0.22.1 2010-10-23 10:49:50 -07:00
Sage Weil
96d467377c Makefile: add errno.h 2010-10-23 10:17:44 -07:00
Sage Weil
a974cfda90 mds: be quiet about snaprealm push/pop
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-23 10:17:29 -07:00
Sage Weil
6907894671 filestore: ignore ENOSPC on setxattr pending a better workaround
This effectively reverts to old behavior (we weren't checking for ENOSPC
errors at all before).  Log which object it happened on.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-22 16:06:19 -07:00
Yehuda Sadeh
6826ce4a8e filestore: change xattr chunk size to 2048 2010-10-22 15:55:32 -07:00
Yehuda Sadeh
76157d91ab filestore: split xattrs to multiple chunks 2010-10-22 15:55:24 -07:00
Yehuda Sadeh
3ee37ee730 rados: add getxattr, setxattr 2010-10-22 15:55:14 -07:00
Yehuda Sadeh
22bb21188d filestore: change xattr chunk size to 2048 2010-10-22 15:52:58 -07:00
Yehuda Sadeh
9d4f7b8e77 librados: add rmxattr 2010-10-22 14:33:17 -07:00
Greg Farnum
429b2d9954 Revert "messenger: Make sure to unlock existing->pipe_lock. There are a few cases in the "open" section where we can go to fail_unlocked while still holding existing->pipe_lock. So unlock it."
This reverts commit 96692d24c8.
This patch accidentally got merged into the tree twice, so
merging issues came up.
2010-10-22 13:36:30 -07:00
Colin Patrick McCabe
242b5992f3 test_lost.sh: put common functions in test_common
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-22 11:50:25 -07:00
Greg Farnum
55fcbc649c Merge branch 'msgr' into unstable 2010-10-22 11:24:24 -07:00
Greg Farnum
696da81588 messenger: If we error out of accept() but have messages in our queue, save Pipe.
This can occur if we're replacing another Pipe and hit an error
in the process.
2010-10-22 11:16:24 -07:00