rgw: can set temp url key on user

Either through new through new rest api call, or via
radosgw-admin

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: add optional tenant name for swift urls

In order to maintain compatibility with swift clients that expect the
url to also contain a reference to the tenant name, add an optional
param (empty by default) that would add it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: handle temp url key authorization

Fixes: #3454
Implement auth handling code that checks temp url signature and
expiration. The key that is used for the signature is the bucket owner's
temp url key.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: support multiple temp url keys

Apparently the swift api defines two temp url keys. Add internal support
for multiple keys, radosgw-admin can config two keys.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
rgw: fix temp url restful apis and support multiple keys

the set temp url api didn't do anything, fix that. Also add support for
multiple temp url keys.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
erasure-code: add chunk size calculation helpers

With the current erasure code interface, figuring out the size of a
chunk and the number of chunks for a given object can only be achieved
by calling the encode() method on an actual buffer.

The get_chunk_count, get_data_chunk_count and get_chunk_size helpers are
added and documented.

Signed-off-by: Loic Dachary <loic@dachary.org>
erasure-code: refactor the example to use chunk size helpers

The get_chunk_size and get_chunk_count methods are implemented using the
code found in the encode() method. The encode method is modified to use
the chunk size helpers.

The unit tests are modified to use the helpers.

Signed-off-by: Loic Dachary <loic@dachary.org>
erasure-code: jerasure implementation of chunk size helpers

The encode methode uses the get_chunk_size method which is a translation
of the code it previously used for the same purpose. The chunk_count and
chunk_data_count methods return k+m and k respectively. But that will
no longer be the case after local parity is implemented.

Signed-off-by: Loic Dachary <loic@dachary.org>
erasure-code: erasure code decode interface helper

The decode_concat method is implemented, documented and tested. It is a
convenience method to concatenate chunks into a single bufferlist.

Signed-off-by: Loic Dachary <loic@dachary.org>
mailmap: add athanatos <sam.just@inktank.com>

Signed-off-by: Loic Dachary <loic@dachary.org>
doc: Updated paths for OSDs using the OS disk.

fixes: #6682

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Merge pull request #963 from dachary/wip-erasure-code-api

erasure code interface helpers

Reviewed-by: Samuel Just <sam.just@inktank.com>
Merge pull request #1089 from dachary/wip-mailmap

mailmap: add athanatos <sam.just@inktank.com>

Reviewed-by: Samuel Just <sam.just@inktank.com>
radosgw-admin: add temp url params to usage

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Merge pull request #978 from ceph/wip-3454

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
ceph: Add quota feature flags

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
ceph: Add quota_info_t to store quota info

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
mds: Add quota field to inode_t

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
mds: Shutdown old mds without quota support

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
mds: Handle quota update

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>