summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rgw: fix compilation for certain architectureswip-4760Yehuda Sadeh2013-04-261-1/+1
| | | | | | Casting. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: fix list buckets limitYehuda Sadeh2013-04-252-3/+11
| | | | | | | | There was an issue when limit was being set, we didn't break from the iterating loop if limit was reached. Also, S3 does not enforce any limit, so keep that behavior. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: fix bucket listing when reaching limitYehuda Sadeh2013-04-251-1/+1
| | | | | | Bucket listing was broken when limit was set. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: swift list containers can return 204Yehuda Sadeh2013-04-256-8/+12
| | | | | | | In order to keep compatibility with swift, if a plain formatter is being used, we should return 204 when there are no containers. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: fix plain formatter flushYehuda Sadeh2013-04-252-4/+12
| | | | | | | The plain formatter flush needs to append eol if needed, and not to clear the sections stack. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: fix bucket count when stating accountYehuda Sadeh2013-04-251-1/+3
| | | | | | | We need to add up the num of buckets and not just set it as we don't read the entire list of buckets in one operation. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: trivial cleanups post code reviewYehuda Sadeh2013-04-252-22/+5
| | | | | | Following code review of #4760. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: list container only shows stats if neededYehuda Sadeh2013-04-247-12/+74
| | | | | | | | | | Fixes: #4759 Add a new request param 'stats' for the swift list containers request. If set to 'false' it disables stats retrieval, which makes it go faster. Also, don't dump stats if format is plain, as they're not going to be dumped. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: stream list buckets (containers) requestYehuda Sadeh2013-04-2312-277/+340
| | | | | | | | | | Fixes: #4760 Instead of retrieving the entire list of buckets in one chunk, streamline it. This makes it so that if the request takes too long, client isn't going to timeout before getting any data. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* doc: Trimmed toc depth for nicer visual appearance.John Wilkins2013-04-181-1/+4
| | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* doc: Added new PG troubleshooting use case.John Wilkins2013-04-181-0/+16
| | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* doc: Updated title.John Wilkins2013-04-181-3/+3
| | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* doc: Added PG troubleshooting to toctree.John Wilkins2013-04-181-0/+1
| | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* doc: Bifurcating OSD and PG Troubleshooting. Updated hyperlink.John Wilkins2013-04-181-2/+2
| | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* doc: Bifurcating OSD and PG Troubleshooting. Added PG troubleshooting doc.John Wilkins2013-04-181-0/+261
| | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* doc: Bifurcating OSD and PG Troubleshooting. Removed PG section.John Wilkins2013-04-181-257/+0
| | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* rgw_bucket: Fix dump_index_check.caleb miles2013-04-181-1/+0
| | | | Signed-off-by caleb miles <caleb.miles@inktank.com>
* Merge branch 'wip-max_size-3637' into nextGreg Farnum2013-04-184-11/+47
|\ | | | | | | Reviewed-by: Sage Weil <sage@inktank.com>
| * client: disable invalidate callbacks :(Greg Farnum2013-04-171-1/+1
| | | | | | | | | | | | See #4746; it deadlocks right now. Signed-off-by: Greg Farnum <greg@inktank.com>
| * mds: only go through the max_size change rigamarole if the client requested itGreg Farnum2013-04-111-1/+4
| | | | | | | | | | | | | | | | | | The previous patch was forcing a new size change even if we were doing it as part of our regular optimistic settings; we don't much want to do that. This is a small optimization, but Sage asked for it and it's very easy. Signed-off-by: Greg Farnum <greg@inktank.com>
| * mds: Locker needs to remember requested max_size changes from clientsGreg Farnum2013-04-113-10/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, if we received an MClientCaps request containing a change in the inode's max size, and _do_cap_update() was unable to process the request immediately (due to a locking issue), we would wait-list the request by adding a call to check_inode_max_size() once the lock became stable. However, we then tossed out the message without in any way propagating the new max size which had been requested! Handle this by extending check_inode_max_size to also accept parameters for increasing the max size, and by storing all the parameters explicitly in the C_MDL_CheckMaxSize Context instead of relying on defaults. That gets us to the point where we *can* notice we need to increase the max. To actually do so, we now pass calc_new_client_ranges() the requested max size instead of the actual size if we're doing an update. Notice that as a side effect of this, all clients get to see the max size increase instead of just the requester. This should be okay, but it is chattier than in the optimal case (where we don't get stuck on a lock). Fixes #3637 Signed-off-by: Greg Farnum <greg@inktank.com>
* | mds: journal the projected root xattrs in add_root()Kuan Kai Chiu2013-04-181-1/+1
| | | | | | | | | | | | | | | | In EMetaBlob::add_root(), we should log the projected root xattrs instead of original ones to reflect xattr changes. Signed-off-by: Kuan Kai Chiu <big.chiu@bigtera.com> Reviewed-by: Greg Farnum <greg@inktank.com>
* | mds: fix setting/removing xattrs on rootKuan Kai Chiu2013-04-181-4/+2
| | | | | | | | | | | | | | | | | | MDS crashes while journaling dirty root inode in handle_client_setxattr and handle_client_removexattr. We should use journal_dirty_inode to safely log root inode here. Signed-off-by: Kuan Kai Chiu <big.chiu@bigtera.com> Reviewed-by: Greg Farnum <greg@inktank.com>
* | debian/control: Fix typo in libboost version numberGary Lowell2013-04-181-4/+4
| | | | | | | | Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
* | build: Add new package dependenciesGary Lowell2013-04-182-3/+5
| | | | | | | | | | | | | | | | | | | | Add libboost-system-dev (bug #4725). Add hdparm to rpm installation requirements. The hdparm command is used to determin if write-caching is enabled on the journal device. Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
* | doc: Removed legacy man page index. Generates warning otherwise.John Wilkins2013-04-171-9/+0
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Clarified that admin-socket is accessed from same host.John Wilkins2013-04-171-2/+8
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Updated hyperlinks to new tshooting section.John Wilkins2013-04-171-3/+3
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Removed this doc. Nothing referenced it, and parent directory echoes ↵John Wilkins2013-04-171-28/+0
| | | | | | | | | | | | content. Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Revised top-level ops page.John Wilkins2013-04-171-22/+29
| | | | | | | | | | | | | | | | Consolidated authentication into high-level operations. Added a troubleshooting section. Collapsed toc trees to make the appearance cleaner. Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Removed link to nowhere. Otherwise generates a warning.John Wilkins2013-04-171-1/+0
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Removed top-level tshoot page, and created new index.John Wilkins2013-04-172-12/+18
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Excised community from OSD tshoot, made it stand alone.John Wilkins2013-04-171-0/+35
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Moved monitor troubleshooting to troubleshooting section.John Wilkins2013-04-171-0/+0
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Moved troubleshooting OSD to troubleshooting section.John Wilkins2013-04-171-41/+16
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Added extraneous rgw settings to rgw conf.John Wilkins2013-04-171-17/+94
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Moved memory profiling from operations to troubleshooting.John Wilkins2013-04-171-2/+2
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Moved CPU profiling from operations to troubleshooting.John Wilkins2013-04-171-0/+0
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Set toc depth to 1 level, and added troubleshooting so it appears in ↵John Wilkins2013-04-171-1/+10
| | | | | | | | | | | | sidebar. Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Moved journal discussion to OSD ref from Ceph config.John Wilkins2013-04-171-20/+53
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Reordered deployment tools in toc.John Wilkins2013-04-171-1/+1
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Removed logging from config index. Set depth to 1 for clean appearance.John Wilkins2013-04-171-2/+2
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Removed logging. Added references. Reorganized and edited.John Wilkins2013-04-171-209/+93
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Removed. Not in toc, and otherwise generates a warning.John Wilkins2013-04-171-9/+0
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Updated hyperlink.John Wilkins2013-04-171-5/+4
| | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | doc: Removed fragmented logging info. Consolidated into one doc.John Wilkins2013-04-173-392/+550
| | | | | | | | | | | | | | | | | | | | | | | | Logging was variously described in the ceph configuration document, a configuration reference, and a section in operations. Since logging and debugging are generally used with troubleshooting, I consolidated the docs and placed them in the troubleshooting section. Also fixed the example and provided additional detail. fixes: #3804 Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | rbd: Only allow shrinking an image when --allow-shrink flag is passedWido den Hollander2013-04-172-4/+21
| | | | | | | | | | | | Signed-off-by: Wido den Hollander <wido@widodh.nl> Reviewed-by: Sage Weil <sage@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
* | Merge pull request #219 from ceph/wip-rbd-progressJosh Durgin2013-04-172-11/+22
|\ \ | | | | | | Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
| * | rbd: add --no-progress switchSage Weil2013-04-172-11/+22
|/ / | | | | | | | | | | Disable progress output to stderr.t Signed-off-by: Sage Weil <sage@inktank.com>
* | leveldbstore: handle old versions of leveldbGreg Farnum2013-04-173-0/+14
| | | | | | | | | | | | | | | | The filter_policy (bloom filter) stuff is fairly new in LevelDB's life, and it turns out that precise's version is too old for it. Add conditional compilation for those members in order to build and work properly. Signed-off-by: Greg Farnum <greg@inktank.com>