]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agolibrbd: provide an out-of-class definition for MAX_DESCRIPTION_OFFSET 6557/head
Ilya Dryomov [Thu, 12 Nov 2015 13:38:05 +0000 (14:38 +0100)]
librbd: provide an out-of-class definition for MAX_DESCRIPTION_OFFSET

std::min() takes its parameters by reference, so provide a definition
for OptionPrinter::MAX_DESCRIPTION_OFFSET constant.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
9 years agocmake: fix librbd and add src/journal
Ilya Dryomov [Thu, 12 Nov 2015 13:52:47 +0000 (14:52 +0100)]
cmake: fix librbd and add src/journal

librbd was missing a recently added file, src/journal was missing
entirely - this brings the build back.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
9 years agoMerge pull request #6462 from javacruft/wip/ec-modules
Loic Dachary [Thu, 12 Nov 2015 11:35:20 +0000 (12:35 +0100)]
Merge pull request #6462 from javacruft/wip/ec-modules

Build internal plugins and classes as modules

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #6539 from yehudasa/wip-cmake-fix
Kefu Chai [Thu, 12 Nov 2015 03:53:34 +0000 (11:53 +0800)]
Merge pull request #6539 from yehudasa/wip-cmake-fix

cmake: fix files list

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6316 from dillaman/wip-13494
Josh Durgin [Wed, 11 Nov 2015 19:54:56 +0000 (11:54 -0800)]
Merge pull request #6316 from dillaman/wip-13494

rbd: dynamically generated bash completion

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge remote-tracking branch 'origin/jewel'
Josh Durgin [Wed, 11 Nov 2015 19:51:49 +0000 (11:51 -0800)]
Merge remote-tracking branch 'origin/jewel'

9 years agocmake: fix files list 6539/head
Yehuda Sadeh [Wed, 11 Nov 2015 16:38:05 +0000 (08:38 -0800)]
cmake: fix files list

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6471 from mslovy/wip-check-reply-guard-again
Sage Weil [Wed, 11 Nov 2015 14:23:39 +0000 (09:23 -0500)]
Merge pull request #6471 from mslovy/wip-check-reply-guard-again

osd: avoid double-check for replaying and can_checkpoint() in FileStore::_check_replay_guard

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6426 from xiexingguo/xxg-wip-13642
Sage Weil [Wed, 11 Nov 2015 14:16:58 +0000 (09:16 -0500)]
Merge pull request #6426 from xiexingguo/xxg-wip-13642

librados: fix rare race where pool op callback may hang forever

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6407 from renhwztetecs/renhw-wip-13627
Sage Weil [Wed, 11 Nov 2015 14:15:51 +0000 (09:15 -0500)]
Merge pull request #6407 from renhwztetecs/renhw-wip-13627

mon: initialize recorded election epoch properly even when standalone

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6385 from Vicente-Cheng/mkfs-does-not-decode-an-existing-superblock
Sage Weil [Wed, 11 Nov 2015 14:14:01 +0000 (09:14 -0500)]
Merge pull request #6385 from Vicente-Cheng/mkfs-does-not-decode-an-existing-superblock

osd: fix reactivate (check OSDSuperblock in mkfs() when we already have the superblock)

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #6373 from liewegas/wip-promoteon2ndread-ec
Sage Weil [Wed, 11 Nov 2015 14:12:31 +0000 (09:12 -0500)]
Merge pull request #6373 from liewegas/wip-promoteon2ndread-ec

librados: fix PromoteOn2ndRead test for EC

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6520 from trociny/fix-rbd-apply_changes
Jason Dillaman [Wed, 11 Nov 2015 14:10:44 +0000 (09:10 -0500)]
Merge pull request #6520 from trociny/fix-rbd-apply_changes

rbd: make config changes actually apply

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6347 from xiexingguo/xxg-wip-13566
Sage Weil [Wed, 11 Nov 2015 14:07:15 +0000 (09:07 -0500)]
Merge pull request #6347 from xiexingguo/xxg-wip-13566

