Commit Graph

14444 Commits

Author SHA1 Message Date
Sage Weil
d287ade5bc crush: fix tree weight accessor, decompile
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-20 16:45:40 -07:00
Colin Patrick McCabe
277dc66f64 dout: reopen log files on SIGHUP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-20 14:23:10 -07:00
Colin Patrick McCabe
960d2a36a5 Add SignalSafeQueue
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-20 12:39:56 -07:00
Sage Weil
6f8708baec mon: log mkfs as INFO with fs
The [ERR] log level is misleading.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-19 20:46:00 -07:00
Sage Weil
4404116b5a mds: kick linklock on revoke_stale_caps
Also use the eval() method and issue caps instead of calling the individual
eval methods.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-19 17:20:18 -07:00
Sage Weil
cef8eb9c95 debian: no shlibs:Depends for obsync either
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-19 16:15:59 -07:00
Sage Weil
4e2c1f457e debian: no shlibs:Depends for -dev packages
So says dpkg-gencontrol, at least:

warning: dpkg-gencontrol: Depends field of package librados-dev: unknown substitution variable ${shlibs:Depends}
...

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-19 16:15:26 -07:00
Sage Weil
94433898f2 librbd: don't need to link against crypto libs
All that is done by librados.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-19 16:13:34 -07:00
Brian Chrisman
922f7cc3e5 expanding testceph to test open/readdir/telldir
Signed-off-by: Brian Chrisman <brchrisman@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-19 15:24:58 -07:00
Brian Chrisman
3471d41b26 add ceph_readdir() to libceph
Signed-off-by: Brian Chrisman <brchrisman@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-19 15:24:58 -07:00
Colin Patrick McCabe
8f7d6c7ea1 librados: add python bindings for getxattrs
Add python bindings for getxattrs. Test getxattr, getxattrs, and
setxattr.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-19 14:49:50 -07:00
Sage Weil
3df86c38f8 client: hold FILE_BUFFER ref while waiting for dirty throttle
We may block in the write path because we've reached out dirty data limit.
Hold a reference to the FILE_BUFFER cap during that interval so we don't
lose the cap and put new dirty buffers into the objectcacher out of turn.

(We could also recheck our ability to take the ref after blocking, but I
think this is cleaner.)

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-19 15:04:31 -07:00
Sage Weil
838067d0ea client: clean up _flush callers
Have _flush return true if there are no dirty buffers.  Clean up some
redundant conditionals in the callers

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-19 15:04:31 -07:00
Sage Weil
510f2dd77a client: assert(in) on _flush
We should never arrive in _flush() and not have a reference to the inode
in question, because the presence of dirty buffers pins the inode.  This
condition was introduced forever ago; clean it out.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-19 15:04:31 -07:00
Sage Weil
67533e1443 client: be more careful with FILE_BUFFER cap refs
We should either hold a ref or not; whether we release one can't depend on
whether one is held because we can't assume the ref belongs to us.

This changes the fix in cf6b1de4 so that the ObjectCacher just calls the
flush callback if it happens to trim all dirty buffers.

We also drop the (bogus) assert about the number of refs held.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-19 15:04:31 -07:00
Sage Weil
3f43c78bb8 client: _flush should no-op if nothing to flush
If there are no FILE_BUFFER cap_refs, then we can bail out early.
Otherwise we will end up dropping refs we don't have.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-19 15:04:31 -07:00
Sage Weil
8549fc9afb Merge remote branch 'origin/stable' 2011-05-19 15:04:19 -07:00
Colin Patrick McCabe
57f423ba69 librados: add rados_getxattrs API for C bindings
Support getxattrs in the Rados C API.

Also add a test of getattrs to testrados.c

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-19 12:46:46 -07:00
Colin Patrick McCabe
4043059515 testrados: retab with C-style tabs
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-19 11:49:50 -07:00
Colin Patrick McCabe
6a580bf2c8 testrados: more getxattr / setxattr tests
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-19 11:48:21 -07:00
Colin Patrick McCabe
1dd1743189 Remove libcrush from packaging
This removes libcrush from the packaging system, now that it's been
merged into libcommon.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-19 11:33:17 -07:00
Sage Weil
f16903d724 client: do not retake lock in sync_write_commit
We already hold the lock from a few frames up the stack (ms_dispatch).

Reported-by: Simon Tian <aixt2006@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-19 10:14:29 -07:00
Colin Patrick McCabe
ce7f78d093 ceph.spec.in: fix obsync description
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-19 10:13:20 -07:00
Sage Weil
4d39f1be6f journaler: ENOENT is okay on trim
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-19 09:41:24 -07:00
Sage Weil
ecb7c96167 mkcephfs: pick rdir based on whether current daemon is local or not
We need to pick $rdir as local or remote inside the for name loop.

