]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agorgw: implement s3 encoding-type for get bucket 5579/head
Jeff Weber [Wed, 5 Aug 2015 23:06:46 +0000 (19:06 -0400)]
rgw: implement s3 encoding-type for get bucket

This change introduces handling for the encoding-type request
parameter on the get bucket operation. An object key may contain
characters which are not supported in XML. Passing the value "url" for
the encoding-type parameter will cause the key to be urlencoded in the
response.

Fixes: #12735
Signed-off-by: Jeff Weber <jweber@cofront.net>
9 years agoMerge pull request #4744 from ceph/wip-11625
Josh Durgin [Thu, 13 Aug 2015 20:04:19 +0000 (13:04 -0700)]
Merge pull request #4744 from ceph/wip-11625

librbd: diff_iterate should issue concurrent ops

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #5555 from dachary/wip-mon-test-timeouts
Loic Dachary [Thu, 13 Aug 2015 19:11:03 +0000 (21:11 +0200)]
Merge pull request #5555 from dachary/wip-mon-test-timeouts

tests: be more generous with mon tests timeouts

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5576 from liewegas/wip-dencoder
Sage Weil [Thu, 13 Aug 2015 19:03:34 +0000 (15:03 -0400)]
Merge pull request #5576 from liewegas/wip-dencoder

simplify handling for objects w/ nondeterministic encoding

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agotest/encoding/check-generated: test sorted json dumps for nondeterministic objects 5576/head
Sage Weil [Thu, 13 Aug 2015 18:49:40 +0000 (14:49 -0400)]
test/encoding/check-generated: test sorted json dumps for nondeterministic objects

Nondeterministic objects dump nondeterministically (usually due
to unordered_map or _set).  Compare their sorted output.  This
is a weaker test but is better than nothing.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoRevert "osd/HitSet: make subclasses dump deterministically"
Sage Weil [Thu, 13 Aug 2015 18:37:32 +0000 (14:37 -0400)]
Revert "osd/HitSet: make subclasses dump deterministically"

This reverts commit 34c048b3cb2b16658e692ac5110115612031510d.

9 years agoRevert "mon/PGMap: dump osd_epochs in deterministic order"
Sage Weil [Thu, 13 Aug 2015 18:37:16 +0000 (14:37 -0400)]
Revert "mon/PGMap: dump osd_epochs in deterministic order"

This reverts commit 3df6438cd2c9a77a06b7a8d011bafbed00f1fc5e.

9 years agoMerge pull request #4864 from stevecapperlinaro/for-ceph/journal-page-size-fix
Sage Weil [Thu, 13 Aug 2015 15:35:12 +0000 (11:35 -0400)]
Merge pull request #4864 from stevecapperlinaro/for-ceph/journal-page-size-fix

FileJournal: Remove CEPH_PAGE_SIZE assumptions

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5100 from stevecapperlinaro/for-ceph/tweak-buffer-append-size
Sage Weil [Thu, 13 Aug 2015 15:34:56 +0000 (11:34 -0400)]
Merge pull request #5100 from stevecapperlinaro/for-ceph/tweak-buffer-append-size

Common: Do not use CEPH_PAGE_SIZE when appending buffers in Ceph

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5339 from xinxinsh/wip-use-throttle
Sage Weil [Thu, 13 Aug 2015 15:34:13 +0000 (11:34 -0400)]
Merge pull request #5339 from xinxinsh/wip-use-throttle

use throttle framework to throttle objectstore ops/bytes

Reviewed-by: Li Wang <liwang@ubuntukylin.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5573 from SUSE/wip-restart-on-rpm-removal-only
Sage Weil [Thu, 13 Aug 2015 14:21:37 +0000 (10:21 -0400)]
Merge pull request #5573 from SUSE/wip-restart-on-rpm-removal-only

ceph.spec.in: test %preun argument is zero for removal-only operations

9 years agoceph.spec.in: test %preun argument is zero for removal-only operations 5573/head
Nathan Cutler [Thu, 13 Aug 2015 13:36:02 +0000 (15:36 +0200)]
ceph.spec.in: test %preun argument is zero for removal-only operations

The %preun section now contains logic for disabling and stopping all the
Ceph systemd units when the ceph package is removed. However, there is no
conditional around it, so the units are disabled and stopped on RPM upgrade
as well as removal.

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

Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Tim Serong <tserong@suse.com>
9 years agoMerge pull request #5562 from varadakari/wip-kvstore-statfs
Sage Weil [Thu, 13 Aug 2015 12:51:01 +0000 (08:51 -0400)]
Merge pull request #5562 from varadakari/wip-kvstore-statfs

Adding statfs api to KeyValueDB

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #5565 from varadakari/wip-kvstore-makefile
Sage Weil [Thu, 13 Aug 2015 12:44:42 +0000 (08:44 -0400)]
Merge pull request #5565 from varadakari/wip-kvstore-makefile

Remove redundant line from Makefile

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agotests: do not test timeout mon add 5555/head
Loic Dachary [Wed, 12 Aug 2015 14:59:47 +0000 (16:59 +0200)]
tests: do not test timeout mon add