osd: fixes for several cases where op result code was not checked or set

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #5168 from majianpeng/dynamic-control-optracker
Sage Weil [Wed, 11 Nov 2015 14:02:26 +0000 (09:02 -0500)]
Merge pull request #5168 from majianpeng/dynamic-control-optracker

common: allow enable/disable of optracker at runtime

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6089 from SUSE/wip-init-ceph-getopt
Kefu Chai [Wed, 11 Nov 2015 14:00:44 +0000 (22:00 +0800)]
Merge pull request #6089 from SUSE/wip-init-ceph-getopt

init-ceph: use getopt to make option processing more flexible

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agosrc/init-ceph.in: remove unused variables 6089/head
Nathan Cutler [Sun, 27 Sep 2015 21:16:48 +0000 (23:16 +0200)]
src/init-ceph.in: remove unused variables

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agosrc/init-ceph.in: improve usage message
Nathan Cutler [Sun, 27 Sep 2015 19:16:11 +0000 (21:16 +0200)]
src/init-ceph.in: improve usage message

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agosrc/init-ceph.in: process command-line options using getopt
Nathan Cutler [Sun, 27 Sep 2015 19:11:00 +0000 (21:11 +0200)]
src/init-ceph.in: process command-line options using getopt

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

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoMerge pull request #6516 from trociny/wip-13719
Josh Durgin [Wed, 11 Nov 2015 07:55:37 +0000 (23:55 -0800)]
Merge pull request #6516 from trociny/wip-13719

librbd: perf section name: use hyphen to separate components

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorbd: make config changes actually apply 6520/head
Mykola Golub [Tue, 10 Nov 2015 09:27:05 +0000 (11:27 +0200)]
rbd: make config changes actually apply

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agotests: rbd/admin_socket: use xmlstarlet when parsing perf dump 6516/head
Mykola Golub [Tue, 10 Nov 2015 07:22:09 +0000 (09:22 +0200)]
tests: rbd/admin_socket: use xmlstarlet when parsing perf dump

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrbd: perf section name: use hyphen to separate components
Mykola Golub [Tue, 10 Nov 2015 06:32:17 +0000 (08:32 +0200)]
librbd: perf section name: use hyphen to separate components

"/" and "@" characters make invalid xml format output.

Fixes: #13719
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agodoc: Adding --cluster option to rbd man page.
Vikhyat Umrao [Mon, 19 Oct 2015 12:27:15 +0000 (17:57 +0530)]
doc: Adding --cluster option to rbd man page.

Fixes #13457
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6519 from kylinstorage/wip-revise-organization
Loic Dachary [Wed, 11 Nov 2015 06:05:12 +0000 (07:05 +0100)]
Merge pull request #6519 from kylinstorage/wip-revise-organization

revise organization

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #6525 from dillaman/wip-13636-jewel
Josh Durgin [Wed, 11 Nov 2015 05:43:52 +0000 (21:43 -0800)]
Merge pull request #6525 from dillaman/wip-13636-jewel

WorkQueue: new PointerWQ base class for ContextWQ

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge branch 'wip-11286' of https://github.com/dillaman/ceph
Josh Durgin [Wed, 11 Nov 2015 05:19:37 +0000 (21:19 -0800)]
Merge branch 'wip-11286' of https://github.com/dillaman/ceph

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #5987 from dillaman/wip-rbd-refactor
Josh Durgin [Wed, 11 Nov 2015 05:18:04 +0000 (21:18 -0800)]
Merge pull request #5987 from dillaman/wip-rbd-refactor

rbd: refactor cli command handling

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorbd: dynamically generated bash completion 6316/head
Jason Dillaman [Tue, 20 Oct 2015 01:52:49 +0000 (21:52 -0400)]
rbd: dynamically generated bash completion

The rbd CLI bash completion is now dynamically generated by extracting
the available commands and command options from the CLI application.

Fixes: #13494
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorbd: hidden 'bash-completion' command dumps all available commands
Jason Dillaman [Mon, 19 Oct 2015 19:07:50 +0000 (15:07 -0400)]
rbd: hidden 'bash-completion' command dumps all available commands

