]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoRemoving unwanted -fPIC in cflags 4683/head
Siddharth Sharma [Thu, 14 May 2015 19:38:17 +0000 (19:38 +0000)]
Removing unwanted -fPIC in cflags

9 years agoRemoving unwanted -grecord-gcc-switches , relro in cflags and adding -fPIC
Siddharth Sharma [Thu, 14 May 2015 19:11:38 +0000 (19:11 +0000)]
Removing unwanted -grecord-gcc-switches , relro in cflags and adding -fPIC

9 years agoEnable security hardening flags globally
Siddharth Sharma [Thu, 14 May 2015 18:31:09 +0000 (18:31 +0000)]
Enable security hardening flags globally

9 years agoMerge pull request #5293 from majianpeng/oprequest-markevent
Kefu Chai [Sat, 8 Aug 2015 13:42:56 +0000 (21:42 +0800)]
Merge pull request #5293 from majianpeng/oprequest-markevent

osd: Oprequest markevent

Reviewed-by: Huang Jun <hjwsm1989@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5267 from dachary/wip-12356-rados-osds-out-in
Kefu Chai [Sat, 8 Aug 2015 12:38:14 +0000 (20:38 +0800)]
Merge pull request #5267 from dachary/wip-12356-rados-osds-out-in

tests: test-erasure-code.sh/rados_osds_out_in must wait_for_clean

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #4909 from zhouyuan/rgw_doc_bucket_index
Kefu Chai [Sat, 8 Aug 2015 12:27:51 +0000 (20:27 +0800)]
Merge pull request #4909 from zhouyuan/rgw_doc_bucket_index

doc: update rgw configuration doc on bucket index sharing feature

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5500 from oritwas/wip-cmake-isa
Kefu Chai [Sat, 8 Aug 2015 04:23:23 +0000 (12:23 +0800)]
Merge pull request #5500 from oritwas/wip-cmake-isa

cmake: check for better yasm and fix isa

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: check for better yasm and fix isa 5500/head
Orit Wasserman [Fri, 24 Jul 2015 15:39:52 +0000 (17:39 +0200)]
cmake: check for better yasm and fix isa

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoceph-object-corpus: do not try to decode pre-hammer ObjectStore::Transactions
Sage Weil [Fri, 7 Aug 2015 15:08:07 +0000 (11:08 -0400)]
ceph-object-corpus: do not try to decode pre-hammer ObjectStore::Transactions

We don't understand collection_attr any more.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5510 from yuyuyu101/fix-async-fix-22
Sage Weil [Fri, 7 Aug 2015 18:17:01 +0000 (14:17 -0400)]
Merge pull request #5510 from yuyuyu101/fix-async-fix-22

AsyncConnection: Fix wrong order of local message delivering

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5512 from ddiss/rbd_initrd_no_tr
Sage Weil [Fri, 7 Aug 2015 17:49:45 +0000 (13:49 -0400)]
Merge pull request #5512 from ddiss/rbd_initrd_no_tr

rbdnamer: drop unneccessary tr usage

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agorbdnamer: drop unneccessary tr usage 5512/head
David Disseldorp [Fri, 7 Aug 2015 17:30:43 +0000 (19:30 +0200)]
rbdnamer: drop unneccessary tr usage

tr is not present by default in Dracut generated initramfs images. The
same logic can anyhow be performed via the existing sed call.

Signed-off-by: David Disseldorp <ddiss@suse.de>
9 years agoMerge pull request #5310 from ceph/wip-pipefd-leak
Sage Weil [Fri, 7 Aug 2015 16:59:39 +0000 (12:59 -0400)]
Merge pull request #5310 from ceph/wip-pipefd-leak

Wip pipefd leak

Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
9 years agoMerge pull request #5511 from ceph/wip-cxx11
Samuel Just [Fri, 7 Aug 2015 15:56:38 +0000 (08:56 -0700)]
Merge pull request #5511 from ceph/wip-cxx11

c++11 ftw

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoc++11: xlist needs a value_type for back_inserter 5511/head
Casey Bodley [Fri, 31 Jul 2015 18:32:13 +0000 (14:32 -0400)]
c++11: xlist needs a value_type for back_inserter

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoc++11: fix shared_ptr conversions to bool
Casey Bodley [Fri, 31 Jul 2015 17:36:26 +0000 (13:36 -0400)]
c++11: fix shared_ptr conversions to bool

