]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoDoc: Correcting the default number of copies. 5550/head
Alexander Chuzhoy [Tue, 11 Aug 2015 22:40:00 +0000 (18:40 -0400)]
Doc: Correcting the default number of copies.

According to the "quick ceph deploy" page, the default number of replicas in the Ceph configuration file is 3

Signed-off-by: Sasha Chuzhoy <sashac88@hotmail.com>
9 years agoMerge pull request #5047 from rzarzynski/wip-12108
Yehuda Sadeh [Tue, 11 Aug 2015 21:01:46 +0000 (14:01 -0700)]
Merge pull request #5047 from rzarzynski/wip-12108

rgw: rework X-Trans-Id header to be conform with Swift API.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #5449 from yangruifeng/wip-rgw-bugfix1
Yehuda Sadeh [Tue, 11 Aug 2015 18:39:42 +0000 (11:39 -0700)]
Merge pull request #5449 from yangruifeng/wip-rgw-bugfix1

rgw:segmentation fault when rgw_gc_max_objs > HASH_PRIME

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #5447 from yangruifeng/master
Yehuda Sadeh [Tue, 11 Aug 2015 18:32:39 +0000 (11:32 -0700)]
Merge pull request #5447 from yangruifeng/master

rgw:the arguments 'domain' should not be assigned when return false

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #5543 from ceph/wip-cmake-nlist
John Spray [Tue, 11 Aug 2015 18:19:42 +0000 (19:19 +0100)]
Merge pull request #5543 from ceph/wip-cmake-nlist

CMake: add missing librados nlist test

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5547 from ritz303/wip-doc-11082
John Wilkins [Tue, 11 Aug 2015 17:48:23 +0000 (10:48 -0700)]
Merge pull request #5547 from ritz303/wip-doc-11082

doc: Removed reference to RAID-4

Reviewed-by: John Wilkins <jowilkin@redhat.com>
9 years agodoc: Removed reference to RAID-4 5547/head
ritz303 [Tue, 11 Aug 2015 17:46:10 +0000 (12:46 -0500)]
doc: Removed reference to RAID-4

Fixes: #11082
Signed-off-by: ritz303 <ritz_303@yahoo.com>
9 years agoMerge pull request #5546 from ritz303/wip-doc-11897
John Wilkins [Tue, 11 Aug 2015 17:11:12 +0000 (10:11 -0700)]
Merge pull request #5546 from ritz303/wip-doc-11897

doc: Clarify how 'ceph auth caps' works.

Reviewed-by: John Wilkins <jowilkin@redhat.com>
9 years agoCMake: cut down unnecessary linkage on rados tests 5543/head
John Spray [Tue, 11 Aug 2015 15:35:18 +0000 (16:35 +0100)]
CMake: cut down unnecessary linkage on rados tests

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoCMake: add missing librados nlist test
John Spray [Tue, 11 Aug 2015 10:14:56 +0000 (11:14 +0100)]
CMake: add missing librados nlist test

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #5354 from ceph/wip-pgls-filter-librados
John Spray [Tue, 11 Aug 2015 14:40:58 +0000 (15:40 +0100)]
Merge pull request #5354 from ceph/wip-pgls-filter-librados

librados: partially expose PGLS filter interface

Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #5535 from ceph/wip-gentest
Sage Weil [Tue, 11 Aug 2015 12:52:59 +0000 (08:52 -0400)]
Merge pull request #5535 from ceph/wip-gentest

mon: Improve PGMap::generate_test_instances(), build map per incremental

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5457 from ceph/wip-cmake-vstart
Kefu Chai [Tue, 11 Aug 2015 12:49:15 +0000 (20:49 +0800)]
Merge pull request #5457 from ceph/wip-cmake-vstart

Make vstart work with cmake out of tree builds

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agotest: add case for pgls filter arg in librados 5354/head
John Spray [Tue, 11 Aug 2015 09:11:03 +0000 (10:11 +0100)]
test: add case for pgls filter arg in librados

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agolibrados: partially expose PGLS filter interface
John Spray [Fri, 17 Jul 2015 14:32:03 +0000 (15:32 +0100)]
librados: partially expose PGLS filter interface

