]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agolibrbd: removal of partially deleted image needs id lookup 9923/head
Jason Dillaman [Fri, 24 Jun 2016 14:52:16 +0000 (10:52 -0400)]
librbd: removal of partially deleted image needs id lookup

Several operations depend on the image id but if the image cannot be
opened to retrieve the id, these cleanup operations cannot be executed.

Fixes: http://tracker.ceph.com/issues/16471
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9945 from rjfd/wip-16488
Mykola Golub [Mon, 27 Jun 2016 16:13:12 +0000 (19:13 +0300)]
Merge pull request #9945 from rjfd/wip-16488

rbd-mirror: fix potential race condition in resync listener removal

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9962 from liewegas/wip-bluestore-unused
Sage Weil [Mon, 27 Jun 2016 15:18:13 +0000 (11:18 -0400)]
Merge pull request #9962 from liewegas/wip-bluestore-unused

os/bluestore: replace interval_set with bitmap for unused

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: replace bluestore_blob_t::unused from interval to bitmap 9962/head
Igor Fedotov [Fri, 24 Jun 2016 19:40:51 +0000 (22:40 +0300)]
os/bluestore: replace bluestore_blob_t::unused from interval to bitmap

Signed-off-by: Igor Fedotov <ifedotov@miranitis.com>
9 years agoos/bluestore: move add_unused call after csum initialization as it should depend...
Igor Fedotov [Fri, 24 Jun 2016 13:42:19 +0000 (16:42 +0300)]
os/bluestore: move add_unused call after csum initialization as it should depend on chunk size.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoos/bluestore: introduce bluestore_blob_t::get_chunk_size method
Igor Fedotov [Fri, 24 Jun 2016 13:30:45 +0000 (16:30 +0300)]
os/bluestore: introduce bluestore_blob_t::get_chunk_size method

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoos/bluestore: cleanup _pad_zeros to eliminate redundant length param
Igor Fedotov [Fri, 24 Jun 2016 12:05:28 +0000 (15:05 +0300)]
os/bluestore: cleanup _pad_zeros to eliminate redundant length param

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoMerge pull request #9959 from xiexingguo/xxg-wip-bluestore-cache-clean
Sage Weil [Mon, 27 Jun 2016 14:33:37 +0000 (10:33 -0400)]
Merge pull request #9959 from xiexingguo/xxg-wip-bluestore-cache-clean

os/bluestore: add  some sanity checks

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: audit buffer bytes before applying delta 9959/head
xie xingguo [Mon, 27 Jun 2016 13:44:12 +0000 (21:44 +0800)]
os/bluestore: audit buffer bytes before applying delta

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: fix typo
xie xingguo [Mon, 27 Jun 2016 06:27:38 +0000 (14:27 +0800)]
os/bluestore: fix typo

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: add sanity check when try to trim onode from cache
xie xingguo [Mon, 27 Jun 2016 01:29:50 +0000 (09:29 +0800)]
os/bluestore: add sanity check when try to trim onode from cache

We have verified that the onode size to be trimmed is positive ahead,
so "p" shall never point to onode_lru.begin() below here.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #9951 from Yan-waller/yj-wip-rgwtestcompilingwarning
Casey Bodley [Mon, 27 Jun 2016 13:33:30 +0000 (09:33 -0400)]
Merge pull request #9951 from Yan-waller/yj-wip-rgwtestcompilingwarning

rgw/test: use variable type 'size_t' instead of 'int'

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #9839 from renhwztetecs/renhw-wip-cdir-cleanup
John Spray [Mon, 27 Jun 2016 13:07:15 +0000 (14:07 +0100)]
Merge pull request #9839 from renhwztetecs/renhw-wip-cdir-cleanup

mds: unused classes and cleanup

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9677 from stiopaa1/mds_removeUnneededLineAndAddConst
John Spray [Mon, 27 Jun 2016 13:03:57 +0000 (14:03 +0100)]
Merge pull request #9677 from stiopaa1/mds_removeUnneededLineAndAddConst