Strictly speaking it's not a feature, but an expected hahaviour. After
discussion it does not seem useful to have that test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge remote-tracking branch 'origin/next'
John Spray [Thu, 13 Aug 2015 10:00:50 +0000 (11:00 +0100)]
Merge remote-tracking branch 'origin/next'

9 years agoMerge pull request #5564 from wonzhq/test-inode
John Spray [Thu, 13 Aug 2015 09:43:53 +0000 (10:43 +0100)]
Merge pull request #5564 from wonzhq/test-inode

mds: initialize 'divergent' to false when comparing inode_t

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #5553 from majianpeng/mds
John Spray [Thu, 13 Aug 2015 09:36:40 +0000 (10:36 +0100)]
Merge pull request #5553 from majianpeng/mds

mds (fix to flags_to_mode and cleanup in handle_client_open)

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agomds/Server: clean up code for handle_client_open. 5553/head
Jianpeng Ma [Tue, 11 Aug 2015 08:27:26 +0000 (16:27 +0800)]
mds/Server: clean up code for handle_client_open.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
9 years agocommon/ceph_fs: set mode default is -1 for func ceph_flags_to_mode.
Jianpeng Ma [Thu, 13 Aug 2015 09:03:52 +0000 (17:03 +0800)]
common/ceph_fs: set mode default is -1 for func ceph_flags_to_mode.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
9 years agoRemove redundant line from Makefile 5565/head
Varada Kari [Thu, 13 Aug 2015 06:53:45 +0000 (12:23 +0530)]
Remove redundant line from Makefile

Signed-off-by: Varada Kari <varada.kari@sandisk.com>
9 years agomds: initialize 'divergent' to false when comparing inode_t 5564/head
Zhiqiang Wang [Thu, 13 Aug 2015 06:28:50 +0000 (14:28 +0800)]
mds: initialize 'divergent' to false when comparing inode_t

'divergent' is not set in the case when all the fields of 'inode_t' are
equal.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
9 years agoAdding statfs api to KeyValueDB 5562/head
Varada Kari [Thu, 13 Aug 2015 05:31:40 +0000 (11:01 +0530)]
Adding statfs api to KeyValueDB

If any backend supports and implements statfs will extract the
stats from backend to show correct utilization in the status.

Signed-off-by: Varada Kari <varada.kari@sandisk.com>
9 years agoMerge pull request #5544 from ceph/wip-12664-next
Josh Durgin [Wed, 12 Aug 2015 23:22:46 +0000 (16:22 -0700)]
Merge pull request #5544 from ceph/wip-12664-next

librbd: prevent race condition between resize requests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agotests: be more generous with mon tests timeouts
Loic Dachary [Wed, 12 Aug 2015 12:59:01 +0000 (14:59 +0200)]
tests: be more generous with mon tests timeouts

Change the timeouts of the TEST_mon_add_to_single_mon tests to be 120
seconds. They have value to guard against blocking forever. The exact
timing does not matter as long as the operation completes.

When a timeout is too short, it will create false negatives when running
on slow machines. It could be argued that being too generous with
timeout in general may hide problems. But not in this specific case.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #5550 from schuzhoy/schuzhoy-patch-1
Kefu Chai [Wed, 12 Aug 2015 09:25:18 +0000 (17:25 +0800)]
Merge pull request #5550 from schuzhoy/schuzhoy-patch-1

doc: Correcting the default number of copies.

Reviewed-by: Travis Rhoden <trhoden@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5072 from zhouyuan/doc_rgw_rados_handlers
Kefu Chai [Wed, 12 Aug 2015 09:21:38 +0000 (17:21 +0800)]
Merge pull request #5072 from zhouyuan/doc_rgw_rados_handlers

doc: update rgw configuration on multiple rgw rados handlers feature

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5495 from tchaikov/wip-12620
Loic Dachary [Wed, 12 Aug 2015 07:49:18 +0000 (09:49 +0200)]
Merge pull request #5495 from tchaikov/wip-12620

doc/rados/operations/add-or-rm-mons: simplify the steps to add a mon

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #5528 from Be-El/master
Yan, Zheng [Wed, 12 Aug 2015 03:30:00 +0000 (11:30 +0800)]
Merge pull request #5528 from Be-El/master

Correct handling of supplementary groups in ceph-fuse (Bug 12617)

9 years agodoc: update rgw configuration on multiple rgw rados handlers feature 5072/head
Yuan Zhou [Thu, 25 Jun 2015 03:42:01 +0000 (11:42 +0800)]
doc: update rgw configuration on multiple rgw rados handlers feature

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
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 agodoc/rados/operations/add-or-rm-mons: simplify the steps to add a mon 5495/head
Kefu Chai [Thu, 6 Aug 2015 14:32:42 +0000 (22:32 +0800)]
doc/rados/operations/add-or-rm-mons: simplify the steps to add a mon

