Commit Graph

33248 Commits

Author SHA1 Message Date
Xing Lin
0d3cdb9fdb test/libcephfs/test.cc: free cmount structure before return
call ceph_shutdown to free cmount structure before return

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
2014-05-06 22:44:37 -06:00
Sage Weil
b7134c9a2e Merge pull request #1774 from ceph/wip-8296
osd/ReplicatedPG: fix whiteouts for other cache mode

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-06 13:08:39 -07:00
Sage Weil
3e387d62ed osd/ReplicatedPG: fix whiteouts for other cache mode
We were special casing WRITEBACK mode for handling whiteouts; this needs to
also include the FORWARD and READONLY modes.  To avoid having to list
specific cache modes, though, just check != NONE.

Fixes: #8296
Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-06 11:01:27 -07:00
Samuel Just
650051cd17 Merge pull request #1601 from ceph/wip-7576
osd: prevent pg map epochs from lagging too far behind

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-06 10:49:46 -07:00
Josh Durgin
2b48e52c4c Merge pull request #1748 from onlyjob/docs
sample.ceph.conf update:

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-05-06 10:12:45 -07:00
Josh Durgin
9c0e92f0ea Merge pull request #1653 from ceph/wip-7499
rgw, radosgw-admin: bucket link uses bucket instance id now

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-05-06 10:10:59 -07:00
Sage Weil
f31e3ee00a Merge pull request #1768 from daniel-j-h/code_quality
Variable length array of std::strings (not legal in C++) changed to std::vector<std::string>

Reviewed-by: Sage Weil <sage@inktank.com>
2014-05-06 07:12:00 -07:00
Sage Weil
e65a9da93a Revert "Fix installation into user home directory, broken by d3f0c0b"
This reverts commit 7539281037.

This breaks mount.fuse.ceph installation.
2014-05-06 07:04:56 -07:00
John Wilkins
cdbbf86fa3 doc: Fixed artifacts from merge.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-05-06 03:54:45 -07:00
John Wilkins
a31b9e9c75 doc: Added sudo to setenforce. Restored merge artifact.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-05-06 03:54:08 -07:00
John Wilkins
515827223f doc: Added erasure coding and cache tiering notes. Special thanks to Loic Dachary.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-05-06 03:53:03 -07:00
Daniel J. Hofmann
08a4e88897 Variable length array of std::strings (not legal in C++) changed to std::vector<std::string>
Signed-off-by: Daniel J. Hofmann <daniel@trvx.org>
2014-05-06 09:51:37 +02:00
Sage Weil
38408f6b68 Merge pull request #1770 from ceph/wip-8290
client: check snap_caps in Incode::is_any_caps()

Reviewed-by: Sage Weil <sage@inktank.com>
2014-05-05 16:55:49 -07:00
Yan, Zheng
ae434a3536 client: check snap_caps in Incode::is_any_caps()
Fixes: #8290
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-05-06 07:46:12 +08:00
Sage Weil
7f3a4206a3 Merge pull request #1764 from eile/master
Fix installation into user home directory, broken by d3f0c0b

Reviewed-by: Sage Weil <sage@inktank.com>
2014-05-05 16:26:27 -07:00
John Wilkins
e68422b388 Merge pull request #1769 from ceph/wip-doc-cache-tier
doc: Support for cache tiering.
2014-05-05 15:26:27 -07:00
Josh Durgin
ea34f48cd9 Merge remote-tracking branch 'origin/wip-doc-radosgw-80'
Conflicts:
	doc/radosgw/config.rst
2014-05-05 15:14:22 -07:00
Samuel Just
3c9529ad3a Merge pull request #1760 from ceph/wip-8283
osd/ReplicatedPG: fix trim of in-flight hit_sets

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-05 14:53:47 -07:00
John Wilkins
fc3318edb7 doc: Fix hyperlink.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-05-05 12:35:41 -07:00
John Wilkins
a7e7219345 doc: Index update and librados.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-05-05 12:34:59 -07:00
John Wilkins
fcbc5fa607 doc: Quotas for Admin Ops API.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-05-05 12:33:58 -07:00
John Wilkins
e97b56eb3a doc: New Admin Guide for Ceph Object Storage.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-05-05 12:33:30 -07:00
Stefan Eilemann
7539281037 Fix installation into user home directory, broken by d3f0c0b
Signed-off-by: Stefan Eilemann <Stefan.Eilemann@epfl.ch>
2014-05-05 09:54:19 +02:00
Yan, Zheng
24c5ea8df0 osd: check blacklisted clients in ReplicatedPG::do_op()
OSD checks if client is blacklisted only when receiving OSD request.
It's possible that OSD request's sender get blacklisted while OSD
request in in some waiting list.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
(cherry picked from commit f92677c5b2)
2014-05-03 15:14:39 -07:00
Sage Weil
b4dfd3d578 Merge pull request #1740 from ceph/wip-8155
mon: OSDMonitor: disallow nonsensical cache-mode transitions

