]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoMerge pull request #7480 from trociny/fix-journal-commit_position_task
Jason Dillaman [Tue, 2 Feb 2016 14:51:54 +0000 (09:51 -0500)]
Merge pull request #7480 from trociny/fix-journal-commit_position_task

journal: reset commit_position_task_ctx pointer after task complete

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoscript/run-coverity: fix user
Sage Weil [Tue, 2 Feb 2016 14:01:28 +0000 (09:01 -0500)]
script/run-coverity: fix user

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agojournal: reset commit_position_task_ctx pointer after task complete 7480/head
Mykola Golub [Tue, 2 Feb 2016 13:31:34 +0000 (15:31 +0200)]
journal: reset commit_position_task_ctx pointer after task complete

Otherwise, schedule_commit_task() would never schedule the next task
and the commit position would not be committed until shutdown.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge remote-tracking branch 'gh/wip-da-SCA-20150910'
Sage Weil [Tue, 2 Feb 2016 13:08:26 +0000 (08:08 -0500)]
Merge remote-tracking branch 'gh/wip-da-SCA-20150910'

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7473 from yehudasa/wip-14516
Orit Wasserman [Tue, 2 Feb 2016 09:10:38 +0000 (10:10 +0100)]
Merge pull request #7473 from yehudasa/wip-14516

rgw-admin: document orphans commands in usage

9 years agoMerge pull request #7451 from wjin/fix
Kefu Chai [Tue, 2 Feb 2016 06:56:12 +0000 (14:56 +0800)]
Merge pull request #7451 from wjin/fix

msg/async: fix array boundary

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6813 from manens/pybind_rados_snapshot_read
Kefu Chai [Tue, 2 Feb 2016 03:26:47 +0000 (11:26 +0800)]
Merge pull request #6813 from manens/pybind_rados_snapshot_read

pybind: Implementation of Ioctx.set_read to allow read from snapshots

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agorgw-admin: document orphans commands in usage 7473/head
Yehuda Sadeh [Tue, 2 Feb 2016 00:33:55 +0000 (16:33 -0800)]
rgw-admin: document orphans commands in usage

Fixes: #14516
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7445 from xiexingguo/xxg-wip-mem
Sage Weil [Mon, 1 Feb 2016 22:12:53 +0000 (17:12 -0500)]
Merge pull request #7445 from xiexingguo/xxg-wip-mem

osd: memstore: fix blocksize for statfs

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fix typo (again)
Sage Weil [Mon, 1 Feb 2016 20:02:20 +0000 (15:02 -0500)]
os/bluestore: fix typo (again)

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fix typo
Sage Weil [Mon, 1 Feb 2016 19:59:42 +0000 (14:59 -0500)]
os/bluestore: fix typo

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7400 from yuyuyu101/wip-13938
Josh Durgin [Mon, 1 Feb 2016 19:44:42 +0000 (11:44 -0800)]
Merge pull request #7400 from yuyuyu101/wip-13938

librbd: Avoid create two threads per image

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7409 from dillaman/wip-librbd-watch-notify
Josh Durgin [Mon, 1 Feb 2016 19:42:27 +0000 (11:42 -0800)]
Merge pull request #7409 from dillaman/wip-librbd-watch-notify

tests: improve simulation of watch/notify handling

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6562 from Aran85/authedpermcheck
Yehuda Sadeh [Mon, 1 Feb 2016 18:56:14 +0000 (10:56 -0800)]
Merge pull request #6562 from Aran85/authedpermcheck

rgw: fix the condition of  authenticated user's permit check .

9 years agoMerge pull request #7291 from majianpeng/vstart.sh
Kefu Chai [Mon, 1 Feb 2016 15:52:32 +0000 (23:52 +0800)]
Merge pull request #7291 from majianpeng/vstart.sh

vstart.sh: If use '-n' delete related source rather than consider '-k'.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7397 from tchaikov/wip-kill-warnings
Sage Weil [Mon, 1 Feb 2016 15:26:39 +0000 (10:26 -0500)]
Merge pull request #7397 from tchaikov/wip-kill-warnings