operator bool() is marked as explicit, which prevents it from being used
directly in gtest macros

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoc++11: remove hash_namespace.h and default to std
Casey Bodley [Fri, 31 Jul 2015 15:50:57 +0000 (11:50 -0400)]
c++11: remove hash_namespace.h and default to std

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoc++11: disambiguate std::isnan
Casey Bodley [Fri, 31 Jul 2015 14:56:55 +0000 (10:56 -0400)]
c++11: disambiguate std::isnan

c++11's isnan() is a constexpr function, while c's is a macro

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoc++11: fixes for preprocessor string concatenation
Casey Bodley [Thu, 30 Jul 2015 20:50:53 +0000 (16:50 -0400)]
c++11: fixes for preprocessor string concatenation

c++11 adds user-defined literals through type suffixes. for example,
"foo"s is a literal of type std::basic_string. this means that any
non-whitespace characters following a string literal will be interpreted
as a suffix. this causes issues with string concatenation done by the
preprocessor, which can only be resolved by adding whitespace

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoc++11: replace boost::assign with initializer list
Casey Bodley [Fri, 7 Aug 2015 15:42:46 +0000 (11:42 -0400)]
c++11: replace boost::assign with initializer list

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #4832 from ceph/wip-11511
Samuel Just [Fri, 7 Aug 2015 15:38:48 +0000 (08:38 -0700)]
Merge pull request #4832 from ceph/wip-11511

osd: Even in objects_read_sync() case don't read past oi.size

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoAsyncConnection: Fix wrong order of local message delivering 5510/head
Haomai Wang [Fri, 7 Aug 2015 15:13:30 +0000 (23:13 +0800)]
AsyncConnection: Fix wrong order of local message delivering

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
9 years agoMerge pull request #5331 from liewegas/wip-collection-list
Sage Weil [Fri, 7 Aug 2015 14:15:10 +0000 (10:15 -0400)]
Merge pull request #5331 from liewegas/wip-collection-list

os: clean up collection_list

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #5271 from wonzhq/cache-rate
Sage Weil [Fri, 7 Aug 2015 13:35:27 +0000 (09:35 -0400)]
Merge pull request #5271 from wonzhq/cache-rate

mon: add cache tier IO rate in the 'osd pool stats' command

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5507 from athanatos/wip-12436
Sage Weil [Fri, 7 Aug 2015 12:55:57 +0000 (08:55 -0400)]
Merge pull request #5507 from athanatos/wip-12436

blkdev.cc::get_device_by_uuid: do not leak cache

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5506 from athanatos/wip-12338
Sage Weil [Fri, 7 Aug 2015 12:55:25 +0000 (08:55 -0400)]
Merge pull request #5506 from athanatos/wip-12338

OSD: break connection->session->waiting message->connection cycle

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoos/ObjectStore: drop get_ideal_list_min() 5331/head
Sage Weil [Sun, 14 Jun 2015 00:56:37 +0000 (17:56 -0700)]
os/ObjectStore: drop get_ideal_list_min()

Unused.  Fix comment on get_ideal_list_max while we are here.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos: drop snapid_t arg to collection_list
Sage Weil [Wed, 29 Apr 2015 23:44:59 +0000 (16:44 -0700)]
os: drop snapid_t arg to collection_list

All this does is filter out objects with old snapids, but this can be
just as easily done in the one caller that specifies a non-zero value
(PGLS and PGNLS), which in fact already do that filtering.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agos/collection_list_impl/collection_list/
Sage Weil [Wed, 29 Apr 2015 23:33:42 +0000 (16:33 -0700)]
s/collection_list_impl/collection_list/

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoKill collection_list in CollectionIndex
Xiaoxi Chen [Wed, 29 Apr 2015 08:27:16 +0000 (16:27 +0800)]
Kill collection_list in CollectionIndex

Now we use CollectionIndex.collection_list_partial.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
9 years agoKill Flat_index.
Xiaoxi Chen [Wed, 29 Apr 2015 08:24:37 +0000 (16:24 +0800)]
Kill Flat_index.