Reviewed-by: Sage Weil <sage@inktank.com>
2014-05-03 15:13:37 -07:00
Sage Weil
c64b67b56c ceph-object-corpus: rebase onto firefly corpus
Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-03 07:59:28 -07:00
Sage Weil
af8a5298d3 Merge pull request #1762 from yuyuyu101/wip-8282
Fix clone problem

Backport: firefly
Reviewed-by: Sage Weil <sage@inktank.com>
2014-05-03 07:41:48 -07:00
Sage Weil
ca116a3e31 Merge pull request #1752 from ceph/wip-da-SCA-fixes-20140501
Various fixes from SCA

Reviewed-by: Sage Weil <sage@inktank.com>
2014-05-03 06:49:56 -07:00
Sage Weil
00868514ec Merge pull request #1755 from eile/master
Fix out of source builds

Reviewed-by: Sage Weil <sage@inktank.com>
2014-05-03 06:42:04 -07:00
Stefan Eilemann
8bd4e58242 Fix out of source builds
Signed-off-by: Stefan Eilemann <Stefan.Eilemann@epfl.ch>
2014-05-03 12:02:02 +02:00
Haomai Wang
3aee1e0ffe Fix clone problem
When clone happened, the origin header also will be updated in GenericObjectMap,
so the new header wraper(StripObjectHeader) should be updated too.

Fix #8282
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-05-03 12:55:17 +08:00
Joao Eduardo Luis
fd970bbc95 mon: OSDMonitor: disallow nonsensical cache-mode transitions
Fixes: 8155

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-05-03 03:42:19 +01:00
David Zafman
3e31458444 Merge pull request #1735 from ceph/wip-8113
Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-02 19:26:30 -07:00
Samuel Just
4aa93dd12c Merge pull request #1698 from ceph/wip-snapmapper-debug
osd/SnapMapper: debug

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-02 16:52:36 -07:00
Samuel Just
2700ebf83b Merge pull request #1694 from ceph/wip-throttle-snap-master
osd: throttle snap trimmming with simple delay

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-02 16:48:10 -07:00
Danny Al-Gaaf
b45adc9894 Merge pull request #1759 from dachary/wip-mailmap
DNM: mailmap updates

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:43:14 +02:00
Sage Weil
72fdd557c3 osd/ReplicatedPG: fix trim of in-flight hit_sets
We normally need to stat the hit_set to know how many bytes to adjust the
stats by.  If the hit_set was just written, we will get ENOENT.

Get the obc instead, which will either get the in-memory copy (because the
repop is still in flight) or load it off of disk.

Fixes: #8283
Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-02 16:41:26 -07:00
Samuel Just
84728058db Revert "ReplicatedPG: block scrub on blocked object contexts"
This reverts commit e66f2e36c0.
Reviewed-by: Sage Weil <sage@inktank.com>
2014-05-02 16:36:42 -07:00
Sage Weil
f47f867952 osd: Prevent divide by zero in agent_choose_mode()
Fixes: #8175
Backport: firefly

Signed-off-by: David Zafman <david.zafman@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-02 16:35:49 -07:00
David Zafman
b7d31e5f59 osd, common: If agent_work() finds no objs to work on delay 5 (default) secs
Add config osd_agent_delay_time of 5 seconds
Honor delay by ignoring agent_choose_mode() calls
Add tier_delay to logger
Treat restart after delay like we were previously idle

Fixes: #8113
Backport: firefly

Signed-off-by: David Zafman <david.zafman@inktank.com>
2014-05-02 16:35:49 -07:00
Danny Al-Gaaf
fe0031d96a rados.cc: fix typo in help output
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:35:29 +02:00
Danny Al-Gaaf
8bf039d09b Dumper::dump_entries(): reduce scope of 'got_data'
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:35:28 +02:00
Danny Al-Gaaf
296b8ed0af PG::read_info(): pass 'const coll_t coll' by reference
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:35:28 +02:00
Danny Al-Gaaf
8fad144c4d PGBackend::be_compare_scrubmaps(): pass pgid by reference
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:35:28 +02:00
Danny Al-Gaaf
1e7eb1a1f8 osd_types.h: pass eversion_t by reference to operator<<
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:35:28 +02:00
Danny Al-Gaaf
be5a99d69b SimpleLock.h: remove unused private function clear_more()
Remove unused private function clear_more(), it's replaced by
try_clear_more().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:35:28 +02:00
Danny Al-Gaaf
70a4a73d61 SimpleLock.h: remove twice included osd_types.h
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:35:28 +02:00
Danny Al-Gaaf
4fe31c1b8b linux_fiemap.h: remove twice included int_types.h
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:35:27 +02:00
Danny Al-Gaaf
b05e04ec5a Dumper::dump_entries(): remove not needed variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:35:27 +02:00
Danny Al-Gaaf
9a716d88bb rgw_bucket.cc: return error if update_containers_stats() fails
In case need_stats is set on rgw_read_user_buckets() and the
update_containers_stats() call fails with !-ENOENT, not only
print out a message but also return the error to the function
caller.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:34:10 +02:00