mds/SessionMap.h: remove duplicated line and add const to member functions

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #9877 from batrick/mds-comm-locks
John Spray [Mon, 27 Jun 2016 12:22:39 +0000 (13:22 +0100)]
Merge pull request #9877 from batrick/mds-comm-locks

mds: add missing mds_lock locks

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9942 from jcsp/wip-doc-netdev
Yan, Zheng [Mon, 27 Jun 2016 12:07:16 +0000 (07:07 -0500)]
Merge pull request #9942 from jcsp/wip-doc-netdev

doc: add _netdev to cephfs fstab lines

9 years agoMerge pull request #9949 from trociny/fix-use-after-free
Jason Dillaman [Mon, 27 Jun 2016 11:51:08 +0000 (07:51 -0400)]
Merge pull request #9949 from trociny/fix-use-after-free

librbd: potential use after free on refresh error

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: potential use after free on refresh error 9949/head
Mykola Golub [Mon, 27 Jun 2016 11:45:02 +0000 (14:45 +0300)]
librbd: potential use after free on refresh error

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agorgw/test: use variable type 'size_t' instead of 'int' seems to be more reasonable 9951/head
Yan Jun [Mon, 27 Jun 2016 10:57:36 +0000 (18:57 +0800)]
rgw/test: use variable type 'size_t' instead of 'int' seems to be more reasonable

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
9 years agorbd-mirror: image-replayer: Fix bug in resync listener remotion 9945/head
Ricardo Dias [Mon, 27 Jun 2016 10:07:41 +0000 (11:07 +0100)]
rbd-mirror: image-replayer: Fix bug in resync listener remotion

Fixes: http://tracker.ceph.com/issues/16488
Signed-off-by: Ricardo Dias <rdias@suse.com>
9 years agodoc: add _netdev to cephfs fstab lines 9942/head
John Spray [Mon, 27 Jun 2016 09:39:02 +0000 (10:39 +0100)]
doc: add _netdev to cephfs fstab lines

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9742 from xiexingguo/xxg-wip-server_cmode
Yan, Zheng [Mon, 27 Jun 2016 06:42:27 +0000 (01:42 -0500)]
Merge pull request #9742 from xiexingguo/xxg-wip-server_cmode

mds/server: fix rare race when waitting for osdmap

9 years agomds/server: fix rare race when waitting for osdmap 9742/head
xie xingguo [Thu, 16 Jun 2016 09:16:28 +0000 (17:16 +0800)]
mds/server: fix rare race when waitting for osdmap

If wait_for_map() returns true, we have got the requested osdmap
at the specified epoch, so we shall try again to do further
verification whether we have the specific pool or not.

The above case can happen because we drop the objecter internal
rwlock during the switch between the objecter->with_osdmap()
and objecter->wait_for_map() methods.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #9922 from dillaman/wip-16470
Mykola Golub [Sat, 25 Jun 2016 17:00:30 +0000 (20:00 +0300)]
Merge pull request #9922 from dillaman/wip-16470

librbd: do not propagate mirror status notification failures

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9913 from xiexingguo/xxg-wip-fix-bitallocatorut
Sage Weil [Sat, 25 Jun 2016 16:51:35 +0000 (12:51 -0400)]
Merge pull request #9913 from xiexingguo/xxg-wip-fix-bitallocatorut

os/bluestore: fix ut failure when switching to bitmap-allocator

Reviewed-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
9 years agoos/bluestore: fix memory leak during bit_alloc ut 9913/head
xie xingguo [Sat, 25 Jun 2016 08:21:11 +0000 (16:21 +0800)]
os/bluestore: fix memory leak during bit_alloc ut

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: use std limits for int16_t/int32_t
xie xingguo [Sat, 25 Jun 2016 00:50:10 +0000 (08:50 +0800)]
os/bluestore: use std limits for int16_t/int32_t

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: update comment
xie xingguo [Sat, 25 Jun 2016 00:43:04 +0000 (08:43 +0800)]
os/bluestore: update comment