Too old, remove it entirely.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
9 years agoKill collection_list
Xiaoxi Chen [Sat, 25 Apr 2015 03:56:09 +0000 (11:56 +0800)]
Kill collection_list

use collection_list_impl as well.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
9 years agoKill collection_list_partial
Xiaoxi Chen [Sat, 25 Apr 2015 01:48:38 +0000 (09:48 +0800)]
Kill collection_list_partial

Use collection_list_impl directly.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
9 years agoKill collection_list_range
Xiaoxi Chen [Fri, 24 Apr 2015 15:16:44 +0000 (23:16 +0800)]
Kill collection_list_range

We can directly use collection_list_impl.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
9 years agoos/KeyValuestore:Refactor collection_list_range and collection_list_partial
Xiaoxi Chen [Fri, 24 Apr 2015 14:37:32 +0000 (22:37 +0800)]
os/KeyValuestore:Refactor collection_list_range and collection_list_partial

Add collection_list_impl which abstract the common process
of collection list behavior.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
9 years agoos/CollectionIndex: use const ref for end
Sage Weil [Fri, 10 Jul 2015 17:29:54 +0000 (13:29 -0400)]
os/CollectionIndex: use const ref for end

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5509 from ceph/wip-12536
Samuel Just [Fri, 7 Aug 2015 12:44:49 +0000 (05:44 -0700)]
Merge pull request #5509 from ceph/wip-12536

common/hobject_t: correctly decode pre-infernalis hobject_t min

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoos/Filestore:Refactor collection_list_range and collection_list_partial
Xiaoxi Chen [Fri, 24 Apr 2015 07:32:36 +0000 (15:32 +0800)]
os/Filestore:Refactor collection_list_range and collection_list_partial

Add collection_list_impl which abstract the common process
of coleection list behavior.

Todo: Refactor Index::collection_list_partial as
well.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
9 years agoos/Memstore:Refactor collection_list_range and collection_list_partial
Xiaoxi Chen [Fri, 24 Apr 2015 08:04:21 +0000 (16:04 +0800)]
os/Memstore:Refactor collection_list_range and collection_list_partial

Add collection_list_impl which abstract the common process
of collection list behavior.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
9 years agoMerge pull request #5508 from athanatos/wip-12410
Kefu Chai [Fri, 7 Aug 2015 12:17:30 +0000 (20:17 +0800)]
Merge pull request #5508 from athanatos/wip-12410

OSDMonitor::preprocess_get_osdmap: send the last map as well

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5413 from guangyy/wip-12523
Samuel Just [Fri, 7 Aug 2015 11:50:20 +0000 (04:50 -0700)]
Merge pull request #5413 from guangyy/wip-12523

osd: copy the RecoveryCtx::handle for when creating RecoveryCtx instance from another one

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5488 from oritwas/wip-cmake-fix-rbd
John Spray [Thu, 6 Aug 2015 16:17:25 +0000 (17:17 +0100)]
Merge pull request #5488 from oritwas/wip-cmake-fix-rbd

cmake: add global lib to rbd

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #5475 from cxwshawn/com-fix
Sage Weil [Thu, 6 Aug 2015 13:29:02 +0000 (09:29 -0400)]
Merge pull request #5475 from cxwshawn/com-fix

rgw_user.h: modify interface comments.

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5483 from oddomatik/patch-1
Sage Weil [Thu, 6 Aug 2015 13:25:55 +0000 (09:25 -0400)]
Merge pull request #5483 from oddomatik/patch-1

Fix location of --access=full in SWIFT user creation

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5484 from cxwshawn/de-fix
Sage Weil [Thu, 6 Aug 2015 13:25:17 +0000 (09:25 -0400)]
Merge pull request #5484 from cxwshawn/de-fix

ceph-dencoder: add RGWRegion, RGWZoneParams, RGWOLHInfo support.

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5421 from ceph/wip-selinux-policy-no-user
Sage Weil [Thu, 6 Aug 2015 13:12:24 +0000 (09:12 -0400)]
Merge pull request #5421 from ceph/wip-selinux-policy-no-user

SELinux support for ceph