It also extracts all available options for a given command for use
which can be used by an improved bash completion script.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotests: updated rbd CLI --image-feature optional 5987/head
Jason Dillaman [Tue, 10 Nov 2015 18:55:39 +0000 (13:55 -0500)]
tests: updated rbd CLI --image-feature optional

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoceph_test_rados_api_tier: fix PromoteOn2ndRead for EC case 6373/head
Sage Weil [Sun, 25 Oct 2015 15:57:29 +0000 (11:57 -0400)]
ceph_test_rados_api_tier: fix PromoteOn2ndRead for EC case

The ec and non-ec cases are copy&pasted code.  Yuck.  This duplicates the
non-ec fix from 347ac0f8.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agorbd: corrected handling of '--image-feature' optional
Jason Dillaman [Tue, 10 Nov 2015 18:21:11 +0000 (13:21 -0500)]
rbd: corrected handling of '--image-feature' optional

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6488 from xiexingguo/xxg-wip-rados-cleanup
Kefu Chai [Tue, 10 Nov 2015 16:56:40 +0000 (00:56 +0800)]
Merge pull request #6488 from xiexingguo/xxg-wip-rados-cleanup

librados: do cleanup

Reviewed-by: Sebastien Ponce <sebastien.ponce@cern.ch>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6523 from dillaman/wip-13740
Josh Durgin [Tue, 10 Nov 2015 16:32:40 +0000 (08:32 -0800)]
Merge pull request #6523 from dillaman/wip-13740

librbd: perf counters might not be initialized on error

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoWorkQueue: new PointerWQ base class for ContextWQ 6525/head
Jason Dillaman [Tue, 7 Jul 2015 16:11:13 +0000 (12:11 -0400)]
WorkQueue: new PointerWQ base class for ContextWQ

The existing work queues do not properly function if added to a running
thread pool.  librbd uses a singleton thread pool which requires
dynamically adding/removing work queues as images are opened and closed.

Fixes: #13636
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: perf counters might not be initialized on error 6523/head
Jason Dillaman [Tue, 10 Nov 2015 13:20:13 +0000 (08:20 -0500)]
librbd: perf counters might not be initialized on error

Fixes: #13740
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoPendingReleaseNotes: document updated rbd CLI options
Jason Dillaman [Tue, 10 Nov 2015 12:59:03 +0000 (07:59 -0500)]
PendingReleaseNotes: document updated rbd CLI options

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6522 from branch-predictor/bp-temporary-mon-fix
Loic Dachary [Tue, 10 Nov 2015 11:54:55 +0000 (12:54 +0100)]
Merge pull request #6522 from branch-predictor/bp-temporary-mon-fix

mon: revert MonitorDBStore's WholeStoreIteratorImpl::get

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agomon: revert MonitorDBStore's WholeStoreIteratorImpl::get 6522/head
Piotr Dałek [Tue, 10 Nov 2015 11:50:55 +0000 (12:50 +0100)]
mon: revert MonitorDBStore's WholeStoreIteratorImpl::get

Revert MonitorDBStore's WholeStoreIteratorImpl::get method to state
before commit 66b7b920cf5a0a9c71212573ef47fb2c7ea9b5ff until better,
long-term solution for #13742 will be provided.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agorevise organization 6519/head
Li Wang [Tue, 10 Nov 2015 09:20:29 +0000 (17:20 +0800)]
revise organization

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
9 years agoMerge pull request #6394 from dillaman/wip-13560
Josh Durgin [Tue, 10 Nov 2015 07:30:42 +0000 (23:30 -0800)]
Merge pull request #6394 from dillaman/wip-13560

krbd: remove deprecated --quiet param from udevadm

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6508 from dillaman/wip-13726
Josh Durgin [Tue, 10 Nov 2015 07:28:46 +0000 (23:28 -0800)]
Merge pull request #6508 from dillaman/wip-13726

librbd: deadlock while attempting to flush AIO requests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6447 from dillaman/wip-13674
Josh Durgin [Tue, 10 Nov 2015 07:27:08 +0000 (23:27 -0800)]
Merge pull request #6447 from dillaman/wip-13674