We have decreased the default concurrent scans to 1,
so the comment is misleading.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: allow total blocks fall into one single zone
xie xingguo [Sat, 25 Jun 2016 00:36:24 +0000 (08:36 +0800)]
os/bluestore: allow total blocks fall into one single zone

So the blusfs ut will be happy with this.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: update output of offset/length pair to hex version
xie xingguo [Fri, 24 Jun 2016 02:23:43 +0000 (10:23 +0800)]
os/bluestore: update output of offset/length pair to hex version

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #9905 from dillaman/wip-16450
Mykola Golub [Fri, 24 Jun 2016 19:21:52 +0000 (22:21 +0300)]
Merge pull request #9905 from dillaman/wip-16450

librbd: mark exclusive lock as released after journal is closed

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9899 from dillaman/wip-16350
Mykola Golub [Fri, 24 Jun 2016 19:21:11 +0000 (22:21 +0300)]
Merge pull request #9899 from dillaman/wip-16350

librbd: ignore missing object map during snap remove

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9896 from dillaman/wip-16446
Mykola Golub [Fri, 24 Jun 2016 19:20:24 +0000 (22:20 +0300)]
Merge pull request #9896 from dillaman/wip-16446

librbd: delete ExclusiveLock instance when switching to snapshot

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9895 from dillaman/wip-16445
Mykola Golub [Fri, 24 Jun 2016 19:19:19 +0000 (22:19 +0300)]
Merge pull request #9895 from dillaman/wip-16445

librbd: ignore snap unprotect -EBUSY errors during journal replay

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9746 from xiexingguo/xxg-wip-mdcache_hoir
John Spray [Fri, 24 Jun 2016 14:58:06 +0000 (15:58 +0100)]
Merge pull request #9746 from xiexingguo/xxg-wip-mdcache_hoir

mds/MDCache: fix leak of MMDSOpenInoReply

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agolibrbd: do not propagate mirror status notification failures 9922/head
Jason Dillaman [Fri, 24 Jun 2016 14:03:53 +0000 (10:03 -0400)]
librbd: do not propagate mirror status notification failures

These should be treated as a broadcast since no ACK is required. The
peer will eventually see the notification or its watch will have timed
out and it will re-sync.

Fixes: http://tracker.ceph.com/issues/16470
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9921 from liewegas/wip-bluestore-fix-discard
Igor Fedotov [Fri, 24 Jun 2016 13:20:17 +0000 (15:20 +0200)]
Merge pull request #9921 from liewegas/wip-bluestore-fix-discard

os/bluestore: fix discard

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoos/bluestore: un-inline some 2Q methods
Sage Weil [Thu, 23 Jun 2016 21:09:20 +0000 (17:09 -0400)]
os/bluestore: un-inline some 2Q methods

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fix buffer discard accounting for 2Q
Sage Weil [Thu, 23 Jun 2016 21:08:32 +0000 (17:08 -0400)]
os/bluestore: fix buffer discard accounting for 2Q

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: simplify and fix blob invalidation 9921/head
Sage Weil [Fri, 24 Jun 2016 12:56:44 +0000 (08:56 -0400)]
os/bluestore: simplify and fix blob invalidation

We can't invalidate based on any particular lextent we drop, as there may
be other lextents (in this onode or in another one) that reference the
same data.  This can break even a single multi-write transaction that
relies on the buffer cache to fill out blocks.

Fix by just doing the unallocated version unconditionally.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9920 from zhouyuan/librd_remove
Jason Dillaman [Fri, 24 Jun 2016 12:56:28 +0000 (08:56 -0400)]
Merge pull request #9920 from zhouyuan/librd_remove

librbd: remove unused code block

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9916 from xiexingguo/xxg-wip-fix-decode-bnode
Sage Weil [Fri, 24 Jun 2016 12:38:32 +0000 (08:38 -0400)]
Merge pull request #9916 from xiexingguo/xxg-wip-fix-decode-bnode