Reviewed-by: Kefu Chai <kchai@redhat.com>
Tested-by: Yuri Weinstein <yweinstei@redhat.com>
9 years agoMerge pull request #5487 from ceph/wip-12619
John Spray [Thu, 6 Aug 2015 09:10:03 +0000 (10:10 +0100)]
Merge pull request #5487 from ceph/wip-12619

mds: initialize InodeStoreBase::damage_flags

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agocmake: add global lib to rbd 5488/head
Orit Wasserman [Thu, 6 Aug 2015 08:20:04 +0000 (10:20 +0200)]
cmake: add global lib to rbd

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agomds: initialize InodeStoreBase::damage_flags 5487/head
Yan, Zheng [Thu, 6 Aug 2015 08:12:27 +0000 (16:12 +0800)]
mds: initialize InodeStoreBase::damage_flags

Fixes: #12619
Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoceph-dencoder: add RGWRegion, RGWZoneParams, RGWOLHInfo support. 5484/head
shawn [Thu, 6 Aug 2015 02:48:23 +0000 (10:48 +0800)]
ceph-dencoder: add RGWRegion, RGWZoneParams, RGWOLHInfo support.

    since ceph-dencoder does not support the up-list structures, so
    I add these three supports to analyze data more quickly.

Signed-off-by: shawn chen <cxwshawn@gmail.com>
9 years agoFix location of --access=full in SWIFT user creation 5483/head
Brian Andrus [Wed, 5 Aug 2015 23:25:48 +0000 (16:25 -0700)]
Fix location of --access=full in SWIFT user creation

--access=full was incorrectly placed in the output of the command, while it was supposed to have been a flag run with the command.

9 years agoceph.spec.in: Make SELinux opt-out, not opt-in 5421/head
Boris Ranto [Wed, 5 Aug 2015 15:54:13 +0000 (17:54 +0200)]
ceph.spec.in: Make SELinux opt-out, not opt-in

We should enable SELinux support by default on rpm-based systems that
build with SELinux support to get better QE coverage in future runs.

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #5478 from dachary/wip-test-rados-striper
Loic Dachary [Wed, 5 Aug 2015 15:06:02 +0000 (17:06 +0200)]
Merge pull request #5478 from dachary/wip-test-rados-striper

tests: rados striper tests use 7116 instead of 7113

Reviewed-by: Sebastien Ponce <sebastien.ponce@cern.ch>
9 years agoMerge pull request #5459 from cxwshawn/master
Sage Weil [Wed, 5 Aug 2015 14:34:21 +0000 (10:34 -0400)]
Merge pull request #5459 from cxwshawn/master

radosgw-admin: use cout instead of cerr to print help message.

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoselinux: Add .gitignore file
Boris Ranto [Tue, 28 Jul 2015 18:13:18 +0000 (20:13 +0200)]
selinux: Add .gitignore file

The gitbuilders release script needs this. Otherwise, the ceph-release
build will fail because there were some untracked files.

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoceph.spec.in: stop/start service on policy upgrade/removal
Boris Ranto [Tue, 28 Jul 2015 09:28:40 +0000 (11:28 +0200)]
ceph.spec.in: stop/start service on policy upgrade/removal

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoselinux: Update the SELinux policy rules
Boris Ranto [Tue, 28 Jul 2015 09:11:42 +0000 (11:11 +0200)]
selinux: Update the SELinux policy rules

Few new denials were found while testing the policy. Updating the policy
rules to refelct that.

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoSELinux Makefile can't work in parallel
Boris Ranto [Sat, 25 Jul 2015 12:05:43 +0000 (14:05 +0200)]
SELinux Makefile can't work in parallel

We need to force single-core compilation of SELinux policy files in the
sub-make target as SELinux Makefile does not work properly when run in
parallel mode.

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoceph-disk: set selinux context
Milan Broz [Fri, 24 Jul 2015 11:30:11 +0000 (13:30 +0200)]
ceph-disk: set selinux context

Ensure that SELinux context is properly set according to policy.We
need this as SELinux context is not preserved across mount points.

