mds: fix typo in Server::do_rename_rollback()

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
osd/ReplicatedPG: handle misdirected do_command

We can get a query on a pg we still have but are no longer primary for.  If
that happens, do not reply.  The client will resend to the correct OSD
assuming it has the map.  Send them the latest incremental so that we know
they know there is something new.  We don't know the exact epoch they have,
unfortunately, because MCommand doesn't include it, but a newer inc is
enough to make them request the right incrementals from a mon.  Eventually
they will figure it out and Objecter will resend the request to the
correct target.

It is possible we should include epoch in the MCommand message so that we
can do this mapping "correctly" (as in, the same way MOSDOp does).  That
makes MCommand less general, though... a PG-specific command message might
be the most precise thing.  Another day...

Fixes: #8085
Signed-off-by: Sage Weil <sage@inktank.com>
mds: do file recover after authpin inode

MDCache::do_file_recover may call Locker::evel_gather, which may change
filelock to stable state. So we should authpin the inode (for unstable
lock state) first.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
mds: don't issue/revoke caps before client has caps

If early reply is not allowed, MDS does not send reply to client immediately
after Locker::issue_new_caps adds new caps. So MDS can revoke the caps before
sending reply to client.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
osd/ReplicatedPG: handle dup ops earlier in do_op

Current the dup op checks happen in execute_ctx, long after we handle
cache ops or get the obc and (potentially) return ENOENT.  That means that
object deletions and cache ops both aren't properly idempotent.

This is easy to fix by moving the check earlier in do_op.

Fixes: #8089
Signed-off-by: Sage Weil <sage@inktank.com>
ceph_test_rados_api_*: fix build warnings, memset ranges

Signed-off-by: Sage Weil <sage@inktank.com>
osd/ReplicatedPG: add missing whitespace in debug output

Signed-off-by: Sage Weil <sage@inktank.com>
client: print inode max_size

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Merge pull request #1669 from ceph/wip-client-debug

client: print inode max_size
mds: don't modify inode when calculating client ranges

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Merge pull request #1622 from dachary/wip-mailmap

mailmap updates

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
buffer: use Mutex instead of Spinlock for raw crcs

Signed-off-by: Sage Weil <sage@inktank.com>
doc: Admin API usage for quotas. Needs additional clarification on syntax.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: New admin guide for Ceph Object Gateway. Needs some clarification (todo).

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Reworked the simple configuration guide to be more generic.

Changes include removing keystone and putting it into a separate document,
removing user config and putting it into an admin guide, and creating
separate config examples for CentOS/RHEL and Debian/Ubuntu. Needs
clarification on chown/chmod.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added new docs to index.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Created standalone doc for Keystone Integration.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Distro specific rgw.conf example.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Distro specific rgw.conf example.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
mon: fix Session ref leak in handle_get_version

Signed-off-by: Sage Weil <sage@inktank.com>