os/bluestore: fix decoding pool from bnode key

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9910 from tchaikov/wip-cmake-drop-ceph-ra
Sage Weil [Fri, 24 Jun 2016 12:32:37 +0000 (08:32 -0400)]
Merge pull request #9910 from tchaikov/wip-cmake-drop-ceph-ra

cmake: ocf: drop ceph ra

9 years agolibrbd: memory leak possible if journal op event failed 9895/head
Jason Dillaman [Thu, 23 Jun 2016 13:03:24 +0000 (09:03 -0400)]
librbd: memory leak possible if journal op event failed

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: trivial fix to remove unused code block 9920/head
Yuan Zhou [Fri, 24 Jun 2016 07:44:28 +0000 (15:44 +0800)]
librbd: trivial fix to remove unused code block

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
9 years agoos/bluestore: literal tidy-ups 9916/head
xie xingguo [Fri, 24 Jun 2016 07:13:15 +0000 (15:13 +0800)]
os/bluestore: literal tidy-ups

There error codes are improperly arranged, which looks weird.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: make fsck can catch bad bnode key too
xie xingguo [Fri, 24 Jun 2016 06:57:30 +0000 (14:57 +0800)]
os/bluestore: make fsck can catch bad bnode key too

The case may be rare but the check shall do no harm.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: fix decoding pool from bnode key
xie xingguo [Fri, 24 Jun 2016 06:53:39 +0000 (14:53 +0800)]
os/bluestore: fix decoding pool from bnode key

The current result is raw and not properly translated.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agocmake: ocf: drop ceph ra 9910/head
Kefu Chai [Fri, 24 Jun 2016 01:30:02 +0000 (09:30 +0800)]
cmake: ocf: drop ceph ra

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoos/bluestore: default to bitmap allocator
Sage Weil [Thu, 23 Jun 2016 20:48:17 +0000 (16:48 -0400)]
os/bluestore: default to bitmap allocator

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9906 from stiopaa1/msg_asyncmess_workepool_deleteCopycontrAndAss
Kefu Chai [Fri, 24 Jun 2016 01:16:20 +0000 (09:16 +0800)]
Merge pull request #9906 from stiopaa1/msg_asyncmess_workepool_deleteCopycontrAndAss

msg/AsyncMessenger:delete cpy constr and assign op

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9273 from stiopaa1/osd_removeClosingBrace_
David Zafman [Thu, 23 Jun 2016 21:59:55 +0000 (14:59 -0700)]
Merge pull request #9273 from stiopaa1/osd_removeClosingBrace_

osd/OSD.h: remove closing brace } from comment

Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #9842 from jcsp/wip-vstart-len
Sage Weil [Thu, 23 Jun 2016 21:43:11 +0000 (17:43 -0400)]
Merge pull request #9842 from jcsp/wip-vstart-len

vstart: set osd_check_max_object_name_len_on_startup

9 years agoMerge pull request #8784 from ddiss/vstart_ifconfig
Sage Weil [Thu, 23 Jun 2016 21:24:58 +0000 (17:24 -0400)]
Merge pull request #8784 from ddiss/vstart_ifconfig

vstart: replace ifconfig usage with ip addr

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
9 years agoMerge pull request #9456 from ukernel/wip-msg-seq
Samuel Just [Thu, 23 Jun 2016 20:07:13 +0000 (13:07 -0700)]
Merge pull request #9456 from ukernel/wip-msg-seq

msg: don't truncate message sequence to 32-bits

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #9248 from xiexingguo/xxg-wip-expose-requirejewel
Samuel Just [Thu, 23 Jun 2016 20:03:34 +0000 (13:03 -0700)]
Merge pull request #9248 from xiexingguo/xxg-wip-expose-requirejewel

mon: expose require_jewel_osds flag to user

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #9305 from xiexingguo/xxg-wip-replicatedpg-fixup
Samuel Just [Thu, 23 Jun 2016 20:01:45 +0000 (13:01 -0700)]
Merge pull request #9305 from xiexingguo/xxg-wip-replicatedpg-fixup

