rgw_admin: do not throw error when start-date and end-date are not
passed to usage::trim()

Signed-off-by: caleb miles <caleb.miles@inktank.com>
Script that generates perl wrapper for teuthology tests

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
vstart.sh:  Use ./init-ceph instead of CEPH_BIN

This effectively reverts faddb80c4230acad2b4a17aa6cbf0c30ae8d24a9
which prevented vstart.sh from being used in an enviroment where
CEPH_BIN pointed to a make install target.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
doc: Fixed usage and deleted legacy values.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added hyperlink.

fixes: #3393

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
mds: fix #include for getcwd(), simplify

Always use getcwd().. it's more portable.

Signed-off-by: Sage Weil <sage@inktank.com>
doc: note raw format required for openstack/rbd

A couple people have been confused by this omission.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
leveldb: fix accidental submodule revert

a5eb72ba01bc74886170f2f6b97278ba5fc251d1

Signed-off-by: Sage Weil <sage@inktank.com>
mds: check getcwd() return value

warning: mds/MDS.cc:1586:27: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Sage Weil <sage@inktank.com>
osd: fix populate_obc_watchers() assert

There is one case where populate_obc_watchers gets called when the object
is missing: during a revert.  And in that case we *should* do the populate,
since all that is getting reverted is the object version.

Fixes: #3405
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Sam Just <sam.just@inktank.com>
Merge branch 'next'
doc: update copyright to include contributors, CC

Signed-off-by: Ross Turk <ross@inktank.com>
mds: use connection on closed sessions in force_open_sessions

If the have a Connection*, use it.

Signed-off-by: Sage Weil <sage@inktank.com>
mds: do not mark closed connections disposable

These will get reused when the client reconnects.  If we are going to
clean these up, we need a different strategy.

Signed-off-by: Sage Weil <sage@inktank.com>
mds: fix handling of cache_expire export

During export, between the warning stage and the final notify, we may
get cache expire messages because the replicas are sending to both us
and the new auth.  This check should look for >= WARNING so that it
includes the EXPORTING states as well as the portion of WARNING after
we heard from that replica.  This aligns the conditional with the
following assert such that they are properly mutually exclusive.

Fixes: #1527
Signed-off-by: Sage Weil <sage@inktank.com>
client: do not reset session state on reopened sessions

We can have a sequence one the MDS like:

 - queue REQUEST_CLOSE to journal
 - force_open, queue open to journal
 - request_close acked, do nothing
 - force_open acked, send OPEN

In this case, the MDS never actually closed the session, and all of the
state remained valid.  The client, however, gets a suprious OPEN
message and resets the session state.

Fix this by not resetting that state.

A nicer fix might be to not send the second OPEN at all, but that would
require a REOPENING state on the MDS which is more complicated; this is
good enough.  Also, that approach might not give the client an
appropriate opportunity to say "um, no..." and resend the
REQUEST_CLOSE.

Signed-off-by: Sage Weil <sage@inktank.com>
Merge branch 'wip-mds'

Reviewed-by: Greg Farnum <greg@inktank.com>
client: double mount returns -EISCONN

Change error code from -EDOM to -EISCONN when mounting an already
mounted ceph_mount_info instance.  The current convention is to return
-ENOTCONN when using the libcephfs interface in an unmounted state.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
client: add ceph_release, ceph_shutdown

Notes that ceph_shutdown() is now deprecated.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Merge branch 'wip-client-unmount'

Signed-off-by: Noah Watkins <noah.watkins@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>