Not bothering with this for non-namespaced object iterator
or the C interface.  Expect to replace this with
the new-style pgls, so just exposing it enough for
cephfs-data-scan to touch the new osd-side pgls filtering
on forward scrub tags.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #5542 from l11625/master
Haomai Wang [Tue, 11 Aug 2015 08:57:08 +0000 (16:57 +0800)]
Merge pull request #5542 from l11625/master

The listen_sd of thread also can be zero when we call the processor::start function..

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
9 years agoMerge pull request #5533 from ceph/wip-fix-mon-join.joao
Kefu Chai [Tue, 11 Aug 2015 08:26:41 +0000 (16:26 +0800)]
Merge pull request #5533 from ceph/wip-fix-mon-join.joao

mon: Monitor: set MMonJoin's op type as service

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agowhen the processor start ,listen_sd also can be zero. 5542/head
l11625 [Tue, 11 Aug 2015 08:12:45 +0000 (16:12 +0800)]
when the processor start ,listen_sd also can be zero.

9 years agoMerge pull request #5480 from ceph/wip-12617
Yan, Zheng [Tue, 11 Aug 2015 03:01:36 +0000 (11:01 +0800)]
Merge pull request #5480 from ceph/wip-12617

client: ignore permission check when fuse_default_permissions is on

9 years agotest/mon: add test for "mon add" 5533/head
Kefu Chai [Tue, 11 Aug 2015 02:21:18 +0000 (10:21 +0800)]
test/mon: add test for "mon add"

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5344 from trhoden/update_debain_maintainer
Ken Dreyer [Mon, 10 Aug 2015 23:01:56 +0000 (17:01 -0600)]
Merge pull request #5344 from trhoden/update_debain_maintainer

debian: Update maintainers and uploaders

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
9 years agoFixed mistaken reference to mon in osd section. Changed release name to hammer.
John Wilkins [Mon, 10 Aug 2015 21:05:15 +0000 (14:05 -0700)]
Fixed mistaken reference to mon in osd section. Changed release name to hammer.

Fixes: #7807
Signed-off-by: John Wilkins <jowilkin@redhat.com>
9 years agodoc: Clarify how 'ceph auth caps' works. 5546/head
ritz303 [Mon, 10 Aug 2015 20:38:49 +0000 (15:38 -0500)]
doc: Clarify how 'ceph auth caps' works.

Fixes: #11897
Signed-off-by: ritz303 <ritz_303@yahoo.com>
9 years agomon: Improve PGMap::generate_test_instances(), build map per incremental 5535/head
David Zafman [Sat, 8 Aug 2015 22:40:46 +0000 (15:40 -0700)]
mon: Improve PGMap::generate_test_instances(), build map per incremental

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agomon: Monitor: set MMonJoin's op type as service
Joao Eduardo Luis [Mon, 10 Aug 2015 13:45:34 +0000 (14:45 +0100)]
mon: Monitor: set MMonJoin's op type as service

Otherwise, when the MonmapMonitor's PaxosService::dispatch() handles the
message, it will assert (as it should) because the op is marked as being
a monitor op. And this function should never handle monitor ops.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
9 years agoMerge pull request #5353 from ceph/wip-pgls-filter-osd
John Spray [Mon, 10 Aug 2015 13:17:45 +0000 (14:17 +0100)]
Merge pull request #5353 from ceph/wip-pgls-filter-osd

Make PGLSFilter interface more flexible (for cephfs)

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agovstart: detect CEPH_BIN in stop.sh too 5457/head
John Spray [Tue, 4 Aug 2015 10:12:33 +0000 (11:12 +0100)]
vstart: detect CEPH_BIN in stop.sh too

...for the benefit of rbd.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoceph.in: detect paths in out of tree build
John Spray [Mon, 3 Aug 2015 23:10:47 +0000 (00:10 +0100)]
ceph.in: detect paths in out of tree build

a la what we currently do for PYTHONPATH
and LD_LIBRARY_PATH, but for cmake out
of tree builds.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agovstart: detect and handle cmake environ
John Spray [Mon, 3 Aug 2015 23:01:22 +0000 (00:01 +0100)]
vstart: detect and handle cmake environ

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agovstart: enable more path customization
John Spray [Mon, 3 Aug 2015 15:07:55 +0000 (16:07 +0100)]
vstart: enable more path customization

