rgw: rgwstore is not global

Instead of using a global rgwstore param, just pass it around.
We now do it almost all around, except for in rgw_admin, where
we can still have the global one.
This is part of a cleanup that will allow setting flexible
pool names.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: RGWRados holds domain root info

Continuing cleanup work.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: pool names are not global

Move all hard coded pool names outside of the global
namespace.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: remove static store object

We used to instantiate a single RGWRados object.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: cleanup create_bucket

Pool creation is now being done through an excplicit
method, get rid of the unused user param when creating
a pool, and remove auid.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
objclass: add remove operation

Added a missing remove object operation

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
cls_lock: fix some spacing

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
cls_lock_client: clean up reference parameters

These should all be const. The remaining reference parameters
will be converted to pointers in another commit.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
cls_lock_client: change modified reference parameters to pointers

This makes it clear which parameters are modified,
as our style guide states.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
cls_lock_client: fix indentation

Add indentation settings to header, and reindent.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
cls_lock_client: return error when decoding fails

Library code shouldn't be using cerr either.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
cls_lock_types: add missing include

msg_types defines entity-related types used here.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
cls_lock_client: add ObjectOperation-based get_lock_info

This will be used by librbd to grab lock info along with
the rest of its header information in a single request.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
rgw: implement user manifest (swift)

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: use prefetched buffer even when ofs != 0

Beforehand we only used the prefetched buffer if read ofs
was 0.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
cls_refcount: a new class for objects refcounting

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: fix usage

Fixes: #3085
usage was showing 'bucket info' command that never
existed.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: usage now account categories

Instead of just keeping a flat usage info per bucket, we
now maintain a list of categories for which requests
usage is aggregated in. Ops are put in categories based
on their names.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
gitignore: Remove "nbproject", no idea what that even is.

Looks like this line was accidentally introduced in commit
af4d8db55f7268ab68ee5a7e17ac58c993528566.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
rgw: rgw-admin filter usage by categories

rgw can now filter usage output by specific op
categories.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>