]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agotest_ImageReplayer.cc: prefer ++operator for non-primitive iterators 7784/head
Danny Al-Gaaf [Tue, 8 Mar 2016 13:17:20 +0000 (14:17 +0100)]
test_ImageReplayer.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_user.cc: remove unused code
Danny Al-Gaaf [Tue, 8 Mar 2016 13:16:14 +0000 (14:16 +0100)]
rgw/rgw_user.cc: remove unused code

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_sync.*: pass const parameter by reference
Danny Al-Gaaf [Mon, 7 Mar 2016 17:00:09 +0000 (18:00 +0100)]
rgw/rgw_sync.*: pass const parameter by reference

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_op.h: init scalar field in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 18:40:35 +0000 (19:40 +0100)]
rgw/rgw_op.h: init scalar field in ctor

Fix for:

CID 717368 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member is_truncated is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agomds/Capability.h: init scalar field in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 18:29:03 +0000 (19:29 +0100)]
mds/Capability.h: init scalar field in ctor

Fix for:

CID 1019612 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member before is not initialized in
  this constructor nor in any functions that it calls.
 uninit_member: Non-static class member seq is not initialized in
  this constructor nor in any functions that it calls.
 uninit_member: Non-static class member last_issue is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agomds/Capability.h: init scalar fields in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 18:26:01 +0000 (19:26 +0100)]
mds/Capability.h: init scalar fields in ctor

Fix for:

CID 1138591 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member cap_id is not initialized in this
  constructor nor in any functions that it calls.
 uninit_member: Non-static class member issue_seq is not initialized in
  this constructor nor in any functions that it calls.
 uninit_member: Non-static class member mseq is not initialized in this
  constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agocommon/bit_vector.hpp: init scalar field in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 18:21:41 +0000 (19:21 +0100)]
common/bit_vector.hpp: init scalar field in ctor

Fix for:

CID 1274314 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member m_header_crc is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agotools/cephfs/DataScan.h: init scalar field in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 18:18:48 +0000 (19:18 +0100)]
tools/cephfs/DataScan.h: init scalar field in ctor

Fix for:

CID 1313449 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member force_init is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_op.h: init scalar field in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 13:36:04 +0000 (14:36 +0100)]
rgw/rgw_op.h: init scalar field in ctor

Fix for:

CID 1351689 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member total_size is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agomds/Capability.h: init non-static Export members in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 13:26:48 +0000 (14:26 +0100)]
mds/Capability.h: init non-static Export members in ctor

Fix for:

CID 717232 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member cap_id is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member wanted is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member issued is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member pending is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member seq is not initialized in
  this constructor nor in any functions that it calls.
 uninit_member: Non-static class member mseq is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agolibrbd/WatchNotifyTypes.h: init member vars in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 12:32:08 +0000 (13:32 +0100)]
librbd/WatchNotifyTypes.h: init member vars in ctor

Fix for:

CID 1351734 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member result is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agosrc/rgw/rgw_rados.h: init some RGWPeriod member vars in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 12:25:45 +0000 (13:25 +0100)]
src/rgw/rgw_rados.h: init some RGWPeriod member vars in ctor

Fix for:

CID 1353422 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 uninit_member: Non-static class member cct is not initialized in this
  constructor nor in any functions that it calls.
 uninit_member: Non-static class member store is not initialized in
  this constructor nor in any functions that it calls.
CID 1353426 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 uninit_member: Non-static class member cct is not initialized in this
  constructor nor in any functions that it calls.
 uninit_member: Non-static class member store is not initialized in
  this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoinclude/types.h: init members in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 10:59:53 +0000 (11:59 +0100)]
include/types.h: init members in ctor

CID 1351708 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member code is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoos/kstore/KStore.cc: init nid_last in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 10:56:27 +0000 (11:56 +0100)]
os/kstore/KStore.cc: init nid_last in ctor

Fix for:

CID 1351706 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member nid_last is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoos/fs/FS.h: init member vars in aio_t ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 10:51:49 +0000 (11:51 +0100)]
os/fs/FS.h: init member vars in aio_t ctor