...for working with out-of-tree builds.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMakefile: build ceph.in the cmake way
John Spray [Mon, 3 Aug 2015 23:33:05 +0000 (00:33 +0100)]
Makefile: build ceph.in the cmake way

A little bit more of a tongue-twisting command line
to do string replacement, but saves us from having
separate ceph.in files for cmake vs autotools.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoceph.in: use cmake-style substitution
John Spray [Mon, 3 Aug 2015 23:09:53 +0000 (00:09 +0100)]
ceph.in: use cmake-style substitution

Avoid need for separate ceph.in and ceph.in.cmake files.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoinit-ceph.in: set executable bit
John Spray [Mon, 3 Aug 2015 14:47:24 +0000 (15:47 +0100)]
init-ceph.in: set executable bit

Scripts expect the generated init-ceph script
to be +x, and CMake does that if the file you
feed into it is +x.  This matches what we already
do with ceph.in.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoCMake: build dencoder at src/ceph-dencoder
John Spray [Wed, 5 Aug 2015 12:08:21 +0000 (13:08 +0100)]
CMake: build dencoder at src/ceph-dencoder

...instead of in src/test/dencoder.

While the source lives in test/, the dencoder tool is built
and distributed as a first class binary, so it's awkward for
paths in dev/test to have it in a unique location.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #5522 from oritwas/wip-cmake-fix-mds
John Spray [Mon, 10 Aug 2015 10:01:30 +0000 (11:01 +0100)]
Merge pull request #5522 from oritwas/wip-cmake-fix-mds

cmake: fix mds compilation and link

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agocmake: fix mds compilation and link 5522/head
Orit Wasserman [Mon, 10 Aug 2015 08:16:15 +0000 (10:16 +0200)]
cmake: fix mds compilation and link

Rename MDS.cc MDSDaemon.cc
Add missing files and match order to the Makefile

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge branch 'wip-vumrao-12111' of https://github.com/vumrao/ceph
Josh Durgin [Mon, 10 Aug 2015 06:01:01 +0000 (23:01 -0700)]
Merge branch 'wip-vumrao-12111' of https://github.com/vumrao/ceph

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorbd: creating refused, if feature is specified when the format is equal to 1
x11562 [Wed, 3 Jan 2001 19:07:46 +0000 (03:07 +0800)]
rbd: creating refused, if feature is specified when the format is equal to 1

Signed-off-by: x11562 <xie.na@h3c.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #5520 from badone/master
Kefu Chai [Mon, 10 Aug 2015 03:26:38 +0000 (11:26 +0800)]
Merge pull request #5520 from badone/master

doc: remove duplicate word in Motivation section.

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #4927 from wonzhq/snapset-obc
Yehuda Sadeh [Mon, 10 Aug 2015 03:00:58 +0000 (20:00 -0700)]
Merge pull request #4927 from wonzhq/snapset-obc

osd/ReplicatedPG: snapset is not persisted

9 years agoMerge pull request #5212 from ceph/wip-mds-refactor
Yan, Zheng [Mon, 10 Aug 2015 02:52:16 +0000 (10:52 +0800)]
Merge pull request #5212 from ceph/wip-mds-refactor

mds: big refactor of MDS into MDSDaemon, MDSRank, MDSRank Dispatcher

9 years agodoc: remove duplicate word in Motivation section. 5520/head
Brad Hubbard [Mon, 10 Aug 2015 01:25:09 +0000 (11:25 +1000)]
doc: remove duplicate word in Motivation section.

Remove to\nto typo in doc/dev/osd_internals/erasure_coding/pgbackend.rst

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
9 years agoMerge pull request #5517 from tchaikov/wip-cmake-remove-flat-index
Sage Weil [Sun, 9 Aug 2015 11:47:52 +0000 (07:47 -0400)]
Merge pull request #5517 from tchaikov/wip-cmake-remove-flat-index

cmake: remove Flat_index stuff

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5515 from ceph/wip-make-check-fixes
Sage Weil [Sun, 9 Aug 2015 11:45:15 +0000 (07:45 -0400)]
Merge pull request #5515 from ceph/wip-make-check-fixes

