]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/log
ceph.git
11 years agolibrbd/AioRequest.h: fix UNINIT_CTOR 4000/head
Danny Al-Gaaf [Sat, 14 Mar 2015 00:16:31 +0000 (01:16 +0100)]
librbd/AioRequest.h: fix UNINIT_CTOR

Fix for:

CID 1274319: Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member m_object_state is not
 initialized in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agokv_flat_btree_async.h: fix some UNINIT_CTOR issues
Danny Al-Gaaf [Fri, 13 Mar 2015 23:09:22 +0000 (00:09 +0100)]
kv_flat_btree_async.h: fix some UNINIT_CTOR issues

Fix for:

CID 728000: Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member wait_ms is not initialized
 in this constructor nor in any functions that it calls.

CID 727995: Uninitialized scalar field (UNINIT_CTOR)
CID 727996: Uninitialized scalar field (UNINIT_CTOR)
CID 727998: Uninitialized scalar field (UNINIT_CTOR)
CID 727999: Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member unwritable is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member version is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member size is not initialized
  in this constructor nor in any functions that it calls.

CID 727997: Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member unwritable is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member size is not initialized
  in this constructor nor in any functions that it calls.

CID 727994: Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member version is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoshec/shec.cc: fix uninitialized scalar variable (UNINIT)
Danny Al-Gaaf [Fri, 13 Mar 2015 20:58:24 +0000 (21:58 +0100)]
shec/shec.cc: fix uninitialized scalar variable (UNINIT)

Fix for:

CID 1274311: Uninitialized scalar variable (UNINIT)
 uninit_use_in_call: Using uninitialized element of array
 dm_ids when calling shec_make_decoding_matrix.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoErasureCodeShec.cc: fix uninitialized scalar variable (UNINIT)
Danny Al-Gaaf [Fri, 13 Mar 2015 18:19:20 +0000 (19:19 +0100)]
ErasureCodeShec.cc: fix uninitialized scalar variable (UNINIT)

Fix for:
CID 1274310: Uninitialized scalar variable (UNINIT)
 6. uninit_use_in_call: Using uninitialized element of
 array erased when calling shec_make_decoding_matrix.

CID 1274312: Uninitialized scalar variable (UNINIT)
 24. uninit_use_in_call: Using uninitialized element of
 array dm_ids when calling shec_make_decoding_matrix.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoutime.h: fix OVERFLOW_BEFORE_WIDEN
Danny Al-Gaaf [Fri, 13 Mar 2015 16:21:02 +0000 (17:21 +0100)]
utime.h: fix OVERFLOW_BEFORE_WIDEN

CID 1274295 (#1 of 1): Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
 overflow_before_widen: Potentially overflowing expression
 usec * 1000 with type int (32 bits, signed) is evaluated using
 32-bit arithmetic before being used in a context which expects
 an expression of type uint64_t (64 bits, unsigned).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoblkdev.cc: fix STRING_OVERFLOW
Danny Al-Gaaf [Fri, 13 Mar 2015 12:50:04 +0000 (13:50 +0100)]
blkdev.cc: fix STRING_OVERFLOW

Fix for:

CID 1258439 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW)
 2. fixed_size_dest: You might overrun the 4096 byte fixed-size
    string devname by copying dev + 5 without checking the length.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agotest_async_driver.cc: fix NEGATIVE_RETURNS
Danny Al-Gaaf [Fri, 13 Mar 2015 11:17:00 +0000 (12:17 +0100)]
test_async_driver.cc: fix NEGATIVE_RETURNS

Fix for:

CID 1254374 (#1 of 1): Argument cannot be negative (NEGATIVE_RETURNS)
1. negative_return_fn: Function socket(2, SOCK_STREAM, 0) returns a
   negative number.
2. var_assign: Assigning: signed variable connect_sd = socket.
3. negative_returns: connect_sd is passed to a parameter that cannot
   be negative.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agocls/rgw/cls_rgw_types.cc: fix RESOURCE_LEAK
Danny Al-Gaaf [Thu, 12 Mar 2015 22:21:54 +0000 (23:21 +0100)]
cls/rgw/cls_rgw_types.cc: fix RESOURCE_LEAK

Call push_back() for the generated entry object.

Fix for:

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

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoosdc/Striper.cc: fix another OVERFLOW_BEFORE_WIDEN
Danny Al-Gaaf [Thu, 12 Mar 2015 21:56:22 +0000 (22:56 +0100)]
osdc/Striper.cc: fix another OVERFLOW_BEFORE_WIDEN

Fix for:

CID 1247720 (#1 of 1): Unintentional integer overflow
(OVERFLOW_BEFORE_WIDEN)
 overflow_before_widen: Potentially overflowing expression
 stripe_count * stripe_unit with type unsigned int (32 bits,
 unsigned) is evaluated using 32-bit arithmetic before being
 used in a context which expects an expression of type
 uint64_t (64 bits, unsigned).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoosdc/Striper.cc: fix OVERFLOW_BEFORE_WIDEN
Danny Al-Gaaf [Thu, 12 Mar 2015 21:53:21 +0000 (22:53 +0100)]
osdc/Striper.cc: fix OVERFLOW_BEFORE_WIDEN

Fix for:
CID 1247719 (#1 of 1): Unintentional integer overflow
(OVERFLOW_BEFORE_WIDEN)
 overflow_before_widen: Potentially overflowing expression
 stripe_count * object_size with type unsigned int (32 bits,
 unsigned) is evaluated using 32-bit arithmetic before being
 used in a context which expects an expression of type
 uint64_t (64 bits, unsigned).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agotest_librbd.cc: fix USE_AFTER_FREE
Danny Al-Gaaf [Thu, 12 Mar 2015 20:55:33 +0000 (21:55 +0100)]
test_librbd.cc: fix USE_AFTER_FREE

Fix for:
CID 1251462 (#1 of 1): Use after free (USE_AFTER_FREE)
1. alias: Assigning: cur_name = names. Now both point to the same storage.
3. freed_arg: free frees names.
6. pass_freed_arg: Passing freed pointer cur_name as an argument to printf.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoauth/Auth.h: mark constructor as explicit
Danny Al-Gaaf [Thu, 12 Mar 2015 16:47:57 +0000 (17:47 +0100)]
auth/Auth.h: mark constructor as explicit

Fix for cppcheck warning:
 Struct 'AuthAuthorizer' has a constructor with 1 argument that is
 not explicit. Such constructors should in general be explicit for
 type safety reasons. Using the explicit keyword in the constructor
 means some mistakes when using the class can be avoided.

For more information check:
http://www.tantalon.com/pete/cppopt/asyougo.htm#UseExplicitConstructors

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agosync_filesystem.h: fix unreachable code
Danny Al-Gaaf [Thu, 12 Mar 2015 16:38:27 +0000 (17:38 +0100)]
sync_filesystem.h: fix unreachable code

Fix for:

CID 1264460 (#1 of 1): Structurally dead code (UNREACHABLE)
unreachable: This code cannot be reached: sync();

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoMerge pull request #3965 from linuxbox2/xio-fixes
Kefu Chai [Thu, 12 Mar 2015 09:19:39 +0000 (17:19 +0800)]
Merge pull request #3965 from linuxbox2/xio-fixes

xio: Xio fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
11 years agoFix XioLoopbackConnection Lifecycle. 3965/head
Matt Benjamin [Wed, 11 Mar 2015 17:42:37 +0000 (13:42 -0400)]
Fix XioLoopbackConnection Lifecycle.

Since XioLoopbackConnection is a RefCountedObject, it can't be
an expanded member of XioMessenger.

Fixes cleanup/shutdown errors.

Signed-off-by: Matt Benjamin <matt@cohortfs.com>
11 years agoFix CMake build w/o RADOSGW.
Matt Benjamin [Tue, 10 Mar 2015 18:10:54 +0000 (14:10 -0400)]
Fix CMake build w/o RADOSGW.

Just fixes linkage of dencoder in test.  Fix the false assumption
that cls is only used if WITH_RADOSGW.

Signed-off-by: Matt Benjamin <matt@cohortfs.com>
11 years agoMerge pull request #3625 from majianpeng/objectcacher
Jason Dillaman [Wed, 11 Mar 2015 15:53:43 +0000 (11:53 -0400)]
Merge pull request #3625 from majianpeng/objectcacher

Bugs fix about ObjectCacher

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
11 years agoMerge pull request #3881 from ceph/wip-da-SCA-20150304
Kefu Chai [Wed, 11 Mar 2015 15:52:16 +0000 (23:52 +0800)]
Merge pull request #3881 from ceph/wip-da-SCA-20150304

SCA fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
11 years agotools/rados/rados.cc: init some vars in constructor 3881/head
Danny Al-Gaaf [Thu, 5 Mar 2015 06:15:30 +0000 (07:15 +0100)]
tools/rados/rados.cc: init some vars in constructor

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agorgw_rados: don't assign value to parameter
Danny Al-Gaaf [Thu, 5 Mar 2015 05:47:57 +0000 (06:47 +0100)]
rgw_rados: don't assign value to parameter

Fix for cppcheck issue:
Assignment of function parameter has no effect outside the function.

Remove assignment to need_to_wait before exit.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agosrc/msg/xio/*: reduce scope of some vars
Danny Al-Gaaf [Thu, 5 Mar 2015 05:36:15 +0000 (06:36 +0100)]
src/msg/xio/*: reduce scope of some vars

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agorgw_quota.cc: init variables in constructor
Danny Al-Gaaf [Thu, 5 Mar 2015 05:35:27 +0000 (06:35 +0100)]
rgw_quota.cc: init variables in constructor

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoTestErasureCodeShec_thread.cc: reduce scope of var
Danny Al-Gaaf [Thu, 5 Mar 2015 05:23:16 +0000 (06:23 +0100)]
TestErasureCodeShec_thread.cc: reduce scope of var

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoObjectStoreTransactionBenchmark.cc: reduce scope of var
Danny Al-Gaaf [Thu, 5 Mar 2015 05:22:53 +0000 (06:22 +0100)]
ObjectStoreTransactionBenchmark.cc: reduce scope of var

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoobjectstore/store_test.cc: reduce scope of variable
Danny Al-Gaaf [Thu, 5 Mar 2015 05:22:18 +0000 (06:22 +0100)]
objectstore/store_test.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agorgw_rados.cc: reduce scope of variable
Danny Al-Gaaf [Thu, 5 Mar 2015 05:21:35 +0000 (06:21 +0100)]
rgw_rados.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agorgw_rados.cc: remove unused string vars
Danny Al-Gaaf [Thu, 5 Mar 2015 05:20:46 +0000 (06:20 +0100)]
rgw_rados.cc: remove unused string vars

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agolibrbd/internal.cc: reduce scope of some variables
Danny Al-Gaaf [Thu, 5 Mar 2015 05:18:04 +0000 (06:18 +0100)]
librbd/internal.cc: reduce scope of some variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agolibrbd/ObjectMap.cc: reduce scope of variable, prevent redef
Danny Al-Gaaf [Thu, 5 Mar 2015 05:16:06 +0000 (06:16 +0100)]
librbd/ObjectMap.cc: reduce scope of variable, prevent redef

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoErasureCodeShec::minimum_to_decode: reduce scope of variables
Danny Al-Gaaf [Thu, 5 Mar 2015 05:15:26 +0000 (06:15 +0100)]
ErasureCodeShec::minimum_to_decode: reduce scope of variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agorgw/rgw_op.cc: fix potential null-deref in strcmp()
Danny Al-Gaaf [Thu, 5 Mar 2015 05:04:37 +0000 (06:04 +0100)]
rgw/rgw_op.cc: fix potential null-deref in strcmp()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agorgw_main.cc: fix null-deref in case get_storage() fails
Danny Al-Gaaf [Thu, 5 Mar 2015 04:26:48 +0000 (05:26 +0100)]
rgw_main.cc: fix null-deref in case get_storage() fails

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agomds/MDS.cc: add missing asserts to check return values
Danny Al-Gaaf [Thu, 5 Mar 2015 04:07:46 +0000 (05:07 +0100)]
mds/MDS.cc: add missing asserts to check return values

Change existing asserts in set_up_admin_socket() to
check (VAR == 0).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoTestErasureCodeShec_all.cc: fix sprintf specifier
Danny Al-Gaaf [Thu, 5 Mar 2015 04:06:32 +0000 (05:06 +0100)]
TestErasureCodeShec_all.cc: fix sprintf specifier

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agorgw: use static_cast instead of c-style cast
Danny Al-Gaaf [Thu, 5 Mar 2015 02:48:01 +0000 (03:48 +0100)]
rgw: use static_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoosd/ReplicatedPG.cc: use static_cast instead of c-style cast
Danny Al-Gaaf [Thu, 5 Mar 2015 02:47:31 +0000 (03:47 +0100)]
osd/ReplicatedPG.cc: use static_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoTestErasureCodeShec_thread.cc: use static_cast instead of c-style
Danny Al-Gaaf [Thu, 5 Mar 2015 02:45:45 +0000 (03:45 +0100)]
TestErasureCodeShec_thread.cc: use static_cast instead of c-style

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoitest/msgr/test_msgr.cc: prefer ++operator for non-primitive iter
Danny Al-Gaaf [Wed, 4 Mar 2015 20:23:51 +0000 (21:23 +0100)]
itest/msgr/test_msgr.cc: prefer ++operator for non-primitive iter

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoMerge pull request #3666 from xroche/master
Yan, Zheng [Wed, 11 Mar 2015 12:30:26 +0000 (20:30 +0800)]
Merge pull request #3666 from xroche/master

Added ceph_flock() to libcephfs.

11 years agoMerge pull request #3920 from rajukv/xio-bugfix
Kefu Chai [Wed, 11 Mar 2015 06:37:57 +0000 (14:37 +0800)]
Merge pull request #3920 from rajukv/xio-bugfix

XIO: Handle requeue case of XIO messages

Reviewed-by: Kefu Chai <kchai@redhat.com>
11 years agoXIO: Handle requeue case of XIO messages 3920/head
Raju Kurunkad [Tue, 10 Mar 2015 07:58:28 +0000 (13:28 +0530)]
XIO: Handle requeue case of XIO messages

If we are not able to send the XIO message using xio_send_msg(),
remove the XIO message from the send Q, before queuing it to the resend
Q. Otherwise, boost will generate a assert.

Signed-off-by: Raju Kurunkad <raju.kurunkad@sandisk.com>
11 years agodoc/release-notes: v0.80.8 and .9 changelogs
Sage Weil [Tue, 10 Mar 2015 19:32:47 +0000 (12:32 -0700)]
doc/release-notes: v0.80.8 and .9 changelogs

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #3871 from dachary/wip-install-deps
Ken Dreyer [Tue, 10 Mar 2015 16:41:09 +0000 (10:41 -0600)]
Merge pull request #3871 from dachary/wip-install-deps

tests: install-deps.sh install EPEL and RHEL Optional

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
11 years agoMerge pull request #3887 from stiopaa1/feature10891
Kefu Chai [Tue, 10 Mar 2015 14:16:29 +0000 (22:16 +0800)]
Merge pull request #3887 from stiopaa1/feature10891

mon: add "osd pool get $pool all" command

Reviewed-by: Kefu Chai <kchai@redhat.com>
11 years agoMerge remote-tracking branch 'gh/hammer'
Sage Weil [Tue, 10 Mar 2015 13:24:59 +0000 (06:24 -0700)]
Merge remote-tracking branch 'gh/hammer'

Conflicts:
src/gmock

11 years agotests: install-deps.sh install EPEL and RHEL Optional 3871/head
Loic Dachary [Wed, 4 Mar 2015 12:47:37 +0000 (13:47 +0100)]
tests: install-deps.sh install EPEL and RHEL Optional

On CentOS and RHEL, some dependencies come from EPEL.

Always enable RHEL Optional repository for RHEL as packages such as
packages such as libatomic_ops-devel or libedit-devel are only found
there in RHEL 6.5.

http://tracker.ceph.com/issues/11061 Refs: #11061

Signed-off-by: Loic Dachary <ldachary@redhat.com>
11 years agoMerge pull request #3901 from dachary/wip-10922-ceph-deploy-documentation
Danny Al-Gaaf [Tue, 10 Mar 2015 09:53:56 +0000 (10:53 +0100)]
Merge pull request #3901 from dachary/wip-10922-ceph-deploy-documentation

doc: preparing a device implies activate

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoMerge pull request #3907 from dachary/wip-test-delays
Danny Al-Gaaf [Tue, 10 Mar 2015 09:51:05 +0000 (10:51 +0100)]
Merge pull request #3907 from dachary/wip-test-delays

tests: increase the delay waiting for a cluster event

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoMerge pull request #3914 from ktdreyer/wip-doc-rgw-apache-log-perms
Danny Al-Gaaf [Tue, 10 Mar 2015 09:47:51 +0000 (10:47 +0100)]
Merge pull request #3914 from ktdreyer/wip-doc-rgw-apache-log-perms

doc: rm Apache log permissions instructions

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoMerge pull request #3917 from dachary/wip-rhel6-doc
Kefu Chai [Tue, 10 Mar 2015 08:02:12 +0000 (16:02 +0800)]
Merge pull request #3917 from dachary/wip-rhel6-doc

doc: rhel6.5 is rhel6

Reviewed-by: Kefu Chai <kchai@redhat.com>
11 years agoMerge pull request #3890 from XunleiGFS/fix_C_TwoContexts
Kefu Chai [Tue, 10 Mar 2015 04:16:03 +0000 (12:16 +0800)]
Merge pull request #3890 from XunleiGFS/fix_C_TwoContexts

osdc: fix a memory leak in C_TwoContexts

Reviewed-by: Kefu Chai <kchai@redhat.com>
11 years agoMerge pull request #3845 from ceph/wip-wn-rgw-hammer
Sage Weil [Tue, 10 Mar 2015 02:49:21 +0000 (19:49 -0700)]
Merge pull request #3845 from ceph/wip-wn-rgw-hammer

Wip wn rgw hammer

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #3913 from yuyuyu101/wip-async-fix-throttle-deadlock
Sage Weil [Tue, 10 Mar 2015 02:48:11 +0000 (19:48 -0700)]
Merge pull request #3913 from yuyuyu101/wip-async-fix-throttle-deadlock

Wip async fix throttle deadlock

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #3911 from athanatos/wip-11057
Sage Weil [Tue, 10 Mar 2015 02:43:02 +0000 (19:43 -0700)]
Merge pull request #3911 from athanatos/wip-11057

ReplicatedPG: block write on degraded object if there are waiters

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agodoc: rhel6.5 is rhel6 3917/head
Loic Dachary [Tue, 10 Mar 2015 01:06:10 +0000 (02:06 +0100)]
doc: rhel6.5 is rhel6

RHEL 6.5 is actually  http://ceph.com/rpm-giant/rhel6/

Signed-off-by: Loic Dachary <ldachary@redhat.com>
11 years agoMerge pull request #3909 from dachary/wip-11068-debian-jessie
Loic Dachary [Mon, 9 Mar 2015 22:40:04 +0000 (23:40 +0100)]
Merge pull request #3909 from dachary/wip-11068-debian-jessie

deb: add zlib1g-dev to Build-Depends for Debian/jessie

Reviewed-by: Yann Dupont <yann@objoo.org>
11 years agomon/OSDMonitor: refactor and new key "all" for osd pool get command 3887/head
Michal Jarzabek [Thu, 5 Mar 2015 18:01:05 +0000 (18:01 +0000)]
mon/OSDMonitor: refactor and new key "all" for osd pool get command

This will only output all the values applicable to a given type of pool.
So for example for a pool that is not a tier pool values like HIT_SET_TYPE,
HIT_SET_PERIOD, HIT_SET_COUNT etc. will be ignored.

Fixes: #10891
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
11 years agodoc: rm Apache log permissions instructions 3914/head
Ken Dreyer [Mon, 9 Mar 2015 19:12:25 +0000 (13:12 -0600)]
doc: rm Apache log permissions instructions

On all distros, Apache should be able to write to its own log directory.
If not, that is a severe distro bug that should be reported/fixed.

Remove the references to running "chown" on /var/log/httpd or
/var/log/apache2.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
11 years agodoc/release-notes: update notes for v0.80.9
Sage Weil [Mon, 9 Mar 2015 17:56:11 +0000 (10:56 -0700)]
doc/release-notes: update notes for v0.80.9

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #3608 from guangyy/wip-rgw-quota-threads
Yehuda Sadeh [Mon, 9 Mar 2015 16:39:58 +0000 (09:39 -0700)]
Merge pull request #3608 from guangyy/wip-rgw-quota-threads

rgw: make quota/gc thread configurable for starting

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
11 years agoMerge pull request #3795 from rzarzynski/wip-10938
Yehuda Sadeh [Mon, 9 Mar 2015 16:37:02 +0000 (09:37 -0700)]
Merge pull request #3795 from rzarzynski/wip-10938

rgw: improve support for X-Timestamp header of Swift API

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
11 years agoEvent: Let external events ran without lock/unlock 3913/head
Haomai Wang [Mon, 9 Mar 2015 16:26:22 +0000 (00:26 +0800)]
Event: Let external events ran without lock/unlock

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAsyncConnection: Don't block process when throttle is full
Haomai Wang [Mon, 9 Mar 2015 16:20:24 +0000 (00:20 +0800)]
AsyncConnection: Don't block process when throttle is full

If this connection is blocking on throttler and another worker thread
try to acquire this connection's lock, it will deadlock.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoMerge pull request #3668 from ceph/wip-compact-container
Gregory Farnum [Mon, 9 Mar 2015 16:17:40 +0000 (12:17 -0400)]
Merge pull request #3668 from ceph/wip-compact-container

Optimize memory usage of MDS

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
11 years agoMerge pull request #3908 from gravitystorm/patch-2
Loic Dachary [Mon, 9 Mar 2015 15:35:28 +0000 (16:35 +0100)]
Merge pull request #3908 from gravitystorm/patch-2

fix typo

Reviewed-by: Loic Dachary <ldachary@redhat.com>
11 years agodeb: add zlib1g-dev to Build-Depends for Debian/jessie 3909/head
Loic Dachary [Mon, 9 Mar 2015 14:41:21 +0000 (15:41 +0100)]
deb: add zlib1g-dev to Build-Depends for Debian/jessie

The zlib1g-dev is installed indirectly for Ubuntu 12.04 or Ubuntu 14.04
but it is only suggested in Debian/jessie. Adding it to the
Build-depends is redundant and harmless for Ubuntu and resolves the
missing dependency for Debian.

http://tracker.ceph.com/issues/11068 Fixes: #11068

Signed-off-by: Loic Dachary <ldachary@redhat.com>
11 years agodoc: fix typo 3908/head
Andy Allan [Mon, 9 Mar 2015 14:41:18 +0000 (14:41 +0000)]
doc: fix typo

Signed-off-by: Andy Allan <github@gravitystorm.co.uk>
11 years agoMerge pull request #3882 from dachary/wip-install-deps-alternatives
Loic Dachary [Mon, 9 Mar 2015 12:53:25 +0000 (13:53 +0100)]
Merge pull request #3882 from dachary/wip-install-deps-alternatives

install-deps.sh: strip | in the list of packages

Reviewed-by: Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #3897 from ceph/wip-11015
Sage Weil [Mon, 9 Mar 2015 12:41:21 +0000 (05:41 -0700)]
Merge pull request #3897 from ceph/wip-11015

crush: fix compilation of strwa2 buckets (fixes 11015)

Reviewed-by: Loic Dachary <ldachary@redhat.com>
11 years agoMerge pull request #3899 from yuyuyu101/hammer-test
Sage Weil [Mon, 9 Mar 2015 12:40:49 +0000 (05:40 -0700)]
Merge pull request #3899 from yuyuyu101/hammer-test

TestAsyncDriver: Fix typo in ceph_test_async_driver

11 years agoMerge pull request #3906 from dachary/wip-mailmap
Loic Dachary [Mon, 9 Mar 2015 12:28:17 +0000 (13:28 +0100)]
Merge pull request #3906 from dachary/wip-mailmap

mailmap: David Zhang affiliation

Reviewed-by: Zhi (David) Zhang <zhangz@yahoo-inc.com>
11 years agotests: increase the delay waiting for a cluster event 3907/head
Loic Dachary [Mon, 9 Mar 2015 11:56:31 +0000 (12:56 +0100)]
tests: increase the delay waiting for a cluster event

In some cases the machine running tests may be slow enough that it takes
more than a minute for an OSD to come up. It only happens rarely and
changing the wait period from 60 seconds to 120 seconds. Is so slow
that it takes more than 2 minutes to bring an OSD up, chances are a lot
more will go wrong anyway.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
11 years agomailmap: Zhi (David) Zhang affiliation 3906/head
Loic Dachary [Mon, 9 Mar 2015 10:46:20 +0000 (11:46 +0100)]
mailmap: Zhi (David) Zhang affiliation

And name normalization

Reviewed-by: Zhi (David) Zhang <zhangz@yahoo-inc.com>
Signed-off-by: Loic Dachary <ldachary@redhat.com>
11 years agodoc: preparing a device implies activate 3901/head
Loic Dachary [Sat, 7 Mar 2015 23:18:24 +0000 (00:18 +0100)]
doc: preparing a device implies activate

http://tracker.ceph.com/issues/10922 Fixes: #10922

Signed-off-by: Loic Dachary <ldachary@redhat.com>
11 years agolibrbd: Add a paramter:purge_on_error in ImageCtx::invalidate_cache(). 3625/head
Jianpeng Ma [Mon, 9 Mar 2015 06:23:23 +0000 (14:23 +0800)]
librbd: Add a paramter:purge_on_error in ImageCtx::invalidate_cache().

If bh_write met error, it will try again. For closing image, if met this
issue, it will trigger a assert:
>>2015-02-03 15:22:49.198292 7ff62d537800 -1 osdc/ObjectCacher.cc: In
function 'ObjectCacher::~ObjectCacher()' thread 7ff62d537800 time
>>2015-02-03 15:22:49.195927osdc/ObjectCacher.cc: 551: FAILED
>>assert(i->empty())

Now add purge_on_error, when shutdown_cache it set true.
In ImageCtx::invalidate_cache, if met error and purge_on_error is true,
purge the dirty bh.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
11 years agolibrbd: Remvoe unused func ImageCtx::read_from_cache.
Jianpeng Ma [Thu, 5 Feb 2015 03:28:50 +0000 (11:28 +0800)]
librbd: Remvoe unused func ImageCtx::read_from_cache.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
11 years agoosdc: clean up code in ObjectCacher::Object::map_write
Jianpeng Ma [Thu, 5 Feb 2015 03:03:10 +0000 (11:03 +0800)]
osdc: clean up code in ObjectCacher::Object::map_write

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
11 years agoosdc: Don't pass mutex into ObjectCacher::_wait_for_write.
Jianpeng Ma [Thu, 5 Feb 2015 02:13:06 +0000 (10:13 +0800)]
osdc: Don't pass mutex into ObjectCacher::_wait_for_write.

Because the mutex is the same as ObjectCacher::lock.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
11 years agoosdc: After write try merge bh.
Jianpeng Ma [Mon, 2 Mar 2015 03:23:44 +0000 (11:23 +0800)]
osdc: After write try merge bh.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
11 years agoosdc: Make last missing bh to wake up the reader.
Jianpeng Ma [Mon, 2 Mar 2015 03:36:24 +0000 (11:36 +0800)]
osdc: Make last missing bh to wake up the reader.

Avoid wakeup early and wait again.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
11 years agoosdc: For trust_enoent is true, there is only one extent.
Jianpeng Ma [Fri, 6 Feb 2015 01:53:36 +0000 (09:53 +0800)]
osdc: For trust_enoent is true, there is only one extent.

Now the judgement only in conditon which will return -ENOENT.
But o->exists don't depend on the extent size. It only depend on
trust_enoent. So move this judgement at the first of _readx().
Make this bug ASAP occur.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
11 years agoosdc: In realease(Object *) make the error bh as clean and later remove.
Jianpeng Ma [Tue, 3 Feb 2015 06:59:05 +0000 (14:59 +0800)]
osdc: In realease(Object *) make the error bh as clean and later remove.

Avoid met this assert error:
  osdc/ObjectCacher.cc: 551: FAILED assert(i->empty())

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
11 years agoosdc: In _readx() only no error can tidy read result.
Jianpeng Ma [Tue, 3 Feb 2015 06:46:39 +0000 (14:46 +0800)]
osdc: In _readx() only no error can tidy read result.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
11 years agoMerge pull request #3874 from ceph/wip-10828
Sage Weil [Mon, 9 Mar 2015 04:04:19 +0000 (21:04 -0700)]
Merge pull request #3874 from ceph/wip-10828

objecter: fix linger cancel link bug 10828

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
11 years agoMerge pull request #3900 from dachary/wip-recursive-submodules
Loic Dachary [Sat, 7 Mar 2015 17:30:55 +0000 (18:30 +0100)]
Merge pull request #3900 from dachary/wip-recursive-submodules

autogen.sh: do not submodule --force if git does not support it

11 years agoautogen.sh: do not submodule --force if git does not support it 3900/head
Loic Dachary [Sat, 7 Mar 2015 16:11:58 +0000 (17:11 +0100)]
autogen.sh: do not submodule --force if git does not support it

Signed-off-by: Loic Dachary <ldachary@redhat.com>
11 years agoMerge pull request #3895 from dachary/wip-recursive-submodules
Loic Dachary [Sat, 7 Mar 2015 15:53:50 +0000 (16:53 +0100)]
Merge pull request #3895 from dachary/wip-recursive-submodules

doc,tests: force checkout of submodules

11 years agoTestAsyncDriver: Fix typo in ceph_test_async_driver 3899/head
Haomai Wang [Sat, 28 Feb 2015 09:42:52 +0000 (17:42 +0800)]
TestAsyncDriver: Fix typo in ceph_test_async_driver

Fix: #11058
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoReplicatedPG: block write on degraded object if there are waiters 3911/head
Samuel Just [Sat, 7 Mar 2015 02:02:25 +0000 (18:02 -0800)]
ReplicatedPG: block write on degraded object if there are waiters

Suppose we have min_size of 2 and size of 3, foo exists only on the
primary.
- block op 1 on foo due to < min_size
- start recovery on foo for replicas 1 and 2
- complete push to replica 1 (2 copies now)
- allow op 2 on foo through since we have 2 copies
- complete recovery on foo, requeue op 1

Fixes: 11057
Signed-off-by: Samuel Just <sjust@redhat.com>
11 years agocrushtool: test compilation of a rule with straw2 buckets 3897/head
Sage Weil [Sat, 7 Mar 2015 01:47:03 +0000 (17:47 -0800)]
crushtool: test compilation of a rule with straw2 buckets

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agocrush: parse alg names that include a digit
Sage Weil [Sat, 7 Mar 2015 01:43:11 +0000 (17:43 -0800)]
crush: parse alg names that include a digit

The str_p("straw2") won't parse straw2, it seems because the digit is throwing
it off.  Use the existing name rule instead which is more robust.  Note that
not constraining the alg value here is better anyway because instead of a
'cannot parse' error that is hard to debug we instead get a 'unknown alg foo'
error when doing the semantic pass.

Fixes: #11015
Signed-off-by: Sage Weil <sage@redhat.com>
11 years agotests: add Debian jessie dockerfile 3882/head
Loic Dachary [Thu, 5 Mar 2015 11:34:48 +0000 (12:34 +0100)]
tests: add Debian jessie dockerfile

Signed-off-by: Loic Dachary <ldachary@redhat.com>
11 years agotests: DEBIAN_FRONTEND=noninteractive apt-get install
Loic Dachary [Thu, 5 Mar 2015 11:17:26 +0000 (12:17 +0100)]
tests: DEBIAN_FRONTEND=noninteractive apt-get install

Go into non interactive mode when installing the compilation
dependencies, in case a package has a different default mode.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
11 years agotests: jq is not available on Ubuntu precise
Loic Dachary [Thu, 5 Mar 2015 11:06:21 +0000 (12:06 +0100)]
tests: jq is not available on Ubuntu precise

It should be installed from precise-backports but since it is not
currently used, just remove it.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
11 years agoinstall-deps.sh: strip | in the list of packages
Loic Dachary [Thu, 5 Mar 2015 10:38:18 +0000 (11:38 +0100)]
install-deps.sh: strip | in the list of packages

Alternatives were introduced lately and the | needs to be stripped from
the list of packages to install otherwise apt-get will try to install
all packages.

Signed-off-by: Yann Dupont <yann@objoo.org>
11 years agorgw: flush watch after unregistering 3845/head
Yehuda Sadeh [Thu, 5 Mar 2015 21:03:02 +0000 (13:03 -0800)]
rgw: flush watch after unregistering

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
11 years agoMerge pull request #3835 from ceph/wip-mon-datahealth-fix.hammer
Sage Weil [Sat, 7 Mar 2015 00:20:52 +0000 (16:20 -0800)]
Merge pull request #3835 from ceph/wip-mon-datahealth-fix.hammer

[hammer] mon: initialize data store stats structs to avoid weird behaviors

11 years agoMerge pull request #3615 from ceph/wip-perf-watch
John Spray [Fri, 6 Mar 2015 19:18:59 +0000 (19:18 +0000)]
Merge pull request #3615 from ceph/wip-perf-watch

Performance watching CLI

11 years agoMerge pull request #3877 from ceph/hammer-backports-hadoop
Gregory Farnum [Fri, 6 Mar 2015 17:29:22 +0000 (09:29 -0800)]
Merge pull request #3877 from ceph/hammer-backports-hadoop

Hammer backports hadoop

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
11 years agoClient: do not require successful remount when unmounting
Greg Farnum [Tue, 3 Mar 2015 06:29:10 +0000 (22:29 -0800)]
Client: do not require successful remount when unmounting

Fixes: #10982
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 71f2686252ffe29d0234cc8be7304be1450d090e)