Commit Graph

11814 Commits

Author SHA1 Message Date
Colin Patrick McCabe
c883903561 cephtool gui: install and locate gui_resources
Make install now installs the gui resource files into
/usr/share/cephtool/gui_resources (or wherever we configure it to go
using configure). We also support grabbing the resources out of the
local source tree, for when we're running the program from there.

run_gui: catch exceptions and explain what they are, rather than letting
them go to the top level.

GuiMonitor::open_icon: const cleanup.

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-28 15:51:19 -07:00
Michael McThrow
65fbd2ec93 Add the Ceph monitoring GUI
This adds a graphical monitoring mode to the ceph cluster monitoring tool.  Its
functionality is similar to ./ceph -w. With ./ceph -g, you can watch over the
whole cluster graphically. It uses GTK2.

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-28 15:51:19 -07:00
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
Greg Farnum
771c2c44fc mds: Migrator needs to add_dir_context all the way to root.
It was going to the default subtree root, which doesn't
work when we've just created a new subtree root out of the given dir!
2010-10-28 13:49:01 -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
8d37b2808d debian: change compat to 6 to match debhelper require
Reported-by: Laszlo Boszormenyi <gcs@debian.hu>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-27 21:27:11 -07:00
Sage Weil
1a0ac01f7f osd: handle missing objects on snap read
The old check in handle_op doesn't work because we don't provide a snap
context on read, and we haven't loaded one off disk.  Instead, handle
it in the pg queue worker.  If find_object_context() returns EAGAIN, then
wait_for_missing_object.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-27 21:27:11 -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
Greg Farnum
745a8ee56a clarify CDir/CInode content comments a little bit 2010-10-27 14:43:48 -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
Sage Weil
5fe0b5a004 mds: fix split use after free; merge works
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-26 20:06:14 -07:00
Sage Weil
b771ba8956 mds: simplify fragtree_t printer
val/bits^split

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-26 19:20:38 -07:00
Sage Weil
7bd00b9624 mds: implement command 'merge_dir path frag'
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-26 19:19:04 -07:00
Sage Weil
05fa106cc2 mds: implement frag.parse() 2010-10-26 19:19:04 -07:00
Sage Weil
4c79f3691c mds: requeue dir if we can't split now due to dftlock
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-26 19:19:04 -07:00
Sage Weil
4afbc529d6 mds: check/take wrlock on dirfragtreelock; unwind after freeze if needed
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-26 19:19:04 -07:00
Sage Weil
e79417ba2c mds: move fragment checks into shared helper
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-26 19:19:03 -07:00
Sage Weil
a4b21449a6 mds: don't replicate new frags (at least for now)
Lease commented out stubs in place.
2010-10-26 19:19:03 -07:00
Sage Weil
332195a28e mds: clean up merge() callchain
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-26 19:19:03 -07:00
Sage Weil
e1b5379468 mds: generalize split/merge call chain a bit
Still need work at the lower levels.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-26 19:19:03 -07:00
Sage Weil
96d26e38d5 mds: reimplement split_dir
Do not use an mdrequest; the old approach was totally broken wrt freezing,
locks, and deadlock.

First freeze, then lock, just like migration.

We still need to add a wrlock of the dirfragtreelock.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-26 19:19:03 -07:00
Sage Weil
2f9c960676 client: fix dup entries in multifrag readdir
We need a next_offset of 0 for non-leftmost frags.  Otherwise we set
our dentry offsets incorrectly and the next_offset we return to teh readdir
callback doesn't line up.  This was causing the first readdir on a large
multifrag directory to duplicate the last two items.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-26 19:19:03 -07:00
Sage Weil
0f8f02d396 mds: add 'mds bal split bits' config option (default 3)
This is how many bits we fragment by, by default.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-26 19:19:03 -07:00
Greg Farnum
96beaf6ce3 messenger: always unlock existing pipes, even if they're lossy 2010-10-26 16:28:48 -07:00
Greg Farnum
b5d9bec659 client: Initialize Inode::truncate_size to 0 instead of -1, and check prior_size
on truncation.

truncate_size needs to precisely match the defaults on the MDS, or we run into
problems when importing new inodes. No idea why it was previously set
to not match.
If we don't think the inode has any size, it doesn't need to truncate either.
This should fix #518.
2010-10-26 12:58:17 -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