librbd: resize should only update image size within header

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agointernal: remove unused local variables 6488/head
xiexingguo [Mon, 9 Nov 2015 14:14:09 +0000 (22:14 +0800)]
internal: remove unused local variables

Remove unused variables bl and bl2 in snap_list and ictx_refresh.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agolibrados: cast oid to object explicitly before call ioctx methods
xiexingguo [Sat, 7 Nov 2015 03:30:32 +0000 (11:30 +0800)]
librados: cast oid to object explicitly before call ioctx methods
Cast oid to object explicitly before call ioctx methods.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #6513 from ceph/revert-6419-wip-openssl
Yehuda Sadeh [Mon, 9 Nov 2015 23:26:12 +0000 (15:26 -0800)]
Merge pull request #6513 from ceph/revert-6419-wip-openssl

Revert 0374bb4a2f5054d606e4aba2d97b5e6765e781b0

9 years agoIoCtxImpl: remove unused variable sName
xiexingguo [Sat, 7 Nov 2015 03:14:02 +0000 (11:14 +0800)]
IoCtxImpl: remove unused variable sName

remove unused local variable sName in rollback.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoRevert 0374bb4a2f5054d606e4aba2d97b5e6765e781b0 6513/head
Yehuda Sadeh [Mon, 9 Nov 2015 23:24:29 +0000 (15:24 -0800)]
Revert 0374bb4a2f5054d606e4aba2d97b5e6765e781b0

9 years agoMerge pull request #6419 from ceph/wip-openssl
Yehuda Sadeh [Mon, 9 Nov 2015 21:56:29 +0000 (13:56 -0800)]
Merge pull request #6419 from ceph/wip-openssl

rgw: link against system openssl (instead of dlopen at runtime)

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6453 from trociny/wip-2468
Jason Dillaman [Mon, 9 Nov 2015 21:36:58 +0000 (16:36 -0500)]
Merge pull request #6453 from trociny/wip-2468

librbd: flush and invalidate cache via admin socket

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6511 from liewegas/wip-fix-kv
Sage Weil [Mon, 9 Nov 2015 19:30:14 +0000 (14:30 -0500)]
Merge pull request #6511 from liewegas/wip-fix-kv

kv: fix bug in kv key optimization

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoMerge branch 'wip-12955'
Yehuda Sadeh [Mon, 9 Nov 2015 19:03:40 +0000 (11:03 -0800)]
Merge branch 'wip-12955'

9 years agorgw: fix modification to index attrs when setting acls
brian [Wed, 23 Sep 2015 14:49:36 +0000 (09:49 -0500)]
rgw: fix modification to index attrs when setting acls

Fixes: #12955
 - add ACL change after initial population
 - populate bufferlist with object attributes

Signed-off-by: Brian Felton <bjfelton@gmail.com>
9 years agokv: fix string ctor usage 6511/head
Sage Weil [Mon, 9 Nov 2015 18:40:41 +0000 (13:40 -0500)]
kv: fix string ctor usage

When constructing a string from a char* there is only a single
length argument, no offset.  The 3 argument variant we were using
was converting to a std::string first (an prematurely terminating
on \0).

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6047 from Sandy4999/wip-13140
Yehuda Sadeh [Mon, 9 Nov 2015 18:38:46 +0000 (10:38 -0800)]
Merge pull request #6047 from Sandy4999/wip-13140

rgw: fix swift API returning incorrect account metadata

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6504 from dillaman/wip-13727
Josh Durgin [Mon, 9 Nov 2015 18:19:09 +0000 (10:19 -0800)]
Merge pull request #6504 from dillaman/wip-13727

tests: fix typo in TestClsRbd.snapshots test case

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agolibrbd: fixed deadlock while attempting to flush AIO requests 6508/head
Jason Dillaman [Mon, 9 Nov 2015 16:22:24 +0000 (11:22 -0500)]
librbd: fixed deadlock while attempting to flush AIO requests

In-flight AIO requests might force a flush if a snapshot was created
out-of-band.  The flush completion was previously invoked asynchronously,
potentially via the same thread worker handling the AIO request. This
resulted in the flush operation deadlocking since it can't complete.