build: kill warnings

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agocivetweb: update submodule to silence a compile warning 7397/head
Kefu Chai [Sun, 31 Jan 2016 17:55:20 +0000 (01:55 +0800)]
civetweb: update submodule to silence a compile warning

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocommon,osd: remove _process(T *t) to silence warnings
Kefu Chai [Sat, 30 Jan 2016 17:49:47 +0000 (01:49 +0800)]
common,osd: remove _process(T *t) to silence warnings

* and mark the WorkQueue::_process(T *, TPHandle&) a pure virtual
  method. so we must override it
* and mark all override methods with the "override" specifier.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agorgw: fix the condition of authenticated user's permit check 6562/head
Zengran Zhang [Mon, 1 Feb 2016 04:58:58 +0000 (23:58 -0500)]
rgw: fix the condition of authenticated user's permit check

before fix:
put a bucket under one user with authenticated-read permit
> ./s3curl.pl http://myobs.com/mybucket --put --H "x-amz-acl: authenticated-read"
GET the bucket with anonymous user
> curl http://myobs.com/mybucket -X GET

> successed!

after fix:
anonymous cant GET the authenticated-read bucket
other users who authenticated could GET it

Signed-off-by: Zengran Zhang <zhangzengran@h3c.com>
9 years agoMerge pull request #7266 from sahithi-rv/master 6985/head
Sage Weil [Sun, 31 Jan 2016 15:03:14 +0000 (10:03 -0500)]
Merge pull request #7266 from sahithi-rv/master

common/str_map: cleanup: replaced get_str_map() function overloading by using default parameters for delimiters

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7344 from songbaisen/song8
Sage Weil [Sun, 31 Jan 2016 15:02:13 +0000 (10:02 -0500)]
Merge pull request #7344 from songbaisen/song8

crush: add safety assert

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7363 from cxwshawn/mon-sync-fix
Sage Weil [Sun, 31 Jan 2016 15:01:24 +0000 (10:01 -0500)]
Merge pull request #7363 from cxwshawn/mon-sync-fix

mon: add mon_config_key prefix when sync full

Fixes: #14577
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7383 from liewegas/wip-bluestore
Sage Weil [Sun, 31 Jan 2016 15:00:10 +0000 (10:00 -0500)]
Merge pull request #7383 from liewegas/wip-bluestore

osd: bluestore: some new c++11-isms, a couple reverts

9 years agoEvent: fix array boundary 7451/head
Wei Jin [Sun, 31 Jan 2016 09:55:22 +0000 (17:55 +0800)]
Event: fix array boundary

fd should be less than nevent when deleting

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
9 years agocmake: fix "jobserver unavailable" warning
Kefu Chai [Sun, 31 Jan 2016 08:27:12 +0000 (16:27 +0800)]
cmake: fix "jobserver unavailable" warning

use ${MAKE} so the make command can be properly propagated to their
children

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: disable unused-variable warning for rocksdb
Kefu Chai [Sat, 30 Jan 2016 17:58:34 +0000 (01:58 +0800)]
cmake: disable unused-variable warning for rocksdb

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agorgw: fix the signed/unsigned comparison warning
Kefu Chai [Sat, 30 Jan 2016 17:38:51 +0000 (01:38 +0800)]
rgw: fix the signed/unsigned comparison warning

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agorados: bench: fix the signed/unsigned comparison warning
Kefu Chai [Sat, 30 Jan 2016 17:37:18 +0000 (01:37 +0800)]
rados: bench: fix the signed/unsigned comparison warning

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: remove duplicated HAVE_EXECINFO_H macro
Kefu Chai [Sat, 30 Jan 2016 17:12:12 +0000 (01:12 +0800)]
cmake: remove duplicated HAVE_EXECINFO_H macro