several fixes for make check

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #4683 from ceph/wip-siddharth-security-fixes
Sage Weil [Sun, 9 Aug 2015 11:44:14 +0000 (07:44 -0400)]
Merge pull request #4683 from ceph/wip-siddharth-security-fixes

Enable security hardening flags globally

Testedj-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: remove Flat_index stuff 5517/head
Kefu Chai [Sun, 9 Aug 2015 08:24:00 +0000 (16:24 +0800)]
cmake: remove Flat_index stuff

the Flat_index stuff was removed in 5df688a

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5504 from tchaikov/wip-check-good-yasm
Orit Wasserman [Sat, 8 Aug 2015 15:40:55 +0000 (17:40 +0200)]
Merge pull request #5504 from tchaikov/wip-check-good-yasm

cmake: check for good yasm

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 agotest/encoding/check-generated: make error msg cut and pasteable 5515/head
Sage Weil [Sat, 8 Aug 2015 11:45:17 +0000 (07:45 -0400)]
test/encoding/check-generated: make error msg cut and pasteable

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/HitSet: make subclasses dump deterministically
Sage Weil [Sat, 8 Aug 2015 11:40:21 +0000 (07:40 -0400)]
osd/HitSet: make subclasses dump deterministically

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/HitSet: mark subclasses that encode nondeterministically
Sage Weil [Sat, 8 Aug 2015 11:40:12 +0000 (07:40 -0400)]
osd/HitSet: mark subclasses that encode nondeterministically

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomon/PGMap: dump osd_epochs in deterministic order
Sage Weil [Sat, 8 Aug 2015 11:36:20 +0000 (07:36 -0400)]
mon/PGMap: dump osd_epochs in deterministic order

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agotest/encoding/check-generated: skip some tests if non-determinstic encoding
Sage Weil [Sat, 8 Aug 2015 11:28:38 +0000 (07:28 -0400)]
test/encoding/check-generated: skip some tests if non-determinstic encoding

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-dencoder: add 'is_deterministic' command
Sage Weil [Sat, 8 Aug 2015 11:25:01 +0000 (07:25 -0400)]
ceph-dencoder: add 'is_deterministic' command

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-dencoder: clean up macro name
Sage Weil [Sat, 8 Aug 2015 11:23:42 +0000 (07:23 -0400)]
ceph-dencoder: clean up macro name

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-dencoder: mark PGMap with nondeterministic encoding
Sage Weil [Sat, 8 Aug 2015 11:23:15 +0000 (07:23 -0400)]
ceph-dencoder: mark PGMap with nondeterministic encoding

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agotest/encoding: c++11 STL appears to make fewer copies, yay
Sage Weil [Fri, 7 Aug 2015 22:22:51 +0000 (18:22 -0400)]
test/encoding: c++11 STL appears to make fewer copies, yay

The failure was

test/encoding.cc:191: Failure
Value of: 10
Expected: my_key_t::get_copy_ctor()
Which is: 5
test/encoding.cc:196: Failure
Value of: 10
Expected: my_val_t::get_copy_ctor()
Which is: 5

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agocmake: check for good yasm 5504/head
Kefu Chai [Fri, 7 Aug 2015 05:56:52 +0000 (13:56 +0800)]
cmake: check for good yasm

this enables faster crc32 calculation on x64 intel platforms,
see common/crc32c_intel_fast.c

Signed-off-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 agomon/PGMap: make PGMap dump osd_epochs too
Sage Weil [Fri, 7 Aug 2015 22:14:41 +0000 (18:14 -0400)]
mon/PGMap: make PGMap dump osd_epochs too

Signed-off-by: Sage Weil <sage@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 agorgw:segmentation fault when rgw_gc_max_objs > HASH_PRIME 5449/head
Ruifeng Yang [Sun, 2 Aug 2015 08:16:05 +0000 (16:16 +0800)]
rgw:segmentation fault when rgw_gc_max_objs > HASH_PRIME

obj_names[] is index out of bounds when rgw_gc_max_objs > HASH_PRIME

Fixes: #12630
Signed-off-by: Ruifeng Yang <149233652@qq.com>