Fixes: #13726
Backport: infernalis, hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotests: new test case to catch deadlock on RBD image refresh
Jason Dillaman [Mon, 9 Nov 2015 15:48:10 +0000 (10:48 -0500)]
tests: new test case to catch deadlock on RBD image refresh

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotests: librbd: admin socket commands to flush and invalidate cache 6453/head
Mykola Golub [Tue, 3 Nov 2015 11:24:36 +0000 (13:24 +0200)]
tests: librbd: admin socket commands to flush and invalidate cache

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrbd: flush and invalidate cache via admin socket
Mykola Golub [Tue, 3 Nov 2015 06:55:23 +0000 (08:55 +0200)]
librbd: flush and invalidate cache via admin socket

Fixes: #2468
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrbd: perf counter for cache invalidates
Mykola Golub [Wed, 4 Nov 2015 10:18:52 +0000 (12:18 +0200)]
librbd: perf counter for cache invalidates

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #6312 from liewegas/wip-kv
Sage Weil [Mon, 9 Nov 2015 14:10:37 +0000 (09:10 -0500)]
Merge pull request #6312 from liewegas/wip-kv

kv: optimize and clean up internal key/value interface

Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agotests: fix typo in TestClsRbd.snapshots test case 6504/head
Jason Dillaman [Mon, 9 Nov 2015 14:06:05 +0000 (09:06 -0500)]
tests: fix typo in TestClsRbd.snapshots test case

Fixes: #13727
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6300 from XinzeChi/wip-throttle-max
Sage Weil [Mon, 9 Nov 2015 14:04:25 +0000 (09:04 -0500)]
Merge pull request #6300 from XinzeChi/wip-throttle-max

common: fix reset max in Throttle using perf reset command

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #6364 from dillaman/wip-13491
Sage Weil [Mon, 9 Nov 2015 14:03:41 +0000 (09:03 -0500)]
Merge pull request #6364 from dillaman/wip-13491

osd: fix broken balance / localized read handling

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agotracing: fix librados signed/unsigned warnings 6312/head
Sage Weil [Sun, 8 Nov 2015 14:32:44 +0000 (09:32 -0500)]
tracing: fix librados signed/unsigned warnings

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/osd: disable extra iterator validation
Piotr Dałek [Thu, 29 Oct 2015 14:16:29 +0000 (15:16 +0100)]
os/osd: disable extra iterator validation

In a number of loops using ObjectMapIterator, the iterator is validated
twice, first as an loop break condition, then during iter->next() call.
Suppress the validation in next() method in those cases for better
performance.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoos/KeyValueDB: don't call self.valid() from next() and prev()
Piotr Dałek [Mon, 19 Oct 2015 06:32:10 +0000 (08:32 +0200)]
os/KeyValueDB: don't call self.valid() from next() and prev()

In most loops using ObjectMapIteratorImpl, there is a call to valid()
followed by a call to next(), which calls valid() again. Calling
valid() alone is particularly expensive, so don't do it twice if
possible.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agomon/MonitorDBStore: use single-key LevelDB::get() method
Piotr Dałek [Fri, 23 Oct 2015 13:46:20 +0000 (15:46 +0200)]
mon/MonitorDBStore: use single-key LevelDB::get() method

Make MonitorDBStore use single-key ::get() method for some performance
increase in heavy K/V workloads.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoos/DBObjectMap: use single-key LevelDB::get method
Piotr Dałek [Fri, 23 Oct 2015 13:44:47 +0000 (15:44 +0200)]
os/DBObjectMap: use single-key LevelDB::get method

Make FileStore use single-key ::get() method for some performance
increase in k/v-heavy workloads.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agokv/LevelDBStore: simpler code for single-key fetches
Piotr Dałek [Fri, 23 Oct 2015 13:22:52 +0000 (15:22 +0200)]
kv/LevelDBStore: simpler code for single-key fetches

