Commit Graph

46517 Commits

Author SHA1 Message Date
Loic Dachary
12efe7f2c9 Merge pull request #6727 from smithfarm/wip-index
doc/dev/index.rst: begin writing Contributing to Ceph

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-03 00:18:31 +01:00
Nathan Cutler
b6f9a9b2b1 doc/dev/index.rst: begin writing Contributing to Ceph
Replace existing index.rst with the beginnings of a comprehensive
developer guide.

Move the old index.rst to index-old.rst.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-12-02 23:37:06 +01:00
Sage Weil
fb120d7b2d osd: call on_new_interval on newly split child PG
We must call on_new_interval() on any interval change *and* on the
creation of the PG.  Currently we call it from PG::init() and
PG::start_peering_interval().  However, PG::split_into() did not
do so for the child PG, which meant that the new child feature
bits were not properly initialized and the bitwise/nibblewise
debug bit was not correctly set.  That, in turn, could lead to
various misbehaviors, the most obvious of which is scrub errors
due to the sort order mismatch.

Fixes: #13962
Signed-off-by: Sage Weil <sage@redhat.com>
2015-12-02 14:50:39 -05:00
Jason Dillaman
34b32834e3 common: lockdep now tracks lock ordering when backtraces disabled
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 14:30:46 -05:00
Jason Dillaman
60519e2aa4 librbd: correct lock ordering issues discovered by lockdep
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 14:28:06 -05:00
Danny Al-Gaaf
efab777828 Merge pull request #6775 from mkoderer/doc/fixowner
doc: remove unnecessary period in headline

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-12-02 20:18:37 +01:00
Marc Koderer
1997144f5d doc: remove unnecessary period in headline
Signed-off-by: Marc Koderer <marc@koderer.com>
2015-12-02 20:05:26 +01:00
Jason Dillaman
2a0263fc64 journal: correct lock ordering issues discovered by lockdep
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 14:05:17 -05:00
Yehuda Sadeh
42305044d5 rgw: remove comments
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-02 10:45:42 -08:00
Yehuda Sadeh
eda44cd39c rgw: a minor cleanup
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-02 10:45:41 -08:00
Yehuda Sadeh
bf0a7b41e7 rgw: don't re-set bucket tenant and name when selecting location
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-02 10:45:41 -08:00
Yehuda Sadeh
ddb4caaf9c rgw: fix a typo
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-02 10:45:41 -08:00
Yehuda Sadeh
2287ce9ff2 rgw: don't allow cross-tenant bucket creation
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-02 10:45:41 -08:00
Yehuda Sadeh
e5bfd94405 rgw: avoid calling rgw_make_bucket_entry_name() when not needed
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-02 10:45:41 -08:00
Yehuda Sadeh
9425b04a70 rgw: objexp hint name backward compatibility
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-02 10:45:41 -08:00
Yehuda Sadeh
e8de3493d6 rgw: inherit bucket tenant from user if not specified
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-02 10:45:41 -08:00
Yehuda Sadeh
acda80687d rgw: add a missing cap type
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-02 10:39:37 -08:00
Samuel Just
7f0edaaf42 Merge pull request #6739 from dreamhost/wip-13920
Gentoo: _FORTIFY_SOURCE fix.