Signed-off-by: Milan Broz <mbroz@redhat.com>
9 years agoselinux: Allow setuid and setgid to ceph-mon and ceph-osd
Boris Ranto [Wed, 15 Jul 2015 16:20:52 +0000 (18:20 +0200)]
selinux: Allow setuid and setgid to ceph-mon and ceph-osd

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoUpdate selinux policy (after local test).
Milan Broz [Wed, 17 Jun 2015 11:08:17 +0000 (13:08 +0200)]
Update selinux policy (after local test).

Changes enerated with ceph-test package.

Signed-off-by: Milan Broz <mbroz@redhat.com>
9 years agoFix selinux context after intitial OSD mount.
Milan Broz [Fri, 12 Jun 2015 11:07:05 +0000 (13:07 +0200)]
Fix selinux context after intitial OSD mount.

The SELinux context is not preserved across file-systems, we need to
manually set the context of the root of the file-system in order to
preserve SELinux context inheritence rules.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
9 years agoAdd initial SELinux support
Boris Ranto [Fri, 15 May 2015 13:18:05 +0000 (15:18 +0200)]
Add initial SELinux support

This patch modifies the build system and spec file to provide a support
for SELinux enforcing in an opt-in matter via ceph-selinux package.

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #4860 from ceph/wip-nobjectiterator-crash
John Spray [Wed, 5 Aug 2015 13:06:37 +0000 (14:06 +0100)]
Merge pull request #4860 from ceph/wip-nobjectiterator-crash

librados: fix empty NObjectIterator crash on comparisons

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agolibrados: fix empty NObjectIterator crash on comparisons 4860/head
John Spray [Tue, 28 Apr 2015 17:40:57 +0000 (18:40 +0100)]
librados: fix empty NObjectIterator crash on comparisons

This would segfault if you did a
NObjectIterator i;
i == ...

Fix comparisons by allowing pointer-wise comparisons
for iterators with impl==NULL, and asserting in
other methods that require a non-null ::impl

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotests: rados striper tests use 7116 instead of 7113 5478/head
Loic Dachary [Wed, 5 Aug 2015 12:46:57 +0000 (14:46 +0200)]
tests: rados striper tests use 7116 instead of 7113

Change src/test/libradosstriper/rados-striper.sh monitor address to 7116
because src/test/mon/osd-crush.sh uses 7113 already.

Signed-off-by: Loic Dachary <ldachary@redaht.com>
9 years agoMerge pull request #5474 from kylinstorage/wip-sparse_read_bugfix
Kefu Chai [Wed, 5 Aug 2015 08:35:43 +0000 (16:35 +0800)]
Merge pull request #5474 from kylinstorage/wip-sparse_read_bugfix

osd/ReplicatedPG: sparse read should return (extent_map, data_bufferlist)

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
9 years agoosd/ReplicatedPG: sparse read should return (extent_map, data_bufferlist) 5474/head
Yunchuan Wen [Wed, 5 Aug 2015 05:04:38 +0000 (13:04 +0800)]
osd/ReplicatedPG: sparse read should return (extent_map, data_bufferlist)

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
9 years agorgw_user.h: modify interface comments. 5475/head
shawn [Wed, 5 Aug 2015 03:40:22 +0000 (11:40 +0800)]
rgw_user.h: modify interface comments.

Signed-off-by: shawn chen <cxwshawn@gmail.com>
9 years agoMerge remote-tracking branch 'origin/next'
Josh Durgin [Wed, 5 Aug 2015 01:13:52 +0000 (18:13 -0700)]
Merge remote-tracking branch 'origin/next'

Conflicts:
src/Makefile-client.am (link rbd to libglobal again)

9 years agoRevert "rbd: remove dependency on non-ABI controlled CephContext"
Jason Dillaman [Fri, 31 Jul 2015 17:06:33 +0000 (13:06 -0400)]
Revert "rbd: remove dependency on non-ABI controlled CephContext"

This reverts commit fa78739933d7b9501116a12a4fbfd58b5ca99cdb.
Original approach broke krbd map/unmap functions and did not fully
address ABI issues.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #5446 from ceph/wip-systemd
Sage Weil [Tue, 4 Aug 2015 18:05:41 +0000 (14:05 -0400)]
Merge pull request #5446 from ceph/wip-systemd

systemd support