Fixes: #1094
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-19 09:29:11 -07:00
Colin Patrick McCabe
d0752e8138 Merge branch 'move_crush_to_libcommon' 2011-05-18 15:37:33 -07:00
Colin Patrick McCabe
14a3f262f5 Move crush into libcommon
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-18 15:37:22 -07:00
Colin Patrick McCabe
2fc13de161 Move crush into libcommon
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-18 11:48:54 -07:00
Sage Weil
d4588bae5b Merge branch 'stable' 2011-05-18 12:18:55 -07:00
Sage Weil
0d79f1dedc man: update cosd man page
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-18 11:45:46 -07:00
Sage Weil
071881d7e5 v0.28 2011-05-18 10:17:49 -07:00
Sage Weil
b060f5c892 Revert "Makefile.am: link some utils with libcrush"
This reverts commit c26649861e.

I'm not having any problems linking.  I suspect this was some automake
failure and that a 'make clean' is all that's needed to put everything
straight...

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-18 10:15:31 -07:00
Sage Weil
f1c82aaef0 logclient: get rid of send_log; simplify monitor special casing
Change the SYNC flag to MON and send the Mlog synchronously in the do_log
call.  This eliminates teh send_log vestigates completely.  Either we are
a monitor and queue for ourselves immediately, or log sending is handled
by MonClient.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-18 10:09:34 -07:00
Sage Weil
baba0a7ab3 msgr: fix signedness in alloc_aligned_buffer
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-18 10:07:02 -07:00
Sage Weil
bd1995c2d1 logclient: log synchronously to syslog
This is simpler.  And there is no reason to delay logging to syslog.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-18 10:01:12 -07:00
Sage Weil
4237da886e logclient: send entries once per mon session
We have a lossless session with the monitor!  Only send log entries once.
Otherwise, if the mon is down or something, we end up building up a HUGE
backlog of requests by resending the same messages over and over again.

To do this:
 - keep track of which entire we've sent.
 - reset when the session resets
 - let the MonClient control when log entries are sent, and reset

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-18 09:58:46 -07:00
Sage Weil
38ba4762da crush: fix clitest now that leading spaces are stripped
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-18 09:27:02 -07:00
Yehuda Sadeh
883a980a3c Makefile: don't clean up some files 2011-05-18 09:22:19 -07:00
Yehuda Sadeh
c26649861e Makefile.am: link some utils with libcrush 2011-05-18 05:25:46 -07:00
Yehuda Sadeh
e3841dc65e Makefile: don't clean up some files 2011-05-18 04:53:41 -07:00
Sage Weil
2b729875ed Merge remote branch 'origin/stable' into next 2011-05-17 22:04:44 -07:00
Sage Weil
09810cb29b page: fix #ifdef guard
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 22:00:19 -07:00
Sage Weil
2f9ff02258 page: redefine PAGE_* macros
Saw this on sid i386:

msg/SimpleMessenger.cc: In function 'void alloc_aligned_buffer(ceph::bufferlist&
, int, int)':
msg/SimpleMessenger.cc:1782:14: error: '__sysconf' was not declared in this scop
e
msg/SimpleMessenger.cc:1789:23: error: '__sysconf' was not declared in this scop

Some header is clobbering out PAGE_* macros.  Make our header more
forceful.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 22:00:19 -07:00
Sage Weil
ee7fa813ef mds: do not shift to EXCL or MIX while rdlocked
There was an old change in file_eval() that was allowing us to switch from
SYNC to MIX or EXCL while there were rdlocks, which either caused lots of
lock thrashing or could (I think) hang things up completely.  This was
from ea10a672, an ancient fix for something related that appears to have
taken out the rdlocked check by accident.

In my tests (one writer, one stat-er), this took things from long stalls
(up to 20 seconds) to very responsive stats.  Yay!

Fixes: #791
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-17 21:29:57 -07:00
Sage Weil
9be719387f vstart: simplify mds keyring add
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-17 21:08:32 -07:00
Sage Weil
812ce6e96d Merge branch 'next' 2011-05-17 21:08:00 -07:00
Sage Weil
bfca7ac58b osd: add --mkkey mkfs option
Optionally generate a new key as part of the mkfs step.  This makes life
a bit easier for the admin.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-17 18:49:39 -07:00
Sage Weil
8ad346a3a9 mon: 'auth caps <name> [svc value [svc2 value2 [...]]]'
Avoid having to futz with cauthtool if possible.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-17 18:49:39 -07:00
Josh Durgin
660e6d529f Merge remote branch 'origin/next' 2011-05-17 17:45:45 -07:00
Josh Durgin
a22511db22 PG: update same_acting_since when acting or up changes
This is a hack since we currently use same_up_since to denote the beginning of an interval.
We should probably change this usaged or rename it to same_interval since.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-05-17 17:30:02 -07:00