test/libcephfs: Fix telldir/seekdir test

Signed-off-by: Sam Lang <sam.lang@inktank.com>
doc: Changed rack, row text to row, rack. Fixed some syntax. Added note.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
run-cli-tests: Include rationale for cram patch and pointer to issue.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
osd: populate obc watchers even when degraded

Bug #3142 appears to be caused by the following sequence:

 - object X missing on primary and replica
 - [assert-ver,watch], notify, unwatch requests come in, get deferred
 - object is recovered on primary, !missing, create_object_context
   - populate_obc_watchers() does nothing, since still degraded
 - notify happens now (odd but ok?)
 - replica recovered, !degraded
 - watch skips bc of bad assert
 - unwatch trips up on an assert because populate_obc_watchers never
   ran

Fix this by populating the obc watcher when !missing, not when
!degraded.  This conditional dates back to Sam's original watch/notify
cleanup in October 2011.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
osd: drop conditional check in populate_obc_watchers

Turn these into asserts.  The only two callers are create_object_context()
and get_object_context(), and they only get called when the object is no
longer missing.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
Merge remote-tracking branch 'gh/next'
rgw: don't continue processing of GET request on error

Fixes #3381
We continued processing requests long after the client has died.

backport: argonaut
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: check client write status on swift get_obj

Fixes: #3381
We check the return code of the cio->write() operation
when doing get_obj(). This makes sure that we don't
continue processing the request if client has disconnected.
This commit complements another commit that does the same
for the specific s3 operation.

backport: argonaut
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Makefile: include java in dist tarball

Include all the java goodness in the dist tarball.  Fixes package builds.

Signed-off-by: Sage Weil <sage@inktank.com>
test: Dont check initial permissions

We can't check the initial permissions of the
file because the umask may be set to something
other than 0022.  The check isn't needed to check
for chmod correctness anyway.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
rbd: document defaults for rbd bench-write

Signed-off-by: Dan Mick <dan.mick@inktank.com>
throttle: less default log noise

This tends to drown out anything interesting in the log buffer.

Signed-off-by: Sage Weil <sage@inktank.com>
msg/Pipe: fix tight reconnect loop on connect failure

The fault() call in connect should not set onread=true since connect is
effectively a write path.  This was forcing the writer() into a tight
loop that repeatedly would call connect(); not very polite.

Changing that, we want to avoid treating this as a normal fault (with the
failure callback) and instead back off.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Merge branch 'wip-msgr'
workqueue: make debug output include active threads

Include active thread count in threadpool debug output.

Signed-off-by: Sage Weil <sage@inktank.com>
rgw: dump an error message if FCGX_Accept fails

Adding missing debug info.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
leveldb: fix accidental revert

In b85cde576e3444b10c275526ecf43b73bd21afe5

Signed-off-by: Sage Weil <sage@inktank.com>
librbd: validate copy size against proper snapshot id

Fixes: #3383
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Merge git://github.com/ceph/ceph