osd/ReplicatedPG: minor fixes and cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #9904 from cbodley/wip-cmake-vstart
Ali Maredia [Thu, 23 Jun 2016 18:48:06 +0000 (14:48 -0400)]
Merge pull request #9904 from cbodley/wip-cmake-vstart

cmake: add radosgw to 'make vstart' target

Reviewed-by: Ali Maredia <amaredia@redhat.com>
9 years agomsg/AsyncMessenger:delete cpy constr and assign op 9906/head
Michal Jarzabek [Thu, 23 Jun 2016 18:03:48 +0000 (19:03 +0100)]
msg/AsyncMessenger:delete cpy constr and assign op

Delete copy constructor and assignment operator, so the checking can
be moved from linking to compile time - as it was when the above
where only declared, but not defined.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
9 years agolibrbd: mark exclusive lock as released after journal is closed 9905/head
Jason Dillaman [Thu, 23 Jun 2016 17:34:56 +0000 (13:34 -0400)]
librbd: mark exclusive lock as released after journal is closed

Fixes: http://tracker.ceph.com/issues/16450
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9882 from dillaman/wip-16364
Mykola Golub [Thu, 23 Jun 2016 17:26:11 +0000 (20:26 +0300)]
Merge pull request #9882 from dillaman/wip-16364

librbd: fix crash while using advisory locks with R/O image

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9881 from dillaman/wip-16433
Mykola Golub [Thu, 23 Jun 2016 17:25:38 +0000 (20:25 +0300)]
Merge pull request #9881 from dillaman/wip-16433

librbd: journal::Replay no longer holds lock while completing callback

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9867 from dillaman/wip-16411
Mykola Golub [Thu, 23 Jun 2016 17:25:03 +0000 (20:25 +0300)]
Merge pull request #9867 from dillaman/wip-16411

rbd-mirror: disallow proxied maintenance ops to non-primary images

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agocmake: add cls libraries as radosgw dependencies 9904/head
Casey Bodley [Thu, 23 Jun 2016 16:54:27 +0000 (12:54 -0400)]
cmake: add cls libraries as radosgw dependencies

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #9880 from stiopaa1/msg_asyncConn_move_workerpool
Sage Weil [Thu, 23 Jun 2016 16:25:04 +0000 (12:25 -0400)]
Merge pull request #9880 from stiopaa1/msg_asyncConn_move_workerpool

msg/async: mv WorkerPool class to cc file

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8818 from SUSE/wip-drop-ceph-ra
Sage Weil [Thu, 23 Jun 2016 16:18:54 +0000 (12:18 -0400)]
Merge pull request #8818 from SUSE/wip-drop-ceph-ra

ocf: drop ceph Resource Agent

Reviewed-by: Tim Serong <tserong@suse.com>
9 years agocmake: add ceph-mds to 'make vstart' target only if WITH_MDS
Casey Bodley [Thu, 23 Jun 2016 16:05:57 +0000 (12:05 -0400)]
cmake: add ceph-mds to 'make vstart' target only if WITH_MDS

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agocmake: add radosgw, radosgw-admin to 'make vstart' target
Casey Bodley [Thu, 23 Jun 2016 16:05:09 +0000 (12:05 -0400)]
cmake: add radosgw, radosgw-admin to 'make vstart' target

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #9902 from liewegas/wip-cmake-tests
Kefu Chai [Thu, 23 Jun 2016 15:15:02 +0000 (23:15 +0800)]
Merge pull request #9902 from liewegas/wip-cmake-tests

cmake: do not exclude tests from 'make all'

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agolibrbd: ignore missing object map during snap remove 9899/head
Jason Dillaman [Thu, 23 Jun 2016 14:25:54 +0000 (10:25 -0400)]
librbd: ignore missing object map during snap remove

Fixes: http://tracker.ceph.com/issues/16350
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agocmake: do not exclude tests from 'make all' 9902/head
Sage Weil [Wed, 22 Jun 2016 13:28:39 +0000 (09:28 -0400)]
cmake: do not exclude tests from 'make all'

