summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* common/Formatter: add newline to flushed output if m_prettywip-formatter-newlinesSage Weil2013-10-141-0/+4
| | | | | | This applies to json-pretty and xml-pretty modes. Signed-off-by: Sage Weil <sage@inktank.com>
* Merge branch 'wip-rgw-quota'Yehuda Sadeh2013-10-1422-16/+875
|\ | | | | | | | | | | | | | | Conflicts: src/test/cli/radosgw-admin/help.t Reviewed-by: Josh Durgin <josh.durgin@inktank.com> Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * radosgw-admin: add --quota-scope param to usageYehuda Sadeh2013-10-142-0/+6
| | | | | | | | | | | | and also look at it when setting quota on a bucket. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: switch out param to a pointer instead of referenceYehuda Sadeh2013-10-112-9/+18
| | | | | | | | | | | | following code review Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * test: update cli test for radosgw-adminYehuda Sadeh2013-10-111-0/+8
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * radosgw-admin: clarify --max-size paramYehuda Sadeh2013-10-111-1/+1
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * formatter: dump_bool dumps unquoted stringsYehuda Sadeh2013-10-111-1/+1
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw_quoa.{h,cc}: add copyright noticeYehuda Sadeh2013-10-112-0/+28
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * radosgw-admin: limit user bucket-level quotaYehuda Sadeh2013-10-101-0/+7
| | | | | | | | | | | | | | We only allow it if --quota-scope=bucket is specified. This is done in order to avoid confusion with the future user level quota command. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * radosgw-admin: can set user's bucket quotaYehuda Sadeh2013-10-103-33/+83
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: bucket quota thresholdYehuda Sadeh2013-10-103-5/+41
| | | | | | | | | | | | | | Add bucket quota threshold so that when we're passed that value we reread the bucket stats before every write and not rely on cached value. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: configurable bucket quota sizeYehuda Sadeh2013-10-102-2/+2
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: protect against concurrent async quota updatesYehuda Sadeh2013-10-102-10/+29
| | | | | | | | | | | | | | | | Leverage the cache lru_map locking for making sure that we don't end up with more than a single concurrent async update on the same bucket within the same update window. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: async quota updateYehuda Sadeh2013-10-106-7/+243
| | | | | | | | | | | | | | Asynchronously update bucket stats when a period passed, but bucket stats are within the ttl window. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: rearrange includesYehuda Sadeh2013-10-081-1/+1
| | | | | | | | | | | | Need to have ceph_json.h first due to some boost weirdness. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: update cache atomicallyYehuda Sadeh2013-10-041-13/+19
| | | | | | | | | | | | Use new lru_map::find_and_update() to update internal cache state. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * lru_map: add find_and_update()Yehuda Sadeh2013-10-041-10/+40
| | | | | | | | | | | | A new find_and_update() call to make atomic changes. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: init RGWBucketStatsYehuda Sadeh2013-10-021-0/+2
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: handle negative quota as non-assigned valuesYehuda Sadeh2013-10-022-8/+17
| | | | | | | | | | | | This means that we can have a 0 as a quota value. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * radosgw-admin: quota control apiYehuda Sadeh2013-10-021-0/+67
| | | | | | | | | | | | Can set, disable and enable bucket quota. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: dump quota params even if disabledYehuda Sadeh2013-10-021-4/+2
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: bucket stats also dump quota infoYehuda Sadeh2013-10-021-0/+1
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: init quotaYehuda Sadeh2013-10-023-0/+19
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: update quota stats when neededYehuda Sadeh2013-10-023-0/+17
| | | | | | | | | | | | Now update the quota stats when completing specific operations. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: also check quota before starting writeYehuda Sadeh2013-10-011-0/+8
| | | | | | | | | | | | | | In that case we only do it if it's not chunked upload (for which we don't have the content length). Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: check quota before completing write opYehuda Sadeh2013-10-013-0/+17
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: fix qutoa checkYehuda Sadeh2013-10-011-1/+2
| | | | | | | | | | | | size is in kb Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: higher level quota check functionalityYehuda Sadeh2013-10-014-2/+23
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: more quota implementationYehuda Sadeh2013-09-275-1/+73
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: add bucket quota config to entitiesYehuda Sadeh2013-09-277-34/+78
| | | | | | | | | | | | | | Add bucket quota fields to various entities: regionmap (for global configuration), user info, bucket info. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * Formatter: add dump_bool()Yehuda Sadeh2013-09-271-0/+3
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: more quota utility stuffYehuda Sadeh2013-09-273-2/+28
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * rgw: quota utility classYehuda Sadeh2013-09-264-0/+119
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | Merge pull request #711 from ceph/wip-objecter-errorsGregory Farnum2013-10-141-9/+4
|\ \ | | | | | | | | | | | | These two patches fix several completion Contexts which are inappropriately setting the Op rval to zero. Reviewed-by: Greg Farnum <greg@inktank.com>
| * | osdc/Objecter: clean up completion handlers that set *prval=0Sage Weil2013-10-111-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | If the OSD operations returns 0, these are unnecessary. If it does not, then these are misleading. In both cases here, the OSD sets the result to zero, so this has no client-visible change.r Signed-off-by: Sage Weil <sage@inktank.com>
| * | osdc/Objecter: only make handlers set *prval if EIOSage Weil2013-10-111-6/+4
| | | | | | | | | | | | | | | | | | | | | The normal Objecter handlers set *prval for each operation; we only need to (re)set it if we have a special reason (like a decoding error). Signed-off-by: Sage Weil <sage@inktank.com>
* | | SignalHandler: fix infinite loop on BSD systemsAlan Somers2013-10-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SignalHandler::entry shouldn't poll for POLLOUT, because it never actually writes to the pipes in question. Polling for POLLOUT causes poll(2) to immediately return, so the function spins the CPU and never blocks. Remove the POLLOUT flag, unnecessarily introduced in commit 8e4a78f169eda716c7d6811cb6db5c757dc67207 when switching from select() to poll(). This fixes the problem on FreeBSD and doesn't break anything (AFAICT) on Linux. Tested on FreeBSD 9.1 amd64 and Ubuntu Server 13.04 amd64. Fixes: #6492 Signed-off-by: Alan Somers <asomers@gmail.com> Reviewed-by: Greg Farnum <greg@inktank.com>
* | | doc: Removed underscore for consistency.John Wilkins2013-10-141-1/+1
| | | | | | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | | Merge pull request #713 from dachary/masterJohn Wilkins2013-10-141-0/+1
|\ \ \ | | | | | | | | doc: disable cephx requires auth_supported = none
| * | | doc: disable cephx requires auth_supported = noneLoic Dachary2013-10-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | auth cluster required = none auth service required = none auth client required = none is not enough to disable cephx if there is a auth_supported = cephx line in the [global] section. It will produce the following error # ceph --id myself auth list 2013-10-13 11:05:00.368638 7f812aea3700 0 librados: client.myself authentication error (1) Operation not permitted Error connecting to cluster: PermissionError Changing the line to auth_supported = none fixes the problem. Signed-off-by: Loic Dachary <loic@dachary.org>
* | | | Merge pull request #708 from ceph/wip-truncate2Gregory Farnum2013-10-143-4/+15
|\ \ \ \ | | | | | | | | | | Reviewed-by: Greg Farnum <greg@inktank.com>
| * | | | mds: avoid leaking objects when purging file.Yan, Zheng2013-10-113-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The filer implementation does not delete stripe objects that are truncated to zero. When purging a deleted file, we need to purge stripe objects up to the max size the file has ever been. Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
* | | | | Merge pull request #715 from ceph/wip-5025Gregory Farnum2013-10-142-1/+2
|\ \ \ \ \ | |_|/ / / |/| | | | Reviewed-by: Greg Farnum <greg@inktank.com>
| * | | | mds: flock: fix F_GETLKwip-5025Yan, Zheng2013-10-142-1/+2
|/ / / / | | | | | | | | | | | | | | | | fixes #5025 Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
* | | | doc: Created new index to incorporate side-by-side deb/rpm installs.John Wilkins2013-10-111-18/+38
| | | | | | | | | | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | | | doc: Created installation doc for Yum priorities. Ceph-specific packages ↵John Wilkins2013-10-111-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | need it. Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | | | doc: Created new QEMU install for RPMs with provision for Ceph-specific ↵John Wilkins2013-10-111-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | packages. Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | | | doc: Created new QEMU install for debian.John Wilkins2013-10-111-0/+26
| | | | | | | | | | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | | | doc: Added new libvirt install for RPM.John Wilkins2013-10-111-0/+19
| | | | | | | | | | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | | | doc: Created new libvirt install for debian/ubuntu.John Wilkins2013-10-111-0/+43
| | | | | | | | | | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>