fixes the `"HAVE_EXECINFO_H" redefined` warning

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoos/*stores: fix hidden warnings
Kefu Chai [Thu, 28 Jan 2016 10:15:26 +0000 (02:15 -0800)]
os/*stores: fix hidden warnings

the CollectionHandle variant methods are hidden by the subclasses
who do not override it. so the compiler complains. by adding
"using" statement we expose them again.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoos/bluestore: fix unsigned/signed comparision warning
Kefu Chai [Thu, 28 Jan 2016 10:14:41 +0000 (02:14 -0800)]
os/bluestore: fix unsigned/signed comparision warning

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7014 from efirs/ef_replace_coll_t_by_const_coll_t_ref
Sage Weil [Sat, 30 Jan 2016 14:04:21 +0000 (09:04 -0500)]
Merge pull request #7014 from efirs/ef_replace_coll_t_by_const_coll_t_ref

osd: reduce CPU usage by replacing coll_t by const coll_t&

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7333 from xdonghai/xdh1
Sage Weil [Sat, 30 Jan 2016 14:03:56 +0000 (09:03 -0500)]
Merge pull request #7333 from xdonghai/xdh1

osd: FileStore: modify the format of colon

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7392 from tianshan/wip-14536
Sage Weil [Sat, 30 Jan 2016 14:03:17 +0000 (09:03 -0500)]
Merge pull request #7392 from tianshan/wip-14536

rados: fix race condition in load-gen complete callback

Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoMerge pull request #7395 from xiexingguo/xxg-wip-fuse
Sage Weil [Sat, 30 Jan 2016 14:02:47 +0000 (09:02 -0500)]
Merge pull request #7395 from xiexingguo/xxg-wip-fuse

os/fusestore: add error handling

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7396 from tchaikov/wip-14537
Sage Weil [Sat, 30 Jan 2016 14:00:12 +0000 (09:00 -0500)]
Merge pull request #7396 from tchaikov/wip-14537

mon: compact full epochs also

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7402 from liewegas/wip-rados-bench
Sage Weil [Sat, 30 Jan 2016 13:59:55 +0000 (08:59 -0500)]
Merge pull request #7402 from liewegas/wip-rados-bench

rados: make rados bench metadata backward compatible

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7418 from renhwsky/renhw-wip-monmapmonitor-cleanup
Sage Weil [Sat, 30 Jan 2016 13:59:37 +0000 (08:59 -0500)]
Merge pull request #7418 from renhwsky/renhw-wip-monmapmonitor-cleanup

mon: some cleanup in MonmapMonitor.cc

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
9 years agoMerge pull request #7420 from mikulely/fix-osd-mon-exit-issue
Sage Weil [Sat, 30 Jan 2016 13:59:01 +0000 (08:59 -0500)]
Merge pull request #7420 from mikulely/fix-osd-mon-exit-issue

osd, mon: fix exit issue

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7430 from xiexingguo/xxg-wip-kstore
Sage Weil [Sat, 30 Jan 2016 13:58:35 +0000 (08:58 -0500)]
Merge pull request #7430 from xiexingguo/xxg-wip-kstore

osd: kstore: fix decode logic and add flush

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7432 from branch-predictor/bp-fix-read-bench
Sage Weil [Sat, 30 Jan 2016 13:49:33 +0000 (08:49 -0500)]
Merge pull request #7432 from branch-predictor/bp-fix-read-bench

rados: fix wrong op/object sizes in rand/seq bench

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7436 from liewegas/wip-bash
Sage Weil [Sat, 30 Jan 2016 13:48:45 +0000 (08:48 -0500)]
Merge pull request #7436 from liewegas/wip-bash

tests: qa/workunits/objectstore/test_fuse.sh: no bashism

9 years agoos/memstore: return empty list if offset overflows 7445/head
xie xingguo [Sat, 30 Jan 2016 09:02:08 +0000 (17:02 +0800)]
os/memstore: return empty list if offset overflows

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/memstore: fix wrong blocksize for statfs
xie xingguo [Sat, 30 Jan 2016 08:59:42 +0000 (16:59 +0800)]
os/memstore: fix wrong blocksize for statfs

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #7404 from sahithi-rv/Mutex
Josh Durgin [Fri, 29 Jan 2016 23:14:57 +0000 (15:14 -0800)]
Merge pull request #7404 from sahithi-rv/Mutex

rbd_fuse: replaced pthread_mutex*() functions with ceph Mutex wrapper

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoadd some cppcheck-suppress noExplicitConstructor comments 6100/head
Danny Al-Gaaf [Fri, 29 Jan 2016 16:19:33 +0000 (17:19 +0100)]
add some cppcheck-suppress noExplicitConstructor comments

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agomake ctors with one argument explicit
Danny Al-Gaaf [Thu, 28 Jan 2016 15:36:23 +0000 (16:36 +0100)]
make ctors with one argument explicit

Use explicit keyword for constructors with one argument to
prevent implicit usage as conversion functions.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agorgw/rgw_rest.cc: fix -Wsign-compare
Danny Al-Gaaf [Thu, 28 Jan 2016 12:57:01 +0000 (13:57 +0100)]
rgw/rgw_rest.cc: fix -Wsign-compare

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agotest/librados/list.cc: fix -Wsign-compare
Danny Al-Gaaf [Thu, 28 Jan 2016 12:53:23 +0000 (13:53 +0100)]
test/librados/list.cc: fix -Wsign-compare

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agotools/rbd/action/Nbd.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Thu, 28 Jan 2016 12:03:39 +0000 (13:03 +0100)]
tools/rbd/action/Nbd.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agotools/rbd/action/Journal.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Thu, 28 Jan 2016 12:03:06 +0000 (13:03 +0100)]
tools/rbd/action/Journal.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoosd/osd_types.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Thu, 28 Jan 2016 12:02:50 +0000 (13:02 +0100)]
osd/osd_types.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoos/bluestore/BlueStore.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Thu, 28 Jan 2016 12:02:32 +0000 (13:02 +0100)]
os/bluestore/BlueStore.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agolibrbd/internal.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Thu, 28 Jan 2016 12:01:54 +0000 (13:01 +0100)]
librbd/internal.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agolibrbd/LibrbdAdminSocketHook.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Thu, 28 Jan 2016 12:01:21 +0000 (13:01 +0100)]
librbd/LibrbdAdminSocketHook.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agojournal/JournalMetadata.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Thu, 28 Jan 2016 12:00:55 +0000 (13:00 +0100)]
journal/JournalMetadata.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agotest/osd/RadosModel.h: fix class member hiding member from base
Danny Al-Gaaf [Mon, 28 Sep 2015 14:05:12 +0000 (16:05 +0200)]
test/osd/RadosModel.h: fix class member hiding member from base

The 'done' member of derived class is hiding 'done' member from
TestOp base class. Remove 'done' from derived classes.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agorgw/rgw_rados.h: init member in ctor list
Danny Al-Gaaf [Mon, 28 Sep 2015 14:03:50 +0000 (16:03 +0200)]
rgw/rgw_rados.h: init member in ctor list

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agorgw/rgw_orphan.h: init member in ctor init list instead of body
Danny Al-Gaaf [Thu, 28 Jan 2016 10:56:25 +0000 (11:56 +0100)]
rgw/rgw_orphan.h: init member in ctor init list instead of body

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agorgw/rgw_common.h: init members in ctor init list instead of body
Danny Al-Gaaf [Thu, 28 Jan 2016 10:52:45 +0000 (11:52 +0100)]
rgw/rgw_common.h: init members in ctor init list instead of body

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agocommon/RWLock.h: init member in ctor init list
Danny Al-Gaaf [Thu, 28 Jan 2016 10:48:39 +0000 (11:48 +0100)]
common/RWLock.h: init member in ctor init list

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agosrc/ceph_fuse.cc: init members in ctor
Danny Al-Gaaf [Mon, 28 Sep 2015 13:41:20 +0000 (15:41 +0200)]
src/ceph_fuse.cc: init members in ctor

There is no need to call parent class ctor directly in
ctor init list. Instead init some missing members.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agotest/librbd/fsx.cc: clarify calculation precedence for '&' and '?'
Danny Al-Gaaf [Mon, 28 Sep 2015 13:39:55 +0000 (15:39 +0200)]
test/librbd/fsx.cc: clarify calculation precedence for '&' and '?'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoMergeDiff.cc: close 'sd' correctly at the end of do_merge_diff()
Danny Al-Gaaf [Thu, 28 Jan 2016 10:46:08 +0000 (11:46 +0100)]
MergeDiff.cc: close 'sd' correctly at the end of do_merge_diff()

Fix for:

CID 1265562 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_handle: Handle variable sd going out of scope leaks the handle.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agotest/encoding/ceph_dencoder.cc: fix null pointer deref
Danny Al-Gaaf [Fri, 25 Sep 2015 07:00:22 +0000 (09:00 +0200)]
test/encoding/ceph_dencoder.cc: fix null pointer deref

Fix for:

test/encoding/ceph_dencoder.cc:452:11: warning: Called C++ object pointer is null
      if (den->is_deterministic())
          ^~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agosrc/mds/MDSRank.cc: remove delete calls from handle_asok_command()
Danny Al-Gaaf [Wed, 23 Sep 2015 22:51:30 +0000 (00:51 +0200)]
src/mds/MDSRank.cc: remove delete calls from handle_asok_command()

The allocated 'Formatter' passed to the function should be
freed by the caller to avoid missusage.

If handle_asok_command() free's the pointer to 'Formatter' to pass
an indication of an error back to the caller, it should have at least
set the pointer to NULL to work anyway.

Fix for:

CID 1316253 (#1 of 1): Use after free (USE_AFTER_FREE)
 deref_arg: Calling flush dereferences freed pointer f. (The dereference
 happens because this is a virtual function call.)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agorgw/rgw_rados.cc: close resource leak in error case
Danny Al-Gaaf [Wed, 23 Sep 2015 13:26:12 +0000 (15:26 +0200)]
rgw/rgw_rados.cc: close resource leak in error case

Fix for:

CID 1297867 (#1 of 1): Resource leak (RESOURCE_LEAK)
 alloc_arg: put_obj_init allocates memory that is stored into
  out_stream_req.
 leaked_storage: Variable out_stream_req going out of scope leaks
  the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoauth/Crypto.cc: close theoretical memory leak
Danny Al-Gaaf [Wed, 23 Sep 2015 13:01:56 +0000 (15:01 +0200)]
auth/Crypto.cc: close theoretical memory leak

Fix for:

CID 1296382 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable ckh going out of scope leaks the storage
 it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoos/bluestore/BlueStore.cc: fix UNINIT_CTOR in BlueStore
Danny Al-Gaaf [Thu, 28 Jan 2016 10:33:30 +0000 (11:33 +0100)]
os/bluestore/BlueStore.cc: fix UNINIT_CTOR in BlueStore

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agomon/OSDMonitor.h: fix UNINIT_CTOR
Danny Al-Gaaf [Wed, 23 Sep 2015 12:27:15 +0000 (14:27 +0200)]
mon/OSDMonitor.h: fix UNINIT_CTOR

Remove unused variable 'CephContext *cct'.

Fix for:

CID 1322818 (#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.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agobluestore/bluestore_types.h: fix UNINIT_CTOR warning
Danny Al-Gaaf [Thu, 28 Jan 2016 10:29:04 +0000 (11:29 +0100)]
bluestore/bluestore_types.h: fix UNINIT_CTOR warning

Fix for:

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

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agomsg/simple/Pipe.cc: silence cppcheck warning about reassign before use
Danny Al-Gaaf [Wed, 23 Sep 2015 11:35:52 +0000 (13:35 +0200)]
msg/simple/Pipe.cc: silence cppcheck warning about reassign before use

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agomon/PGMonitor.cc: return error instead of '0' from dump_stuck_pg_stats()
Danny Al-Gaaf [Thu, 28 Jan 2016 10:26:39 +0000 (11:26 +0100)]
mon/PGMonitor.cc: return error instead of '0' from dump_stuck_pg_stats()

Fix for:

[src/mon/PGMonitor.cc:1667] -> [src/mon/PGMonitor.cc:1669]: (performance)
 Variable 'r' is reassigned a value before the old one has been used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agomon/PGMonitor.cc: assign result directly
Danny Al-Gaaf [Wed, 23 Sep 2015 09:52:27 +0000 (11:52 +0200)]
mon/PGMonitor.cc: assign result directly

Fix for:

[src/mon/PGMonitor.cc:1514] -> [src/mon/PGMonitor.cc:1515]: (performance)
 Variable 'pool' is reassigned a value before the old one has been used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agotest_crc32c.cc: close memory leak, free 'b' after malloc
Danny Al-Gaaf [Tue, 22 Sep 2015 21:35:32 +0000 (23:35 +0200)]
test_crc32c.cc: close memory leak, free 'b' after malloc

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoglobal_init.cc: add tag for cppcheck to suppress intentional memleak
Danny Al-Gaaf [Tue, 22 Sep 2015 21:31:56 +0000 (23:31 +0200)]
global_init.cc: add tag for cppcheck to suppress intentional memleak

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agotools/cephfs/DataScan.cc: fix expression
Danny Al-Gaaf [Thu, 17 Sep 2015 15:15:38 +0000 (17:15 +0200)]
tools/cephfs/DataScan.cc: fix expression

Fix for:

[src/tools/cephfs/DataScan.cc:1137] -> [src/tools/cephfs/DataScan.cc:1137]:
 (style) Same expression on both sides of '|'.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoosd/OSD.cc: fix UNINTENDED_INTEGER_DIVISION
Danny Al-Gaaf [Thu, 17 Sep 2015 15:01:17 +0000 (17:01 +0200)]
osd/OSD.cc: fix UNINTENDED_INTEGER_DIVISION

Fix for:

CID 1297883 (#1 of 1): Result is not floating-point (UNINTENDED_INTEGER_DIVISION)
 integer_division: Dividing integer expressions this->cct->_conf->osd_heartbeat_grace
 and 2, and then converting the integer quotient to type double. Any remainder,
 or fractional part of the quotient, is ignored.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agotools/rados/rados.cc: fix UNINTENDED_INTEGER_DIVISION
Danny Al-Gaaf [Thu, 17 Sep 2015 12:54:58 +0000 (14:54 +0200)]
tools/rados/rados.cc: fix UNINTENDED_INTEGER_DIVISION

Fix for:

CID 1297882 (#1 of 1): Result is not floating-point (UNINTENDED_INTEGER_DIVISION)
 integer_division: Dividing integer expressions ns and 1000000000UL, and then
 converting the integer quotient to type float. Any remainder, or fractional
 part of the quotient, is ignored.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoECBackend.cc: fix dynamic_cast error handling
Danny Al-Gaaf [Thu, 17 Sep 2015 12:39:02 +0000 (14:39 +0200)]
ECBackend.cc: fix dynamic_cast error handling

Fix for:

CID 1316232 (#1 of 1): Unchecked dynamic_cast (FORWARD_NULL)
 dynamic_cast: Dynamic cast to pointer dynamic_cast <ReplicatedPG *>(this->get_parent())
  can return NULL.
 var_deref_model: Passing null pointer dynamic_cast <ReplicatedPG *>(this->get_parent())
  to is_undersized, which dereferences it.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoman/8/ceph.rst: fix man page --admin-daemon
Danny Al-Gaaf [Thu, 17 Sep 2015 12:36:06 +0000 (14:36 +0200)]
man/8/ceph.rst: fix man page --admin-daemon

The option "--admin-socket ADMIN_SOCKET/DAEMON_NAME" was blocked
as fix for #3944, fix man page to reflect it.

Fix for make warning:

doc/man/8/ceph.rst:5: SEVERE: Duplicate ID: "cmdoption-ceph--admin-socket".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agocrush/CrushTester.cc: remove unused variable
Danny Al-Gaaf [Wed, 16 Sep 2015 12:00:57 +0000 (14:00 +0200)]
crush/CrushTester.cc: remove unused variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agorbd-replay-prep.cc: replace inefficient string::find() w/ compare()
Danny Al-Gaaf [Thu, 29 Oct 2015 05:19:49 +0000 (06:19 +0100)]
rbd-replay-prep.cc: replace inefficient string::find() w/ compare()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agocrush/CrushTester.cc: remove unused variable
Danny Al-Gaaf [Wed, 16 Sep 2015 11:57:48 +0000 (13:57 +0200)]
crush/CrushTester.cc: remove unused variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agomon/Monitor.cc: replace inefficient usage of string::find() with compare()
Danny Al-Gaaf [Wed, 16 Sep 2015 11:40:45 +0000 (13:40 +0200)]
mon/Monitor.cc: replace inefficient usage of string::find() with compare()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agomds/Server.cc: use string::compare() instead of ::find()
Danny Al-Gaaf [Thu, 28 Jan 2016 10:17:12 +0000 (11:17 +0100)]
mds/Server.cc: use string::compare() instead of ::find()

Replace inefficient use of string::find() in conditions with
string::compare().

Changed checks in handle_set_vxattr() to call find/compare
on the 'name' only once.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoceph_mon.cc: replace string::find() with compare()
Danny Al-Gaaf [Wed, 16 Sep 2015 09:11:13 +0000 (11:11 +0200)]
ceph_mon.cc: replace string::find() with compare()

Fix for:

[src/ceph_mon.cc:396]: (performance) Inefficient usage of string::find()
 in condition; string::compare() would be faster.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agotools/rados/rados.cc: fix race condition in load-gen complete callback 7392/head
Tianshan Qu [Thu, 28 Jan 2016 06:38:09 +0000 (14:38 +0800)]
tools/rados/rados.cc: fix race condition in load-gen complete callback

Fixes: #14536
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
9 years agoMerge pull request #6131 from rzarzynski/wip-admincreds-in-s3-keystone
Yehuda Sadeh [Fri, 29 Jan 2016 17:28:41 +0000 (09:28 -0800)]
Merge pull request #6131 from rzarzynski/wip-admincreds-in-s3-keystone

rgw: support admin credentials in S3-related Keystone authentication.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: support admin credentials in S3-related Keystone authentication. 6131/head
Radoslaw Zarzynski [Fri, 29 Jan 2016 11:14:41 +0000 (12:14 +0100)]
rgw: support admin credentials in S3-related Keystone authentication.

Fixes: #13302
Backport: infernalis, hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoMerge pull request #7298 from racpatel/wip-doc-rac2
Loic Dachary [Fri, 29 Jan 2016 14:44:42 +0000 (21:44 +0700)]
Merge pull request #7298 from racpatel/wip-doc-rac2

doc :- fixing image in section ERASURE CODING

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoceph_osd.cc: fix unreachable flush call 7420/head
Jiaying Ren [Fri, 29 Jan 2016 08:29:01 +0000 (16:29 +0800)]
ceph_osd.cc: fix unreachable flush call

The calling chain for generic_server_usage():

  generic_server_usage()
    ->generic_usage(true)
    ->exit(1)
  cout.flush()

any statements after generic_server_usage() would not be reached,so we
need to flush cout in generic_usage().

Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>
9 years agocmake: musl libc does not implement backtrace. Added feature check and fallback to...
John Coyle [Thu, 15 Oct 2015 02:54:05 +0000 (22:54 -0400)]
cmake: musl libc does not implement backtrace. Added feature check and fallback to libexecinfo.

Signed-off-by: John Coyle <dx9err@gmail.com>
9 years agoMerge pull request #7264 from ceph/wip-doc-RGW
Sage Weil [Fri, 29 Jan 2016 13:50:07 +0000 (08:50 -0500)]
Merge pull request #7264 from ceph/wip-doc-RGW

doc: rgw: port changes from downstream to upstream

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7244 from mikulely/fix-authtool-doc
Sage Weil [Fri, 29 Jan 2016 13:49:17 +0000 (08:49 -0500)]
Merge pull request #7244 from mikulely/fix-authtool-doc

doc: remove redundant space in ceph-authtool/monmaptool doc

9 years agodoc: Updated the RPM section for RHEL and CentOS
ritz303 [Thu, 14 Jan 2016 18:40:19 +0000 (12:40 -0600)]
doc: Updated the RPM section for RHEL and CentOS

Fixes: #10245
Signed-off-by: Aron Gunn <ritz_303@yahoo.com>
9 years agoMerge pull request #7027 from mathslinux/fix-s3-csharp-doc
Sage Weil [Fri, 29 Jan 2016 13:46:47 +0000 (08:46 -0500)]
Merge pull request #7027 from mathslinux/fix-s3-csharp-doc

doc: fix S3 C# example

9 years agoMerge pull request #7000 from zhouyuan/fix_cache_tier_doc
Sage Weil [Fri, 29 Jan 2016 13:46:15 +0000 (08:46 -0500)]
Merge pull request #7000 from zhouyuan/fix_cache_tier_doc

doc: fix misleading configuration guide on cache tiering

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6930 from wido/rgw-key-docs
Sage Weil [Fri, 29 Jan 2016 13:45:16 +0000 (08:45 -0500)]
Merge pull request #6930 from wido/rgw-key-docs

doc: use 'ceph auth get-or-create' for creating RGW keyring

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7384 from wido/mirroring
Sage Weil [Fri, 29 Jan 2016 13:43:31 +0000 (08:43 -0500)]
Merge pull request #7384 from wido/mirroring

doc: script and guidelines for mirroring Ceph

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>