This prevent us from doing 'make' and then 'ctest ...'.
It is also super annoying in general to not verify the
tests compile with a simple 'make'.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9870 from liewegas/wip-cmake
Sage Weil [Thu, 23 Jun 2016 13:28:27 +0000 (09:28 -0400)]
Merge pull request #9870 from liewegas/wip-cmake

do_cmake.sh: simple cmake helper

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoREADME.md: note about builds (they are for development!) 9870/head
Sage Weil [Thu, 23 Jun 2016 13:28:09 +0000 (09:28 -0400)]
README.md: note about builds (they are for development!)

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agolibrbd: delete ExclusiveLock instance when switching to snapshot 9896/head
Jason Dillaman [Thu, 23 Jun 2016 13:23:32 +0000 (09:23 -0400)]
librbd: delete ExclusiveLock instance when switching to snapshot

Fixes: http://tracker.ceph.com/issues/16446
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9887 from ceph/wip-cmake
Sage Weil [Thu, 23 Jun 2016 13:14:44 +0000 (09:14 -0400)]
Merge pull request #9887 from ceph/wip-cmake

cmake: fix linking issues

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9890 from xiexingguo/xxg-wip-fix-bfs-alloc
Sage Weil [Thu, 23 Jun 2016 12:57:05 +0000 (08:57 -0400)]
Merge pull request #9890 from xiexingguo/xxg-wip-fix-bfs-alloc

os/bluestore: shutdown allocator of bluefs more gracefully

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agolibrbd: ignore snap unprotect -EBUSY errors during journal replay
Jason Dillaman [Thu, 23 Jun 2016 12:45:59 +0000 (08:45 -0400)]
librbd: ignore snap unprotect -EBUSY errors during journal replay

Fixes: http://tracker.ceph.com/issues/16445
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoos/bluestore: remove duplicated reset of buf 9890/head
xie xingguo [Thu, 23 Jun 2016 12:10:50 +0000 (20:10 +0800)]
os/bluestore: remove duplicated reset of buf

buf->reset() will do the clear up effectively.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: add sanity check for underflow
xie xingguo [Thu, 23 Jun 2016 12:09:01 +0000 (20:09 +0800)]
os/bluestore: add sanity check for underflow

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: use hex version for offset/length
xie xingguo [Thu, 23 Jun 2016 07:29:06 +0000 (15:29 +0800)]
os/bluestore: use hex version for offset/length

We update bluestore this way a couple of days ago.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: kill dead code
xie xingguo [Thu, 23 Jun 2016 06:26:42 +0000 (14:26 +0800)]
os/bluestore: kill dead code

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: shutdown allocator of bluefs more gracefully
xie xingguo [Thu, 23 Jun 2016 06:21:53 +0000 (14:21 +0800)]
os/bluestore: shutdown allocator of bluefs more gracefully

The new BitAllocator requires we call shutdown() explicitly,
thus we shall fix it here before we apply to the new BitAllocator.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agocmake: add gtest to ceph_test_snap_mapper 9887/head
Ali Maredia [Wed, 22 Jun 2016 21:41:59 +0000 (17:41 -0400)]
cmake: add gtest to ceph_test_snap_mapper

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agocmake: test_rbd_mirror_image_replay missing ContextCompletion.cc
Ali Maredia [Wed, 22 Jun 2016 21:43:28 +0000 (17:43 -0400)]
cmake: test_rbd_mirror_image_replay missing ContextCompletion.cc

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agocmake: link libradostriper with librados_objs
Kefu Chai [Thu, 23 Jun 2016 03:51:01 +0000 (11:51 +0800)]
cmake: link libradostriper with librados_objs

create an OBJECT target for libradostriper, so it is able to access the
internal symbols of librados.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: remove visibility flags from libcephfs,libradosstriper
Kefu Chai [Thu, 23 Jun 2016 02:53:39 +0000 (10:53 +0800)]
cmake: remove visibility flags from libcephfs,libradosstriper