CID 1351707 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member offset is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member length is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoosd/OSD.cc: init daily_loadavg in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 10:48:06 +0000 (11:48 +0100)]
osd/OSD.cc: init daily_loadavg in ctor

CID 1351705 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member daily_loadavg is not
  initialized in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agotest/librbd/test_librbd.cc: fix OVERRUN
Danny Al-Gaaf [Tue, 23 Feb 2016 08:31:04 +0000 (09:31 +0100)]
test/librbd/test_librbd.cc: fix OVERRUN

Fix for:

CID 1297862 (#1 of 1): Out-of-bounds access (OVERRUN)
 alloc_strlen: Allocating insufficient memory for the terminating
  null of the string.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw/rgw_rados.h: init non-static class members in ctor
Danny Al-Gaaf [Tue, 23 Feb 2016 06:13:19 +0000 (07:13 +0100)]
rgw/rgw_rados.h: init non-static class members in ctor

Fix for:

CID 1353420 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 uninit_member: Non-static class member cct is not initialized in
  this constructor nor in any functions that it calls.
 uninit_member: Non-static class member store is not initialized in
  this constructor nor in any functions that it calls.
CID 1353421 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 uninit_member: Non-static class member cct is not initialized in
  this constructor nor in any functions that it calls.
 uninit_member: Non-static class member store is not initialized
  in this constructor nor in any functions that it calls.
CID 1353427 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 uninit_member: Non-static class member cct is not initialized in
  this constructor nor in any functions that it calls.
 uninit_member: Non-static class member store is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoceph-deploy.rst: document missing --mkfs option
Danny Al-Gaaf [Tue, 23 Feb 2016 05:55:19 +0000 (06:55 +0100)]
ceph-deploy.rst: document missing --mkfs option

Add missing option to the correct section to fix build
warnings. Resort the 'Options' section to alphabetical order.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agocommon/ConfUtils.cc: fix potential integer overflow
Danny Al-Gaaf [Mon, 22 Feb 2016 16:23:12 +0000 (17:23 +0100)]
common/ConfUtils.cc: fix potential integer overflow

Fix for:

CID 1128394 (#1 of 1): Integer overflowed argument (INTEGER_OVERFLOW)
 overflow: Add operation overflows on operands line_len and 1UL.
 overflow_assign: Assigning overflowed or truncated value (or a value
  computed from an overflowed or a truncated value) to rem.
 overflow_sink: Overflowed or truncated value (or a value computed from an
  overflowed or truncated value) rem used as critical argument to function.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agotest/msgr/test_async_driver.cc: fix UNINIT
Danny Al-Gaaf [Mon, 22 Feb 2016 14:44:05 +0000 (15:44 +0100)]
test/msgr/test_async_driver.cc: fix UNINIT

Fix for:

CID 1254379 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use_in_call: Using uninitialized value c when calling write.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoerasure-code/shec/ErasureCodeShec.cc: use memset to fill integer VLAs
Danny Al-Gaaf [Mon, 22 Feb 2016 14:26:57 +0000 (15:26 +0100)]
erasure-code/shec/ErasureCodeShec.cc: use memset to fill integer VLAs

Fix for:

CID 1313448 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use: Using uninitialized value want[i + this->k]

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agolibrbd/exclusive_lock/AcquireRequest.cc: init lock_type
Danny Al-Gaaf [Mon, 22 Feb 2016 14:17:20 +0000 (15:17 +0100)]
librbd/exclusive_lock/AcquireRequest.cc: init lock_type

Fixup for:

CID 1351687 (#1 of 1): Uninitialized scalar variable (UNINIT)
 var_decl: Declaring variable lock_type without initializer
 uninit_use: Using uninitialized value lock_type.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agotest/librgw_file.cc: remove not needed variables
Danny Al-Gaaf [Mon, 22 Feb 2016 13:54:36 +0000 (14:54 +0100)]
test/librgw_file.cc: remove not needed variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoos/bluestore/NVMEDevice.cc: init some member vars in ctor
Danny Al-Gaaf [Fri, 19 Feb 2016 14:59:53 +0000 (15:59 +0100)]
os/bluestore/NVMEDevice.cc: init some member vars in ctor

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoMerge pull request #11811 from tanghaodong25/reap-ioc-wip
Sage Weil [Wed, 9 Nov 2016 19:36:27 +0000 (13:36 -0600)]
Merge pull request #11811 from tanghaodong25/reap-ioc-wip

os/bluestore: reap ioc when stopping aio_thread.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11832 from ceph/wip-python-rgw
Sage Weil [Wed, 9 Nov 2016 17:42:09 +0000 (11:42 -0600)]
Merge pull request #11832 from ceph/wip-python-rgw

deb: add python-rgw packages

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
8 years agodebian: add python-rgw package 11832/head
Sage Weil [Tue, 8 Nov 2016 21:29:35 +0000 (16:29 -0500)]
debian: add python-rgw package

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11845 from xiexingguo/xxg-wip-bs-1109
Sage Weil [Wed, 9 Nov 2016 17:13:58 +0000 (11:13 -0600)]
Merge pull request #11845 from xiexingguo/xxg-wip-bs-1109

os/bluestore: remove duplicated namespace of tx state

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11859 from ceph/wip-py-rgw
Kefu Chai [Wed, 9 Nov 2016 16:45:43 +0000 (00:45 +0800)]
Merge pull request #11859 from ceph/wip-py-rgw

doc: add python-rgw doc

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #11823 from xiexingguo/xxg-wip-bluestore-1108
Sage Weil [Wed, 9 Nov 2016 14:18:07 +0000 (08:18 -0600)]
Merge pull request #11823 from xiexingguo/xxg-wip-bluestore-1108

os/bluestore: refactor _do_write(); move initializaiton of csum out of loop

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #10748 from yuyuyu101/wip-dpdk8
Sage Weil [Wed, 9 Nov 2016 14:13:48 +0000 (08:13 -0600)]
Merge pull request #10748 from yuyuyu101/wip-dpdk8

msg/async: DPDKStack as AsyncMessenger backend

8 years agodoc: add doc for pybind of rgw 11859/head
Kefu Chai [Tue, 8 Nov 2016 09:12:26 +0000 (17:12 +0800)]
doc: add doc for pybind of rgw

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agopybind: rename rgw_file.pyx to rgw.pyx
Kefu Chai [Wed, 9 Nov 2016 11:08:29 +0000 (19:08 +0800)]
pybind: rename rgw_file.pyx to rgw.pyx

so the init function offered by rgw python extension is named "initrgw"
instead of "initrgw_file". and "initrgw" is the expected name by python
intepreter when loading an extension.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11847 from yuyuyu101/wip-fix-rgw-spec
Loic Dachary [Wed, 9 Nov 2016 12:48:00 +0000 (13:48 +0100)]
Merge pull request #11847 from yuyuyu101/wip-fix-rgw-spec

ceph.spec: add pybind rgwfile

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoceph.spec: add pybind rgwfile 11847/head
Haomai Wang [Wed, 9 Nov 2016 10:49:48 +0000 (18:49 +0800)]
ceph.spec: add pybind rgwfile

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoos/bluestore: remove duplicated namespace of tx state 11845/head
xie xingguo [Wed, 9 Nov 2016 09:55:52 +0000 (17:55 +0800)]
os/bluestore: remove duplicated namespace of tx state

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agotest/CMakeLists: only enable ceph_test_userspace when dpdk is true 10748/head
Haomai Wang [Wed, 2 Nov 2016 16:24:03 +0000 (00:24 +0800)]
test/CMakeLists: only enable ceph_test_userspace when dpdk is true

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/dpdk: change error to warning
Haomai Wang [Wed, 2 Nov 2016 16:18:50 +0000 (00:18 +0800)]
msg/async/dpdk: change error to warning

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoupdate dpdk submodule to ceph/dpdk
Haomai Wang [Sun, 16 Oct 2016 16:02:20 +0000 (00:02 +0800)]
update dpdk submodule to ceph/dpdk

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/Stack: allow to setup dpdkstack
Haomai Wang [Fri, 5 Aug 2016 07:46:16 +0000 (15:46 +0800)]
msg/async/Stack: allow to setup dpdkstack

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agotest_async_networkstack: fix unmatched create/delete file event
Haomai Wang [Tue, 9 Aug 2016 08:02:36 +0000 (16:02 +0800)]
test_async_networkstack: fix unmatched create/delete file event

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agotest/test_async_networkstack: add dpdk backend test
Haomai Wang [Fri, 5 Aug 2016 07:40:22 +0000 (15:40 +0800)]
test/test_async_networkstack: add dpdk backend test

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agotest: add userspace_event
Haomai Wang [Sun, 28 Feb 2016 06:02:47 +0000 (14:02 +0800)]
test: add userspace_event

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoEvent: don't wakeup dpdk driver since it's spinning on cpu
Haomai Wang [Wed, 10 Feb 2016 17:07:47 +0000 (01:07 +0800)]
Event: don't wakeup dpdk driver since it's spinning on cpu

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/Event: add DPDKDriver type to allow userspace event
Haomai Wang [Tue, 2 Aug 2016 16:10:42 +0000 (00:10 +0800)]
msg/async/Event: add DPDKDriver type to allow userspace event

Like epoll, kqueue, select, dpdk backend also need to allow notify EventCenter
when a connection is ready to read/write. So we need to let DPDKStack can kick
EventCenter. DPDKDriver which introduced UserspaceEvent to simulate epoll
event achieve the goal.

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async: add dpdk stack plugin
Haomai Wang [Tue, 2 Aug 2016 15:50:13 +0000 (23:50 +0800)]
msg/async: add dpdk stack plugin

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agobuffer: add new ptr type which destruct with passed deleter
Haomai Wang [Wed, 3 Aug 2016 13:54:27 +0000 (21:54 +0800)]
buffer: add new ptr type which destruct with passed deleter

deleter is a wrapper for lambda which can used to free resource associated
with object

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/Event: add Poller to allow event thread spin on Poller::poll
Haomai Wang [Tue, 2 Aug 2016 16:17:40 +0000 (00:17 +0800)]
msg/async/Event: add Poller to allow event thread spin on Poller::poll

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoEvent: Add get_driver to return driver backend
Haomai Wang [Wed, 23 Dec 2015 06:42:22 +0000 (14:42 +0800)]
Event: Add get_driver to return driver backend

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoThrottler: Add reset support
Haomai Wang [Wed, 23 Dec 2015 06:41:59 +0000 (14:41 +0800)]
Throttler: Add reset support

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoos/bluestore: move selectiong of csum/crr out of for loop 11823/head
xie xingguo [Tue, 8 Nov 2016 08:54:04 +0000 (16:54 +0800)]
os/bluestore: move selectiong of csum/crr out of for loop

We don't have to trace the csum/compression_required_ration option changing
at such a small granularity, which costs too much.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: refactor _do_write()
xie xingguo [Tue, 8 Nov 2016 07:45:21 +0000 (15:45 +0800)]
os/bluestore: refactor _do_write()

By moving garbage collection logic into a separate method.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11681 from stiopaa1/mds_mdstableclient_addConsttoMemFun
Gregory Farnum [Tue, 8 Nov 2016 22:49:34 +0000 (14:49 -0800)]
Merge pull request #11681 from stiopaa1/mds_mdstableclient_addConsttoMemFun

mds/MDSTableClient.h: add const to member funct

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11818 from liewegas/wip-bluestore-aio-stalls3
Sage Weil [Tue, 8 Nov 2016 21:22:06 +0000 (15:22 -0600)]
Merge pull request #11818 from liewegas/wip-bluestore-aio-stalls3

os/bluestore: optional debug mode to identify aio stalls

8 years agoMerge pull request #11826 from ovh/wip-doc-update-xattr-config-documentation
Sage Weil [Tue, 8 Nov 2016 20:46:27 +0000 (14:46 -0600)]
Merge pull request #11826 from ovh/wip-doc-update-xattr-config-documentation

doc: Update filestore xattr config documentation.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11831 from ceph/wip-dang-rgw-pybind
Matt Benjamin [Tue, 8 Nov 2016 19:22:05 +0000 (14:22 -0500)]
Merge pull request #11831 from ceph/wip-dang-rgw-pybind

RGW Python bindings - use explicit array

8 years agoRGW Python bindings - use explicit array 11831/head
Daniel Gryniewicz [Tue, 8 Nov 2016 17:32:08 +0000 (12:32 -0500)]
RGW Python bindings - use explicit array

Older Cython doesn't to implicit simple arrays, so use an explicit array
for stat output.

Revert change removing stat

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
8 years agoMerge pull request #11816 from cbodley/wip-17812
Yehuda Sadeh [Tue, 8 Nov 2016 17:31:26 +0000 (09:31 -0800)]
Merge pull request #11816 from cbodley/wip-17812

rgw: delete entries_index in RGWFetchAllMetaCR

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoos/bluestore: reap ioc when stopping aio_thread. 11811/head
haodong [Mon, 7 Nov 2016 06:33:21 +0000 (14:33 +0800)]
os/bluestore: reap ioc when stopping aio_thread.

there is possibillity that reap_ioc don't excute when stopping
aio_thread. so add reap_ioc after aio_thread is stopped.

Signed-off-by: Haodong Tang <haodong.tang@intel.com>
8 years agoMerge pull request #11817 from linuxbox2/wip-boost-3
Sage Weil [Tue, 8 Nov 2016 16:13:06 +0000 (10:13 -0600)]
Merge pull request #11817 from linuxbox2/wip-boost-3

boost: embedded

8 years agoMerge pull request #11825 from ceph/wip-11820
Kefu Chai [Tue, 8 Nov 2016 14:15:22 +0000 (22:15 +0800)]
Merge pull request #11825 from ceph/wip-11820

pybind: fix build failure of rgwfile binding

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agodoc: Update filestore xattr config documentation. 11826/head
Bartłomiej Święcki [Tue, 8 Nov 2016 10:08:24 +0000 (11:08 +0100)]
doc: Update filestore xattr config documentation.

Signed-off-by: Bartłomiej Święcki <bartlomiej.swiecki@corp.ovh.com>
8 years agopybind: fix build failure of rgwfile binding 11825/head
Kefu Chai [Tue, 8 Nov 2016 11:39:33 +0000 (19:39 +0800)]
pybind: fix build failure of rgwfile binding

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #9624 from gaurav36/coverity-1355603-dead-code
Sage Weil [Tue, 8 Nov 2016 02:59:30 +0000 (20:59 -0600)]
Merge pull request #9624 from gaurav36/coverity-1355603-dead-code

coverity fix: fixing few coverity issue

8 years agoMerge pull request #11798 from stiopaa1/mds_fsmap_preventcopyinginloop
Sage Weil [Tue, 8 Nov 2016 02:44:08 +0000 (20:44 -0600)]
Merge pull request #11798 from stiopaa1/mds_fsmap_preventcopyinginloop

mds/FSMap.cc: prevent unneeded copy of map entry

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11802 from stiopaa1/mds_fsmap_constReference
Sage Weil [Tue, 8 Nov 2016 02:43:49 +0000 (20:43 -0600)]
Merge pull request #11802 from stiopaa1/mds_fsmap_constReference

mds/FSMap.h: add const and reference

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11819 from stiopaa1/mds_migrator_addConstTomemFun
Sage Weil [Tue, 8 Nov 2016 02:39:34 +0000 (20:39 -0600)]
Merge pull request #11819 from stiopaa1/mds_migrator_addConstTomemFun

mds/Migrator.h: add const to member functions

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11807 from xiexingguo/xxg-wip-bs-1107
Sage Weil [Tue, 8 Nov 2016 02:38:20 +0000 (20:38 -0600)]
Merge pull request #11807 from xiexingguo/xxg-wip-bs-1107

os/bluestore: speed up omap-key generation for same onode

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: speed up omap-key generation for same onode 11807/head
xie xingguo [Mon, 7 Nov 2016 07:03:25 +0000 (15:03 +0800)]
os/bluestore: speed up omap-key generation for same onode

This is useful if we have to batch-process omap kvs.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11754 from athanatos/wip-17789
Sage Weil [Mon, 7 Nov 2016 23:07:08 +0000 (17:07 -0600)]
Merge pull request #11754 from athanatos/wip-17789

osd/ReplicatedPG: do_update_log_missing: take the pg lock in the callback

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore/KernelDevice: debug support to detect stalled aios 11818/head
Sage Weil [Mon, 7 Nov 2016 22:57:01 +0000 (17:57 -0500)]
os/bluestore/KernelDevice: debug support to detect stalled aios

This is additional bookkeeping to track the oldest aio in flight, so we
make it optional, and disabled by default.  It is useful for identifying
buggy kernel aio or bad devices.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/fs: add aio_list_t type
Sage Weil [Mon, 7 Nov 2016 22:47:55 +0000 (17:47 -0500)]
os/fs: add aio_list_t type

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/fs: uninline aio methods
Sage Weil [Mon, 7 Nov 2016 22:51:01 +0000 (17:51 -0500)]
os/fs: uninline aio methods

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomds/Migrator.h: add const to member functions 11819/head
Michal Jarzabek [Mon, 7 Nov 2016 22:49:49 +0000 (22:49 +0000)]
mds/Migrator.h: add const to member functions

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoboost: pull up boost to enable boost_python build 11817/head
Matt Benjamin [Mon, 7 Nov 2016 21:01:29 +0000 (16:01 -0500)]
boost:  pull up boost to enable boost_python build

Pullup to just the merges on Sep 10 fixes an obvious compile
problem, but there are other relevant changes.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoAdapt for ceph-manager
Matt Benjamin [Wed, 26 Oct 2016 21:36:22 +0000 (17:36 -0400)]
Adapt for ceph-manager

The ceph manager change added a separate Boost dependency
check, add it to the combined section.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agodo_cmake.sh: set BOOST_J to $(nproc)
Sage Weil [Thu, 29 Sep 2016 16:27:51 +0000 (12:27 -0400)]
do_cmake.sh: set BOOST_J to $(nproc)

This lets us build boost with all processors.

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoboost: update boost to 8/29
Matt Benjamin [Wed, 28 Sep 2016 15:12:39 +0000 (11:12 -0400)]
boost:  update boost to 8/29

Pull-up Boost to the commit which merged the upstream fix for
upstream Boost/iostreams bug #11860 (template arity warnings),
per discussion in core.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agocmake: find and build bundled boost
Matt Benjamin [Thu, 22 Sep 2016 15:41:53 +0000 (11:41 -0400)]
cmake:  find and build bundled boost

Build Boost using the src/boost submodule, unless overridden
by -DWITH_SYSTEM_BOOST.

If -DBOOST_J=<n> is provided, builds Boost with <n> jobs.

Boost builds in the configured Build directory.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoboost: add submodule at tag boost-1.61.0
Matt Benjamin [Mon, 26 Sep 2016 22:05:28 +0000 (18:05 -0400)]
boost: add submodule at tag boost-1.61.0

This implements option #4 for external boost, based on upstream
discussion.  In option #4:

1. boost is added as a submodule
2. builds default to using the attached boost module
3. building against a system-provided boost is supported, but
   must be configured explicitly

Because all of the boost components are attached as nested
submodules in the upstream boost repository, neither the nested
submodules nor the root boost submodule have been cloned into
modules in github.com/ceph (acked by Sage).

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #11647 from ceph/wip-jlayton-cephfs
John Spray [Mon, 7 Nov 2016 20:07:40 +0000 (21:07 +0100)]
Merge pull request #11647 from ceph/wip-jlayton-cephfs

libcephfs client API overhaul and update

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11425 from weiqiaomiao/wqm-rgw-oplog
Yehuda Sadeh [Mon, 7 Nov 2016 18:45:10 +0000 (10:45 -0800)]
Merge pull request #11425 from weiqiaomiao/wqm-rgw-oplog

rgw: fix the field 'total_time'  of log entry in log show opt

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #8712 from diwakargoel/master
Yehuda Sadeh [Mon, 7 Nov 2016 18:41:04 +0000 (10:41 -0800)]
Merge pull request #8712 from diwakargoel/master

doc: Correcting the sample python tempurl generation script.

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11648 from cbodley/wip-17698
Yehuda Sadeh [Mon, 7 Nov 2016 18:36:29 +0000 (10:36 -0800)]
Merge pull request #11648 from cbodley/wip-17698

rgw: fix for bucket delete racing with mdlog sync

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #11598 from cbodley/wip-rgw-bucket-sync
Yehuda Sadeh [Mon, 7 Nov 2016 18:35:26 +0000 (10:35 -0800)]
Merge pull request #11598 from cbodley/wip-rgw-bucket-sync

rgw multisite: move lease up to RunBucketSync instead of child crs

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: delete entries_index in RGWFetchAllMetaCR 11816/head
Casey Bodley [Fri, 4 Nov 2016 16:18:32 +0000 (12:18 -0400)]
rgw: delete entries_index in RGWFetchAllMetaCR

use a unique_ptr to ensure the entries_index is freed on destruction

Fixes: http://tracker.ceph.com/issues/17812
Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11715 from dzafman/wip-test-ec-eio
Loic Dachary [Mon, 7 Nov 2016 16:26:53 +0000 (17:26 +0100)]
Merge pull request #11715 from dzafman/wip-test-ec-eio

Fix racey test by setting noout flag (tracker 17757)

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #11624 from yuyuyu101/wip-rgwfile-pybind
Daniel Gryniewicz [Mon, 7 Nov 2016 16:08:35 +0000 (11:08 -0500)]
Merge pull request #11624 from yuyuyu101/wip-rgwfile-pybind

Wip rgwfile pybind

8 years agopybind/rgwfile: change description 11624/head
Haomai Wang [Mon, 7 Nov 2016 16:04:07 +0000 (00:04 +0800)]
pybind/rgwfile: change description

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agopybind/rgwfile: fixes hardcode way to find include dir
Haomai Wang [Mon, 7 Nov 2016 16:00:57 +0000 (00:00 +0800)]
pybind/rgwfile: fixes hardcode way to find include dir

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agopybind/rgwfile: raise Exception when failing to umount
Haomai Wang [Mon, 7 Nov 2016 15:58:59 +0000 (23:58 +0800)]
pybind/rgwfile: raise Exception when failing to umount

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agopybind/rgwfile: change FileHandler to FileHandle
Haomai Wang [Mon, 7 Nov 2016 15:56:05 +0000 (23:56 +0800)]
pybind/rgwfile: change FileHandler to FileHandle

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #11794 from rzarzynski/wip-rgw-17803
Casey Bodley [Mon, 7 Nov 2016 15:13:45 +0000 (10:13 -0500)]
Merge pull request #11794 from rzarzynski/wip-rgw-17803

rgw: fix uncompressed object size deduction in RGWRados::copy_obj_data.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11797 from yuyuyu101/wip-bluestore-pending
Sage Weil [Mon, 7 Nov 2016 14:16:18 +0000 (08:16 -0600)]
Merge pull request #11797 from yuyuyu101/wip-bluestore-pending

os/bluestore: reap collection after all pending ios done

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11713 from stiopaa1/mds_mantle_passByConstRef
John Spray [Mon, 7 Nov 2016 13:13:58 +0000 (14:13 +0100)]
Merge pull request #11713 from stiopaa1/mds_mantle_passByConstRef

mds/Mantle: pass parameters by const ref

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11727 from stiopaa1/mds_mdsrank_addOverideToThreadClass
John Spray [Mon, 7 Nov 2016 13:13:34 +0000 (14:13 +0100)]
Merge pull request #11727 from stiopaa1/mds_mdsrank_addOverideToThreadClass

mds/MDSRank.h: add override to virtual function

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11781 from trociny/wip-qa-rbd-nbd-sudo
Jason Dillaman [Mon, 7 Nov 2016 13:02:46 +0000 (08:02 -0500)]
Merge pull request #11781 from trociny/wip-qa-rbd-nbd-sudo

qa/workunits/rbd: simplify running nbd test under build env

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11806 from david-z/wip-remove-dup-log
Yan, Zheng [Mon, 7 Nov 2016 09:02:48 +0000 (17:02 +0800)]
Merge pull request #11806 from david-z/wip-remove-dup-log

mds: remove duplicated log in handle_client_readdir

8 years agomds: remove duplicated log in handle_client_readdir 11806/head
Zhi Zhang [Mon, 7 Nov 2016 08:41:39 +0000 (16:41 +0800)]
mds: remove duplicated log in handle_client_readdir

Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>