]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Pete Zaitcev [Fri, 4 Dec 2015 22:05:27 +0000 (15:05 -0700)]
Add common/PluginRegistry.cc to CMakeLists.txt
Else this happens:
[ 15%] Linking CXX executable ceph-authtool
libcommon.a(ceph_context.cc.o): In function `CephContext::CephContext(unsigned int, int)':
ceph_context.cc:(.text+0x2620): undefined reference to `ceph::PluginRegistry::PluginRegistry(CephContext*)'
libcommon.a(ceph_context.cc.o): In function `CephContext::~CephContext()':
ceph_context.cc:(.text+0x3db0): undefined reference to `ceph::PluginRegistry::~PluginRegistry()'
collect2: error: ld returned 1 exit status
src/CMakeFiles/ceph-authtool.dir/build.make:120: recipe for target 'src/ceph-authtool' failed
make[2]: *** [src/ceph-authtool] Error 1
CMakeFiles/Makefile2:331: recipe for target 'src/CMakeFiles/ceph-authtool.dir/all' failed
The ceph_context.cc is the only user of PluginRegistry at
present, so adding it without conditionals should be correct.
Signed-Off-By: Pete Zaitcev <zaitcev@redhat.com>
Sage Weil [Fri, 4 Dec 2015 15:37:48 +0000 (10:37 -0500)]
Merge pull request #6641 from aclamk/wip-log-alloc-predictor
common: log: predict log message buffer allocation size
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 4 Dec 2015 15:34:44 +0000 (10:34 -0500)]
Merge pull request #6642 from 0003ydlom/decode_reorder
osd: move newest decode version of MOSDOp and MOSDOpReply to the front
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 4 Dec 2015 15:19:11 +0000 (10:19 -0500)]
Merge pull request #6696 from Ved-vampir/wip_common_plugin
common: add generic plugin infrastructure
Reviewed-by: Varada Kari <varada.kari@sandisk.com>
Sage Weil [Fri, 4 Dec 2015 15:15:54 +0000 (10:15 -0500)]
Merge pull request #6779 from ceph/wip-librados-xattr
librados: avoid malloc(0) (which can return NULL on some platforms)
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 4 Dec 2015 15:14:34 +0000 (10:14 -0500)]
Merge pull request #6759 from liewegas/wip-bdev-probe
osd: make backend and block device code a bit more generic
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Varada Kari <varada.kari@sandisk.com>
Sage Weil [Fri, 4 Dec 2015 15:13:47 +0000 (10:13 -0500)]
Merge pull request #6686 from stiopaa1/namespace_buffer
common: use namespace instead of subclasses for buffer
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 4 Dec 2015 15:13:07 +0000 (10:13 -0500)]
Merge pull request #6535 from mslovy/wip-crc-cache-tracker
common: buffer: add cached_crc and cached_crc_adjust counts to perf dump
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 4 Dec 2015 15:10:19 +0000 (10:10 -0500)]
Merge pull request #6058 from guangyy/wip-pg-query
osd: dump number of missing objects for each peer with pg query
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 4 Dec 2015 15:09:13 +0000 (10:09 -0500)]
Merge pull request #5953 from guangyy/wip-13121
osd: support pool level recovery_priority and recovery_op_priority
Reviewed-by: David Zafman <dzafman@redhat.com>
Sage Weil [Fri, 4 Dec 2015 15:00:54 +0000 (10:00 -0500)]
Merge pull request #5670 from david-z/master
osd: FileJournal: reduce locking scope in write_aio_bl
Reviewed-by: Haomai Wang <haomai@xsky.com>
Jason Dillaman [Fri, 4 Dec 2015 13:40:26 +0000 (08:40 -0500)]
Merge pull request #6798 from trociny/fix-rbd_mirror-bool
librbd: include missing header for bool type
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Mykola Golub [Fri, 4 Dec 2015 13:10:51 +0000 (15:10 +0200)]
librbd: include missing header for bool type
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Josh Durgin [Fri, 4 Dec 2015 08:16:03 +0000 (00:16 -0800)]
Merge pull request #6129 from dillaman/wip-13292
RBD pool mirroring configuration API + CLI
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Loic Dachary [Thu, 3 Dec 2015 21:40:17 +0000 (22:40 +0100)]
Merge pull request #6780 from smithfarm/wip-index-
20151201
doc/dev/index.rst: fix headings
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Yehuda Sadeh [Thu, 3 Dec 2015 17:41:50 +0000 (09:41 -0800)]
Merge pull request #6786 from oritwas/wip-cmake-fix-radosgw
cmake: add rgw_basic_types.cc to librgw.a
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Nathan Cutler [Thu, 3 Dec 2015 12:43:29 +0000 (13:43 +0100)]
doc/dev/index.rst: fix links
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Thu, 3 Dec 2015 12:30:54 +0000 (13:30 +0100)]
doc/dev/index.rst: Flesh out the IRC section
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Thu, 3 Dec 2015 12:18:52 +0000 (13:18 +0100)]
doc/dev/index.rst: Make Issue tracker a separate chapter
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Josh Durgin [Thu, 3 Dec 2015 14:55:51 +0000 (06:55 -0800)]
Merge pull request #6789 from dillaman/wip-13969
librbd: partial revert of commit
9b0e359
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Loic Dachary [Thu, 3 Dec 2015 14:23:44 +0000 (15:23 +0100)]
Merge pull request #6748 from liewegas/wip-fix-cephtool
qa/workunits/cephtool/test.sh: no ./
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Yan, Zheng [Thu, 3 Dec 2015 14:10:26 +0000 (22:10 +0800)]
Merge pull request #5941 from jcsp/wip-12137
#12137: cephfs-data-scan scan_frags
Josh Durgin [Thu, 3 Dec 2015 13:38:50 +0000 (05:38 -0800)]
Merge pull request #6777 from dillaman/wip-librbd-lockdep
librbd: journaling-related lock dependency cleanup
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Thu, 3 Dec 2015 13:26:07 +0000 (05:26 -0800)]
Merge pull request #6762 from dillaman/wip-13924
journal: fire replay complete event after reading last object
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Thu, 3 Dec 2015 13:23:10 +0000 (05:23 -0800)]
Merge pull request #6703 from dillaman/wip-tests-librbd-gmock-state-machines
librbd: initial collection of state machine unit tests
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Jason Dillaman [Thu, 3 Dec 2015 12:53:42 +0000 (07:53 -0500)]
librbd: partial revert of commit
9b0e359
Fixes: #13969
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Thu, 3 Dec 2015 08:54:11 +0000 (09:54 +0100)]
doc/dev/index.rst: start writing Bugfixing chapter
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Sage Weil [Thu, 3 Dec 2015 11:40:40 +0000 (06:40 -0500)]
Merge pull request #6690 from branch-predictor/bp-smaller-pglog-2
osd: slightly reduce actual size of pg_log_entry_t
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 3 Dec 2015 11:40:13 +0000 (06:40 -0500)]
Merge pull request #6689 from 0003ydlom/doubled_cond
osd: avoid duplicate op->mark_started in ReplicatedBackend
Reviewed-by: xinxin shu <xinxin.shu@intel.com>
Sage Weil [Thu, 3 Dec 2015 11:39:09 +0000 (06:39 -0500)]
Merge pull request #6681 from ifed01/wip-objstore-bench-stabilization
ceph_objectstore_bench: fix race condition, bugs
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Thu, 3 Dec 2015 11:38:19 +0000 (06:38 -0500)]
Merge pull request #6677 from jack-changtao/test-bench
rados: bench: fix off-by-one to avoid writing past object_size
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Thu, 3 Dec 2015 11:37:11 +0000 (06:37 -0500)]
Merge pull request #6555 from mslovy/wip-reduce-omap-transaction
osd: don't update epoch and rollback_info objects attrs if there is no need
Reviewed-by: Sage Weil <sage@redhat.com>
Orit Wasserman [Thu, 3 Dec 2015 10:58:28 +0000 (11:58 +0100)]
cmake: add rgw_basic_types.cc to librgw.a
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Nathan Cutler [Thu, 3 Dec 2015 08:53:35 +0000 (09:53 +0100)]
doc/dev/index.rst: rewrite introductory material
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Yehuda Sadeh [Thu, 3 Dec 2015 05:52:00 +0000 (21:52 -0800)]
Merge pull request #6784 from ceph/wip-5073
rgw multitenancy
Buckets and users can now have a tenant associated with them. Buckets can be specified as [<tenant>:]<bucket> and users can be specified as [<tenant>$]<uid>. The existing users and buckets are part of the default global tenant.
This is first phase. Future work will add tighter integration (e.g., swift tenant mapping, s3 subdomain tenant mapping, etc.)
Reviewed-by: Pete Zaitcev <zaitcev@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Guang Yang [Thu, 3 Dec 2015 02:16:52 +0000 (02:16 +0000)]
qa: add a test for the recovery_priority/recovery_op_priority pool settings.
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
Guang Yang [Wed, 2 Dec 2015 23:46:34 +0000 (23:46 +0000)]
mon: support recovery_priority and recovery_op_priority with monitor commands
Fixes: 13121
Signed-off-by: Guang Yang yguang@yahoo-inc.com
Guang Yang [Wed, 2 Dec 2015 17:54:58 +0000 (17:54 +0000)]
osd: prioritize recovery based on pool's customized priority
Fixes: 13121
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
Nathan Cutler [Wed, 2 Dec 2015 23:30:24 +0000 (00:30 +0100)]
doc/dev/index.rst: fix headings
This commit fixes the headings so they render properly on http://ceph.com
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Loic Dachary [Wed, 2 Dec 2015 23:18:31 +0000 (00:18 +0100)]
Merge pull request #6727 from smithfarm/wip-index
doc/dev/index.rst: begin writing Contributing to Ceph
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Nathan Cutler [Sun, 29 Nov 2015 23:51:11 +0000 (00:51 +0100)]
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>
Jason Dillaman [Wed, 2 Dec 2015 19:28:18 +0000 (14:28 -0500)]
common: lockdep now tracks lock ordering when backtraces disabled
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 2 Dec 2015 19:27:57 +0000 (14:27 -0500)]
librbd: correct lock ordering issues discovered by lockdep
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Danny Al-Gaaf [Wed, 2 Dec 2015 19:18:37 +0000 (20:18 +0100)]
Merge pull request #6775 from mkoderer/doc/fixowner
doc: remove unnecessary period in headline
Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Marc Koderer [Wed, 2 Dec 2015 19:05:26 +0000 (20:05 +0100)]
doc: remove unnecessary period in headline
Signed-off-by: Marc Koderer <marc@koderer.com>
Jason Dillaman [Wed, 2 Dec 2015 18:35:21 +0000 (13:35 -0500)]
journal: correct lock ordering issues discovered by lockdep
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Yehuda Sadeh [Mon, 30 Nov 2015 21:57:56 +0000 (13:57 -0800)]
rgw: remove comments
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 30 Nov 2015 21:51:35 +0000 (13:51 -0800)]
rgw: a minor cleanup
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 30 Nov 2015 21:50:07 +0000 (13:50 -0800)]
rgw: don't re-set bucket tenant and name when selecting location
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 30 Nov 2015 21:48:10 +0000 (13:48 -0800)]
rgw: fix a typo
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 30 Nov 2015 21:46:05 +0000 (13:46 -0800)]
rgw: don't allow cross-tenant bucket creation
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 30 Nov 2015 20:15:24 +0000 (12:15 -0800)]
rgw: avoid calling rgw_make_bucket_entry_name() when not needed
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 30 Nov 2015 19:56:03 +0000 (11:56 -0800)]
rgw: objexp hint name backward compatibility
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 30 Nov 2015 19:33:48 +0000 (11:33 -0800)]
rgw: inherit bucket tenant from user if not specified
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Samuel Just [Wed, 2 Dec 2015 17:58:52 +0000 (09:58 -0800)]
Merge pull request #6739 from dreamhost/wip-13920
Gentoo: _FORTIFY_SOURCE fix.
Reviewed-by: Samuel Just <sjust@redhat.com>
Jason Dillaman [Wed, 25 Nov 2015 16:00:12 +0000 (11:00 -0500)]
tests: added new rbd mirroring CLI commands
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Loic Dachary [Wed, 2 Dec 2015 16:14:07 +0000 (17:14 +0100)]
Merge pull request #6771 from dillaman/wip-backtrace-fixes
common: re-enable backtrace support
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Jason Dillaman [Thu, 24 Sep 2015 18:34:16 +0000 (14:34 -0400)]
rbd: add new 'mirror pool' rbd commands
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 24 Sep 2015 18:33:35 +0000 (14:33 -0400)]
tests: librbd new pool mirror API methods
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 24 Sep 2015 12:39:30 +0000 (08:39 -0400)]
librbd: new pool mirror API methods
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 23 Sep 2015 22:11:34 +0000 (18:11 -0400)]
ceph-dencoder: new cls::rbd::MirrorPeer type
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 23 Sep 2015 22:11:01 +0000 (18:11 -0400)]
test: new cls_rbd methods for pool mirroring
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 23 Sep 2015 22:10:25 +0000 (18:10 -0400)]
cls_rbd: new methods for handling mirroring
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 19 Aug 2015 17:32:42 +0000 (13:32 -0400)]
tests: initial set of test cases for op state machines
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 25 Nov 2015 19:09:25 +0000 (14:09 -0500)]
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>
Jason Dillaman [Wed, 25 Nov 2015 19:06:03 +0000 (14:06 -0500)]
librbd: use md_ctx for self-managed snapshot management
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 19 Aug 2015 17:10:57 +0000 (13:10 -0400)]
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>
Jason Dillaman [Tue, 18 Aug 2015 17:44:02 +0000 (13:44 -0400)]
tests: add gmock unit tests for librbd object map state machines
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 25 Nov 2015 16:46:00 +0000 (11:46 -0500)]
librbd: ensure object map is invalidated on disk if forced
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 2 Dec 2015 15:38:54 +0000 (10:38 -0500)]
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>
branto1 [Wed, 2 Dec 2015 13:31:48 +0000 (14:31 +0100)]
Merge pull request #6769 from aiicore/configure_fix
configure.ac: macro fix
Reviewed-by: Boris Ranto <branto@redhat.com>
Ved-vampir [Wed, 25 Nov 2015 08:05:24 +0000 (11:05 +0300)]
common: PluginRegistry modification
Sage Weil [Sat, 11 Apr 2015 14:45:07 +0000 (07:45 -0700)]
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
Igor Podoski [Wed, 2 Dec 2015 06:25:00 +0000 (07:25 +0100)]
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>
Yan, Zheng [Wed, 2 Dec 2015 08:15:50 +0000 (16:15 +0800)]
Merge pull request #5685 from ceph/wip-12133
cephfs-data-scan: scrub tag filtering (#12133 and #12145)
John Spray [Mon, 27 Jul 2015 10:07:49 +0000 (11:07 +0100)]
tools/cephfs: enable tag filter in DataScan
Fixes: #12133
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Fri, 24 Jul 2015 13:57:01 +0000 (14:57 +0100)]
tools/cephfs: fix datascan kwarg parsing
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Fri, 17 Jul 2015 13:19:57 +0000 (14:19 +0100)]
cls_cephfs: add PGLSCephFSFilter
Special purpose filter for use with CephFS disaster
recovery.
Fixes: #12145
Signed-off-by: John Spray <john.spray@redhat.com>
Jason Dillaman [Wed, 2 Dec 2015 05:43:48 +0000 (00:43 -0500)]
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>
Yan, Zheng [Wed, 2 Dec 2015 03:44:22 +0000 (11:44 +0800)]
Merge pull request #6719 from jcsp/wip-13898
tools: Fix layout handing in cephfs-data-scan (#13898)
Yunchuan Wen [Wed, 2 Dec 2015 03:27:32 +0000 (11:27 +0800)]
Update man page for new rbd nbd command
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
Yunchuan Wen [Thu, 19 Nov 2015 08:08:50 +0000 (16:08 +0800)]
update test_librbd_fsx to support rbd-nbd
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
Yunchuan Wen [Sun, 15 Nov 2015 10:26:51 +0000 (18:26 +0800)]
add rbd-nbd man page reference
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
Yunchuan Wen [Wed, 2 Dec 2015 03:29:01 +0000 (11:29 +0800)]
add rbd-nbd wrap to rbd CLI
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
Josh Durgin [Wed, 2 Dec 2015 03:06:44 +0000 (19:06 -0800)]
Merge pull request #6661 from xiaoxichen/rbd_misc_fix1
cls/cls_rbd.cc: fix misused metadata_name_from_key
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Xiaoxi Chen [Fri, 20 Nov 2015 08:00:19 +0000 (16:00 +0800)]
cls/cls_rbd.cc: no need to skip key == after.
We already skip the pair where key == after in both LevelDBWholeSpaceIteratorImpl::upper_bound
and RocksDBWholeSpaceIteratorImpl::upper_bound.
Fixes: #13922
Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
Jason Dillaman [Wed, 2 Dec 2015 02:36:47 +0000 (21:36 -0500)]
journal: fire replay complete event after reading last object
Fixes: #13924
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Guang Yang [Wed, 2 Dec 2015 01:51:19 +0000 (01:51 +0000)]
osd: add recovery_priority and recovery_op_priority to pool_opts_t
Fixes: 13121
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
Dan Mick [Tue, 1 Dec 2015 22:38:48 +0000 (14:38 -0800)]
tests and tools/scratchtool: Don't attempt to use NULL xattr
Prior commit changes rados{striper}_getxattrs_next to be able to return
NULL in the 'val' param. Handle that.
Fixes: #13944
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Dan Mick [Tue, 1 Dec 2015 22:35:35 +0000 (14:35 -0800)]
librados.cc: rados_getxattrs_next: don't try to use malloc(0)
If an xattr is 0 length, don't try to malloc a buffer for the value;
leave it NULL. (Linux doesn't promise malloc(0) returns a pointer,
and other implementations, like AIX, definitely return NULL.)
Usage changes are in following commits.
Fixes: #13944
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Sage Weil [Tue, 1 Dec 2015 22:21:00 +0000 (17:21 -0500)]
osd: mark osd backend type in osd_data dir
When we create an osd, mark the type of the backend in the
osd_data dir in the 'type' file. On startup, if this file is
present, us this to decide which ObjectStore to instantiate. If
it is not present, use the osd_objectstore option as before.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 1 Dec 2015 22:16:11 +0000 (17:16 -0500)]
osd: make block device fsid probing generic
Currently the option name and invocation assume that the block device
is a journal (and FileStore journal, managed by FileJournal). Rework
the interface so that we can probe any block device and other ObjectStore
implementations will have a chance to identify the device (and return the
osd fsid).
Switch to a static method while we are at it so we avoid instantiating
each backend.
Note that only FileStore is probed at the moment; that will change soon!
Signed-off-by: Sage Weil <sage@redhat.com>
Adam Kupczyk [Wed, 18 Nov 2015 10:01:31 +0000 (11:01 +0100)]
Implemented log message size predictor. It tracks size of log messages.
Initial allocation size is derived from last log message from the same line of code.
Fixed bug in test.
Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
Josh Durgin [Tue, 1 Dec 2015 16:31:14 +0000 (08:31 -0800)]
Merge pull request #6742 from dillaman/wip-13913
librbd: automatically flush IO after blocking write operations
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
wangchaunhong [Tue, 20 Oct 2015 10:40:23 +0000 (18:40 +0800)]
init-ceph: fix systemd-run cant't start ceph daemon sometimes
Fixes: #13474
Signed-off-by: Chuanhong Wang <wang.chuanhong@zte.com.cn>
Loic Dachary [Tue, 1 Dec 2015 15:03:54 +0000 (16:03 +0100)]
Merge pull request #6749 from dachary/wip-doc-install
doc: INSTALL redirect to online documentation
Reviewed-by: Loic Dachary <ldachary@redhat.com>
John Spray [Fri, 27 Nov 2015 01:21:12 +0000 (01:21 +0000)]
tools/cephfs: fix layout handling in injection
When the stashed-layout handling stuff was added,
the guessing part got lost from the path where
we only had a single object. Broke test_data_scan.
Signed-off-by: John Spray <john.spray@redhat.com>
Jason Dillaman [Tue, 1 Dec 2015 14:24:05 +0000 (09:24 -0500)]
Merge pull request #6729 from majianpeng/librbd-journal
librbd: only send signal when AIO completions queue empty
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
John Spray [Tue, 1 Dec 2015 14:17:46 +0000 (14:17 +0000)]
Merge pull request #6751 from ceph/wip-cmake-strerror_r
cmake: define STRERROR_R_CHAR_P for GNU-specific strerror_r
Reviewed-by: John Spray <john.spray@redhat.com>
Jason Dillaman [Tue, 1 Dec 2015 14:16:19 +0000 (09:16 -0500)]
Merge pull request #5465 from yuyuyu101/wip-librbd-ap
librbd: support eventfd for AIO completion notifications
Reviewed-by: Jason Dillaman <dillaman@redhat.com>