because libradosstriper does not put the `__attribute__ ((visibility
("default")))` specifier on the exported class/methods. we cannot
add the visibility to this library yet. the same applies to libcephfs.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: move rados_snap_set_diff_obj into librbd_internal
Kefu Chai [Thu, 23 Jun 2016 02:40:28 +0000 (10:40 +0800)]
cmake: move rados_snap_set_diff_obj into librbd_internal

ceph_test_librbd use it and links directly against librbd_internal
instead of against librbd

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agolibrbd: fix crash while using advisory locks with R/O image 9882/head
Jason Dillaman [Wed, 22 Jun 2016 22:19:52 +0000 (18:19 -0400)]
librbd: fix crash while using advisory locks with R/O image

Fixes: http://tracker.ceph.com/issues/16364
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: journal::Replay no longer holds lock while completing callback 9881/head
Jason Dillaman [Wed, 22 Jun 2016 22:09:29 +0000 (18:09 -0400)]
librbd: journal::Replay no longer holds lock while completing callback

Fixes: http://tracker.ceph.com/issues/16433
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9207 from rjfd/wip-15670
Jason Dillaman [Wed, 22 Jun 2016 22:03:22 +0000 (18:03 -0400)]
Merge pull request #9207 from rjfd/wip-15670

rbd-mirror: image resync

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agomsg/AsyncMessenger: mv WorkerPool class to cc file 9880/head
Michal Jarzabek [Wed, 22 Jun 2016 21:59:59 +0000 (22:59 +0100)]
msg/AsyncMessenger: mv WorkerPool class to cc file

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
9 years agoREADME.md: drop autotools instructions
Sage Weil [Wed, 22 Jun 2016 18:17:55 +0000 (14:17 -0400)]
README.md: drop autotools instructions

Never look back!

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoREADME.md: simplify cmake instructions around do_cmake.sh
Sage Weil [Wed, 22 Jun 2016 18:13:28 +0000 (14:13 -0400)]
README.md: simplify cmake instructions around do_cmake.sh

Be prescriptive about the 'build' subdir, at least for the purposes of
this document (developer quick start).

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoREADME.md: drop dependencies section
Sage Weil [Wed, 22 Jun 2016 18:12:48 +0000 (14:12 -0400)]
README.md: drop dependencies section

This is autotools-specific, and I'm not sure we need to document it here.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodo_cmake.sh: simple cmake helper
Sage Weil [Wed, 22 Jun 2016 15:59:48 +0000 (11:59 -0400)]
do_cmake.sh: simple cmake helper

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: add missing mds_lock locks 9877/head
Patrick Donnelly [Wed, 22 Jun 2016 19:20:52 +0000 (15:20 -0400)]
mds: add missing mds_lock locks

These commands traverse the mdcache and/or subtrees and so must have the
mds_lock.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
9 years agomds: move mds_lock to command subfuncs
Patrick Donnelly [Wed, 22 Jun 2016 19:20:10 +0000 (15:20 -0400)]
mds: move mds_lock to command subfuncs

Again, to make the lock management consistent with the other command
sub-functions.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
9 years agomds: use Locker to manage mds_lock
Patrick Donnelly [Wed, 22 Jun 2016 19:18:48 +0000 (15:18 -0400)]
mds: use Locker to manage mds_lock

This makes these blocks consistent with the others for trivial management of
mds_lock.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
9 years agoMerge pull request #9626 from liewegas/wip-bluestore-2q
Sage Weil [Wed, 22 Jun 2016 19:09:23 +0000 (15:09 -0400)]
Merge pull request #9626 from liewegas/wip-bluestore-2q

os/bluestore: implement 2Q buffer cache policy

9 years agoceph_test_objectstore: define matrixes over config options and write sizes 9626/head
Sage Weil [Wed, 22 Jun 2016 15:21:54 +0000 (11:21 -0400)]
ceph_test_objectstore: define matrixes over config options and write sizes

These replace a few of the ad hoc synthetic tests.

Signed-off-by: Sage Weil <sage@redhat.com>