Reviewed-by: Samuel Just <sjust@redhat.com>
2015-12-02 09:58:52 -08:00
Yehuda Sadeh
fac0809b6e Merge pull request #6761 from mikulely/jewel
rgw: fix partial read issue in rgw_admin and rgw_tools

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-02 09:28:45 -08:00
Jason Dillaman
ba449e33c8 tests: added new rbd mirroring CLI commands
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:25:06 -05:00
Loic Dachary
e5c9e20a16 Merge pull request #6771 from dillaman/wip-backtrace-fixes
common: re-enable backtrace support

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-02 17:14:07 +01:00
Jason Dillaman
7e6fd072c9 rbd: add new 'mirror pool' rbd commands
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:37 -05:00
Jason Dillaman
bfe295fabd tests: librbd new pool mirror API methods
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:37 -05:00
Jason Dillaman
2a3cdbf275 librbd: new pool mirror API methods
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:37 -05:00
Jason Dillaman
869bc8ca23 ceph-dencoder: new cls::rbd::MirrorPeer type
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:37 -05:00
Jason Dillaman
c45a3ff909 test: new cls_rbd methods for pool mirroring
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:37 -05:00
Jason Dillaman
54b1c8dea2 cls_rbd: new methods for handling mirroring
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:37 -05:00
Jason Dillaman
b7b36930c7 tests: initial set of test cases for op state machines
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:12 -05:00
Jason Dillaman
f8a9aeffcd librbd: snap create doesn't properly handle race conditions
The ESTALE result code was being filtered out, preventing the retry
logic.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:12 -05:00
Jason Dillaman
9809c3c406 librbd: use md_ctx for self-managed snapshot management
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:11 -05:00
Jason Dillaman
835989c71e librbd: convert op state machines to templates
Using templates allows the creation of mocked test cases to
verify non-librados expectations.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:11 -05:00
Jason Dillaman
5b63666f88 tests: add gmock unit tests for librbd object map state machines
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:11 -05:00
Jason Dillaman
dfbcbc72a3 librbd: ensure object map is invalidated on disk if forced
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 11:11:11 -05:00
Jason Dillaman
1786fa8aa9 Merge pull request #6657 from kylinstorage/wip-rbd-nbd
rbd-nbd: network block device (NBD) support for RBD 

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 10:38:54 -05:00
branto1
ca777e8974 Merge pull request #6769 from aiicore/configure_fix
configure.ac: macro fix

Reviewed-by: Boris Ranto <branto@redhat.com>
2015-12-02 14:31:48 +01:00
Ved-vampir
dc2b1764dd common: PluginRegistry modification 2015-12-02 14:00:52 +03:00
Sage Weil
5eb64dd324 common: PluginRegistry
Generic plugin loader.  Based on the ErasureCodePlugin.

Signed-off-by: Sage Weil <sage@redhat.com>

Conflicts:
	src/common/Makefile.am
	src/common/ceph_context.cc
	src/common/ceph_context.h

missing files
2015-12-02 14:00:52 +03:00
Igor Podoski
e8002c38d5 configure.ac: macro fix
Configure fails with autoconf 2.63 on Centos 6.6 with:

./configure: line 34026: syntax error near unexpected token `newline'
./configure: line 34026: `  yes:no:'

Signed-off-by: Igor Podoski <igor.podoski@ts.fujitsu.com>
2015-12-02 11:58:07 +01:00
Orit Wasserman
e9daed221e rgw: use smart pointer for C_Reinitwatch
Fixes: 13529
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2015-12-02 11:16:05 +01:00
Yan, Zheng
0716debe92 Merge pull request #5685 from ceph/wip-12133
cephfs-data-scan: scrub tag filtering (#12133 and #12145)
2015-12-02 16:15:50 +08:00
Jiaying Ren
c4fbec7118 rgw: fix partial read mime map issue
Signed-off-by: Jiaying Ren <mikulely@gmail.com>
2015-12-02 15:52:12 +08:00
John Spray
e04beab82a tools/cephfs: enable tag filter in DataScan
Fixes: #12133
Signed-off-by: John Spray <john.spray@redhat.com>
2015-12-02 15:24:04 +08:00
John Spray
9e71abaa0a tools/cephfs: fix datascan kwarg parsing
Signed-off-by: John Spray <john.spray@redhat.com>
2015-12-02 15:16:20 +08:00
John Spray
786d111a97 cls_cephfs: add PGLSCephFSFilter
Special purpose filter for use with CephFS disaster
recovery.

Fixes: #12145
Signed-off-by: John Spray <john.spray@redhat.com>
2015-12-02 15:16:16 +08:00
Jason Dillaman
9c266e5995 common: re-enable backtrace support
A recent porting effort disabled support for backtrace creation.  It
also didn't initialize all variables, which would lead to a crash when
deleting a backtrace instance.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 00:43:48 -05:00
Yan, Zheng
9d42f1abcb Merge pull request #6719 from jcsp/wip-13898
tools: Fix layout handing in cephfs-data-scan (#13898)
2015-12-02 11:44:22 +08:00
Yunchuan Wen
b0deee4961 Update man page for new rbd nbd command
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
2015-12-02 11:29:41 +08:00
Yunchuan Wen
dcb78b25dd update test_librbd_fsx to support rbd-nbd
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
2015-12-02 11:29:31 +08:00
Yunchuan Wen
2c7cc532a8 add rbd-nbd man page reference
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
2015-12-02 11:29:30 +08:00
Yunchuan Wen
330c7f86f5 add rbd-nbd wrap to rbd CLI
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
2015-12-02 11:29:01 +08:00