rgw: fix rgw_read_user_buckets() use of max param

Fixes: #7336

The rgw_read_user_buckets() treated the max param as the max number of
entries to request in a single op, but always fetched the entire list
of buckets. This is wrong, as it should have treated it as the total
number of entries requested. All the callers assume the latter.

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

rgw: fix rgw_read_user_buckets() use of max param

Reviewed-by: Sage Weil <sage@inktank.com>
qa/workunits/snaps: New allow_new_snaps syntax

These were probably just obscuring other failures.

Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: John Spray <john.spray@inktank.com>
Merge pull request #1190 from ceph/wip-snaptest-next

qa/workunits/snaps: New allow_new_snaps syntax
rest/test.py: use larger max_file_size for mds set test

Current min is 64k.

Signed-off-by: Sage Weil <sage@inktank.com>
rgw: initialize variable before call

Need to initialize the truncated variable, as we sometimes ignore error
response (e.g., with ENOENT), and in such cases we can't expect it to be
set.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit 9ecf3467a3efc071954c4f69a23b51e677742c1f)
osd/OSDMap: populate *primary when pool dne

This fixes a valgrind error from OSD::handle_osd_map where primary is not
initialized and is compared after the call to pg_to_acting_osds().

We are still not distinguishing from "no mapping" to "pool doesn't exist,
no mapping".  That is a somewhat larger change, though.

Signed-off-by: Sage Weil <sage@inktank.com>
Merge pull request #1197 from ceph/wip-osdmap-primary

osd/OSDMap: populate *primary when pool dne

Reviewed-by: Greg Farnum <greg@inktank.com>
added script to test rgw user quota

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
Merge branch 'next' of github.com:ceph/ceph into next
script to test rgw multi part uploads using s3 interface

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
(cherry picked from commit 5d59dd9cd67834d991b038323bcbc3e8f8612229)
Merge remote-tracking branch 'gh/next'