Reviewed-by: Owen Synge <osynge@suse.com>
9 years agoMerge pull request #5469 from theanalyst/doc/v0.94.3-release
Loic Dachary [Tue, 4 Aug 2015 17:13:02 +0000 (19:13 +0200)]
Merge pull request #5469 from theanalyst/doc/v0.94.3-release

doc: release notes for v0.94.3

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agodoc: release notes for v0.94.3 5469/head
Abhishek Lekshmanan [Tue, 4 Aug 2015 15:53:27 +0000 (21:23 +0530)]
doc: release notes for v0.94.3

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
9 years agoclient/Makefile: ship InodeRef
Sage Weil [Tue, 4 Aug 2015 13:57:41 +0000 (09:57 -0400)]
client/Makefile: ship InodeRef

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #4753 from ceph/wip-client-inode-refs
John Spray [Tue, 4 Aug 2015 13:13:40 +0000 (14:13 +0100)]
Merge pull request #4753 from ceph/wip-client-inode-refs

client: hold reference for returned inode

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #5466 from ceph/wip-12578
John Spray [Tue, 4 Aug 2015 13:12:38 +0000 (14:12 +0100)]
Merge pull request #5466 from ceph/wip-12578

mds: open base inode's snaprealm after decoding snapblob

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agomds: open base inode's snaprealm after decoding snapblob 5466/head
Yan, Zheng [Tue, 4 Aug 2015 11:18:10 +0000 (19:18 +0800)]
mds: open base inode's snaprealm after decoding snapblob

base inode has no parent, so can we mark its snaprealm open
immediately. This change makes sure replica mdsdir's snaplream
is opened.

Fixes: #12578
Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #5140 from tchaikov/wip-pg-ls-update-pending-rel-notes
Kefu Chai [Tue, 4 Aug 2015 11:08:24 +0000 (19:08 +0800)]
Merge pull request #5140 from tchaikov/wip-pg-ls-update-pending-rel-notes

doc: add changes to "pg ls*" commands to pending release notes

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agodoc: add changes to "pg ls*" commands to pending release notes 5140/head
Kefu Chai [Fri, 3 Jul 2015 10:28:24 +0000 (18:28 +0800)]
doc: add changes to "pg ls*" commands to pending release notes

"pg ls*" commands now accept recovering instead of recovery as
one of its states.

Fixes: #11569
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5337 from branch-predictor/bp-reduce-mallocs
Kefu Chai [Tue, 4 Aug 2015 07:04:29 +0000 (15:04 +0800)]
Merge pull request #5337 from branch-predictor/bp-reduce-mallocs

Thread.cc: remove malloc/free pair

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5000 from ceph/wip-da-SCA-20150601
Kefu Chai [Tue, 4 Aug 2015 07:03:11 +0000 (15:03 +0800)]
Merge pull request #5000 from ceph/wip-da-SCA-20150601

Various SCA and Coverity fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5312 from xinxinsh/wip-sparse-copy
Kefu Chai [Tue, 4 Aug 2015 05:58:21 +0000 (13:58 +0800)]
Merge pull request #5312 from xinxinsh/wip-sparse-copy

use SEEK_HOLE/SEEK_DATA for sparse copy

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5420 from ceph/wip-12429
Kefu Chai [Tue, 4 Aug 2015 05:52:15 +0000 (13:52 +0800)]
Merge pull request #5420 from ceph/wip-12429

osd/OSDMap: handle incrementals that modify+del pool

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoradosgw-admin: use cout not cerr to print help message. 5459/head
shawn [Tue, 4 Aug 2015 03:14:31 +0000 (11:14 +0800)]
radosgw-admin: use cout not cerr to print help message.

everytime I print radosgw-admin help message, it's too long, and I wanna add | more,
but the help message prints to cerr, so I can only add 2>&1 again, so I think it's
so inconvenient.

Signed-off-by: shawn chen <cxwshawn@gmail.com>
9 years agoMerge pull request #5431 from kylinstorage/test_cache_pool_script_fix
Sage Weil [Tue, 4 Aug 2015 01:49:38 +0000 (21:49 -0400)]
Merge pull request #5431 from kylinstorage/test_cache_pool_script_fix