Often there's a need to fetch value for a specified, single key. Publish
a new method in LevelDB that takes key and prefix and puts just value at
specified address, without the need for interim keysets or resultsets.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoos/LevelDBStore: faster LevelDBTransactionImpl::set
Piotr Dałek [Tue, 20 Oct 2015 13:11:08 +0000 (15:11 +0200)]
os/LevelDBStore: faster LevelDBTransactionImpl::set

This patch builds on Sage's idea to reduce bufferlist copying on
::set() calls. Initial patch reduced LevelDB's Slice generation
time from ~57ns to ~5ns in best-case scenario (bufferlist with
single bufferptr or contiguous bufferptrs), this patch reduces
slice generation time from ~57ns to ~11ns in worst case scenario
(under assumption that entire value length is at most 128KB),
leaving old code path for extremely-bad cases.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agokv/RocksDBStore: do not Delete before Put
Sage Weil [Tue, 20 Oct 2015 12:49:57 +0000 (08:49 -0400)]
kv/RocksDBStore: do not Delete before Put

A put implicitly overwrites the previous value.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agokv/LevelDBStore: do not Delete before Put
Sage Weil [Tue, 20 Oct 2015 12:49:42 +0000 (08:49 -0400)]
kv/LevelDBStore: do not Delete before Put

A put implicitly overwrites the previous value.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/ReplicatedPG: use bl-based setkeys/rmkeys
Sage Weil [Mon, 19 Oct 2015 18:54:06 +0000 (14:54 -0400)]
osd/ReplicatedPG: use bl-based setkeys/rmkeys

FIXME: what about the tracepoint?

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6502 from dachary/wip-13691-rados-test
Kefu Chai [Mon, 9 Nov 2015 13:53:51 +0000 (21:53 +0800)]
Merge pull request #6502 from dachary/wip-13691-rados-test

tests: fix test_rados_tools.sh rados lookup

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6403 from xinxinsh/wip-13500
Jason Dillaman [Mon, 9 Nov 2015 13:33:22 +0000 (08:33 -0500)]
Merge pull request #6403 from xinxinsh/wip-13500

optimize clone write path if object-map is enabled

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6494 from trociny/wip-13720
Jason Dillaman [Mon, 9 Nov 2015 13:20:33 +0000 (08:20 -0500)]
Merge pull request #6494 from trociny/wip-13720

librbd: start perf counters after id is initialized

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agotests: fix test_rados_tools.sh rados lookup 6502/head
Loic Dachary [Mon, 9 Nov 2015 11:57:11 +0000 (12:57 +0100)]
tests: fix test_rados_tools.sh rados lookup

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

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #6464 from dachary/wip-13691-rados-test
Kefu Chai [Mon, 9 Nov 2015 11:31:00 +0000 (19:31 +0800)]
Merge pull request #6464 from dachary/wip-13691-rados-test

tests: concatenate test_rados_test_tool from src and qa

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6497 from ukernel/wip-13714
John Spray [Mon, 9 Nov 2015 10:34:26 +0000 (10:34 +0000)]
Merge pull request #6497 from ukernel/wip-13714

client: use null snapc to check pool permission

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoclient: use null snapc to check pool permission 6497/head
Yan, Zheng [Mon, 9 Nov 2015 03:37:02 +0000 (11:37 +0800)]
client: use null snapc to check pool permission

snap inodes' ->snaprealm can be NULL, so dereferencing it in
check_pool_perm() can cause segment fault. The pool permission
check does not write any data, so it's safe to use null snapc.

Fixes: #13714
Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agolibrbd: start perf counters after id is initialized 6494/head
Mykola Golub [Sat, 7 Nov 2015 19:49:56 +0000 (21:49 +0200)]
librbd: start perf counters after id is initialized

So the perf counters section name has non-empty id.

Fixes: #13720
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #6228 from zhouyuan/fix_rgw_delete_exipre
Yehuda Sadeh [Fri, 6 Nov 2015 22:18:49 +0000 (14:18 -0800)]
Merge pull request #6228 from zhouyuan/fix_rgw_delete_exipre