this change removes the step to "ceph mon add" before starting a new
monitor. because the existing leader will start an election at seeing
the MMonJoin message sent by the new joiner, after the quorum is
archieved, the monmap will be updated with the new monitor.
so, "ceph mon add" is not necessary to add a new monitor.
moreover, this command will be blocked until a new quorum is formed,
and the proposed monmap is accepted. but in case of adding a monitor
to a single monitor cluster, the leader will wait until at least two
of the monitors reply to it. apparently, this does not happen unless
the new monitor starts. so from the user's point of view, this
command hangs until timesout, if he/she does not start the mon.b
beforehand. but this is an expected behaviour.

so, to avoid this confusion and simplify the steps to add a new
monitor. we'd better simply remove this "ceph mon add" step.

Fixes: #12620
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agolibrbd: prevent race condition between resize requests 5544/head
Jason Dillaman [Tue, 11 Aug 2015 13:26:33 +0000 (09:26 -0400)]
librbd: prevent race condition between resize requests

It was possible that the same resize request could be sent twice
if a completed resize op started a newly created resize op while
it was also being concurrently started by another thread.

Fixes: #12664
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@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 agoMerge remote-tracking branch 'upstream/master' 5528/head
blinke [Tue, 11 Aug 2015 11:41:44 +0000 (13:41 +0200)]
Merge remote-tracking branch 'upstream/master'

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 #5536 from ceph/wip-12662-next
Josh Durgin [Mon, 10 Aug 2015 23:23:10 +0000 (16:23 -0700)]
Merge pull request #5536 from ceph/wip-12662-next

WorkQueue: add/remove_work_queue methods now thread safe

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoWorkQueue: add/remove_work_queue methods now thread safe 5536/head
Jason Dillaman [Mon, 10 Aug 2015 23:10:19 +0000 (19:10 -0400)]
WorkQueue: add/remove_work_queue methods now thread safe

These methods were not acquiring the ThreadPool lock when
manipulating the work_queue collection.  This was causing
occasional crashes within librbd when opening and closing
images.

Fixes: #12662
Backport: hammer, firefly
Signed-off-by: Jason Dillaman <dillaman@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 agoMerge pull request #5525 from ceph/wip-12611-next
Josh Durgin [Mon, 10 Aug 2015 22:58:16 +0000 (15:58 -0700)]
Merge pull request #5525 from ceph/wip-12611-next

bit_vector extent calculation incorrect for last page

Reviewed-by: Josh Durgin <jdurgin@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 agoadded permission check based on getgrouplist
blinke [Mon, 10 Aug 2015 15:43:10 +0000 (17:43 +0200)]
added permission check based on getgrouplist

9 years agorbd: export-diff now issues concurrent AIO read requests 4744/head
Jason Dillaman [Fri, 22 May 2015 02:25:56 +0000 (22:25 -0400)]
rbd: export-diff now issues concurrent AIO read requests

Combined with the improvements to the diff_iterate API, this should
noticeably increase the speed of a large image export-diff.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotests: verify that diff_iterate callbacks can abort diff
Jason Dillaman [Thu, 21 May 2015 22:17:58 +0000 (18:17 -0400)]
tests: verify that diff_iterate callbacks can abort diff

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: diff_iterate should handle callback errors
Jason Dillaman [Fri, 22 May 2015 02:59:07 +0000 (22:59 -0400)]
librbd: diff_iterate should handle callback errors

If the diff_iterate callback returns an error, it should
result in diff_iterate being aborted with the error code
propagated.

Fixes: #11593
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: execute multiple object diffs in parallel
Jason Dillaman [Thu, 21 May 2015 18:43:20 +0000 (14:43 -0400)]
librbd: execute multiple object diffs in parallel

Issue up to 'concurrent_management_ops' list_snap ops to the
OSDs concurrently.  The iterate callbacks will continue to be
serialized -- clients that wish higher throughput should avoid
blocking to maximum performance.

Fixes: #11625
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: move diff_iterate logic to its own class
Jason Dillaman [Thu, 21 May 2015 16:36:55 +0000 (12:36 -0400)]
librbd: move diff_iterate logic to its own class

In preparation for parallelizing the diff_iterate logic,
move all existing logic to its own class.  No functional
changes have been made.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotests: increase test coverage for partial encodes/decodes 5525/head
Jason Dillaman [Mon, 10 Aug 2015 13:39:50 +0000 (09:39 -0400)]
tests: increase test coverage for partial encodes/decodes

Multiple combinations of offsets/lengths are now tested when
performing partial encodes/decodes of the bit vector.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agocommon: bit_vector extent calculation incorrect for last page
Jason Dillaman [Mon, 10 Aug 2015 13:34:42 +0000 (09:34 -0400)]
common: bit_vector extent calculation incorrect for last page

It's highly probable that the last page in the bit vector will not
be a full page size.  As a result, the computed extents will extend
beyond the data portion of the bit vector, resulting in a end_of_buffer
exception.

Fixes: #12611
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoadded autoconf check for getgrouplist
blinke [Mon, 10 Aug 2015 13:31:44 +0000 (15:31 +0200)]
added autoconf check for getgrouplist

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>