fix: qa/workunits/rados/test_cache_pool.sh

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5430 from ceph/wip-12537
Sage Weil [Tue, 4 Aug 2015 01:47:41 +0000 (21:47 -0400)]
Merge pull request #5430 from ceph/wip-12537

rgw: url encode exposed bucket

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5397 from ceph/wip-12222
Sage Weil [Mon, 3 Aug 2015 19:15:51 +0000 (15:15 -0400)]
Merge pull request #5397 from ceph/wip-12222

mon: reject over-large values of max_mds

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
9 years agoMerge pull request #5400 from tchaikov/wip-12451
Sage Weil [Mon, 3 Aug 2015 19:14:37 +0000 (15:14 -0400)]
Merge pull request #5400 from tchaikov/wip-12451

tools/rados: update the help message

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agologrotate: fix log rotation with systemd 5446/head
Sage Weil [Mon, 3 Aug 2015 18:41:28 +0000 (14:41 -0400)]
logrotate: fix log rotation with systemd

systemctl does not have a nice way to enumerate (active) units so we can
reload them.  On centos7, the is-active wildcard syntax does not appear to
be supported.  On fedora 22, it prints the state only but not which unit
the state belongs to.

Simply killall -1 instead.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5440 from vumrao/wip-vumrao-12458-doc
Josh Durgin [Mon, 3 Aug 2015 18:05:55 +0000 (11:05 -0700)]
Merge pull request #5440 from vumrao/wip-vumrao-12458-doc

doc: change --keyfile description in man page of rbd help

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agodoc: change "--keyfile" description in man page of rbd help 5440/head
Vikhyat Umrao [Fri, 31 Jul 2015 11:54:37 +0000 (17:24 +0530)]
doc: change "--keyfile" description in man page of rbd help

"--keyring" has higher priority than "--keyfile".
"--keyfile" option is overridden by "--keyring"
if latter is also specified.

Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
9 years agoMerge pull request #5455 from ceph/wip-cephfs-cmake
Kefu Chai [Mon, 3 Aug 2015 17:18:47 +0000 (01:18 +0800)]
Merge pull request #5455 from ceph/wip-cephfs-cmake

CMake fixes for CephFS

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5456 from kylinstorage/wip-do_autogen.sh
Sage Weil [Mon, 3 Aug 2015 16:09:33 +0000 (12:09 -0400)]
Merge pull request #5456 from kylinstorage/wip-do_autogen.sh

Allow do_autogen.sh pass configure parameters

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agocommon/hobject_t: correctly decode pre-infernalis hobject_t min 5509/head
Sage Weil [Mon, 3 Aug 2015 15:53:09 +0000 (11:53 -0400)]
common/hobject_t: correctly decode pre-infernalis hobject_t min

In commit ff99af38df830e215359bfb8837bf310a2023a4d we changed
the value of hobject_t() (the min value) but did not handle
compatibility properly.  Compensate by correctly decoding older
OSDs' notion of hobject_t min and mapping it to ours.

The hammer stable branch will have to compensate similarly so that
it can map our min value to its old min.

Fixes: #12536
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoCMake: add crushtool 5455/head
John Spray [Mon, 3 Aug 2015 15:27:12 +0000 (16:27 +0100)]
CMake: add crushtool

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoCMake: fix librados build
John Spray [Mon, 3 Aug 2015 15:26:49 +0000 (16:26 +0100)]
CMake: fix librados build

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoCMake: fix rbd build
John Spray [Mon, 3 Aug 2015 15:11:22 +0000 (16:11 +0100)]
CMake: fix rbd build

Don't link with 'global' from rbd (to match
autotools update fa78739).  Fixes "g_ceph_context
defined twice" error.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoCMake: libblkid not only needed with rbd
John Spray [Mon, 3 Aug 2015 11:59:00 +0000 (12:59 +0100)]
CMake: libblkid not only needed with rbd

It's linked in libcommon.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoCMake: smalliobenchrbd should dep on rbd
John Spray [Mon, 3 Aug 2015 11:52:58 +0000 (12:52 +0100)]
CMake: smalliobenchrbd should dep on rbd

Signed-off-by: John Spray <john.spray@redhat.com>