rgw: fix response of delete expired objects

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6214 from jmunhoz/wip-bucket-request-payment
Yehuda Sadeh [Fri, 6 Nov 2015 22:16:41 +0000 (14:16 -0800)]
Merge pull request #6214 from jmunhoz/wip-bucket-request-payment

rgw: bucket request payment support

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #5969 from rzarzynski/wip-conf-md-add
Yehuda Sadeh [Fri, 6 Nov 2015 21:58:05 +0000 (13:58 -0800)]
Merge pull request #5969 from rzarzynski/wip-conf-md-add

rgw: extend rgw_extended_http_attrs to affect Swift accounts and containers as well

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #5938 from zhuangzeqiang/rgw-cerr
Yehuda Sadeh [Fri, 6 Nov 2015 21:48:43 +0000 (13:48 -0800)]
Merge pull request #5938 from zhuangzeqiang/rgw-cerr

rgw:  clarify the error message when trying to create an existed user

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6479 from ceph/wip-systemd-rbdmap
Sage Weil [Fri, 6 Nov 2015 21:24:26 +0000 (16:24 -0500)]
Merge pull request #6479 from ceph/wip-systemd-rbdmap

rbdmap: systemd support

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6467 from fullerdj/wip-13697
Jason Dillaman [Fri, 6 Nov 2015 19:39:58 +0000 (14:39 -0500)]
Merge pull request #6467 from fullerdj/wip-13697

cls_rbd: change object_map_update to return 0 on success, add logging

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6059 from dwj192/dwj-master-tip
Yehuda Sadeh [Fri, 6 Nov 2015 19:33:40 +0000 (11:33 -0800)]
Merge pull request #6059 from dwj192/dwj-master-tip

rgw:mdlog trim add usage prompt

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6408 from dwj192/swift-civetweb-ssl
Yehuda Sadeh [Fri, 6 Nov 2015 19:00:51 +0000 (11:00 -0800)]
Merge pull request #6408 from dwj192/swift-civetweb-ssl

rgw:swift use Civetweb ssl can not get right url

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agocls_rbd: change object_map_update to return 0 on success, add logging 6467/head
Douglas Fuller [Thu, 5 Nov 2015 00:58:12 +0000 (16:58 -0800)]
cls_rbd: change object_map_update to return 0 on success, add logging

The rbd_object_map_update class method returns the size of the data read
from the object map when no update is necessary. Change this to return 0
on success. Add error logging to differentiate error cases.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
9 years agoMerge pull request #6483 from ceph/wip-fix-doc-build
Kefu Chai [Fri, 6 Nov 2015 12:54:21 +0000 (20:54 +0800)]
Merge pull request #6483 from ceph/wip-fix-doc-build

doc/releases-notes: fix build error

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agodoc/releases-notes: fix build error 6483/head
Kefu Chai [Fri, 6 Nov 2015 12:52:21 +0000 (20:52 +0800)]
doc/releases-notes: fix build error

also change the release year of infernalis from 2014 to 2015

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agorbdmap: systemd support 6479/head
Boris Ranto [Mon, 2 Nov 2015 13:07:47 +0000 (14:07 +0100)]
rbdmap: systemd support

Fixes: #13374
Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #6476 from xiexingguo/xxg-wip-13703
Kefu Chai [Fri, 6 Nov 2015 08:35:51 +0000 (16:35 +0800)]
Merge pull request #6476 from xiexingguo/xxg-wip-13703

librados: wrongly passed in argument for stat command

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoceph.spec.in: add new cls_journal RADOS class 6034/head
Jason Dillaman [Fri, 6 Nov 2015 01:43:49 +0000 (20:43 -0500)]
ceph.spec.in: add new cls_journal RADOS class

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agojournal: FutureImpl shouldn't hold lock while invoking callbacks
Jason Dillaman [Tue, 1 Sep 2015 00:31:14 +0000 (20:31 -0400)]
journal: FutureImpl shouldn't hold lock while invoking callbacks

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotests: journal updates to support C++11
Jason Dillaman [Thu, 20 Aug 2015 01:58:04 +0000 (21:58 -0400)]
tests: journal updates to support C++11

Signed-off-by: Jason Dillaman <dillaman@redhat.com>