]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agotests: ceph-disk: force debug monc = 0 11534/head
Loic Dachary [Tue, 18 Oct 2016 15:33:23 +0000 (17:33 +0200)]
tests: ceph-disk: force debug monc = 0

The sh function will collect both stderr and stdout and debug
will mess the json parsing.

Fixes: http://tracker.ceph.com/issues/17607
Signed-off-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #10239 from weiqiaomiao/wqm-wip-setolh
Orit Wasserman [Tue, 18 Oct 2016 10:20:16 +0000 (12:20 +0200)]
Merge pull request #10239 from weiqiaomiao/wqm-wip-setolh

rgw: should assign 'olh_bl" to state.attrset[RGW_ATTR_OLH_ID_TAG] instead of 'bl'
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #11324 from yehudasa/wip-14589
Orit Wasserman [Tue, 18 Oct 2016 09:40:34 +0000 (11:40 +0200)]
Merge pull request #11324 from yehudasa/wip-14589

rgw: dump objects in RGWBucket::check_object_index()
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #11432 from hansbogert/patch-3
Kefu Chai [Tue, 18 Oct 2016 09:19:15 +0000 (17:19 +0800)]
Merge pull request #11432 from hansbogert/patch-3

doc: Update install-ceph-gateway.rst

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11027 from liewegas/wip-denc
Sage Weil [Tue, 18 Oct 2016 02:21:20 +0000 (21:21 -0500)]
Merge pull request #11027 from liewegas/wip-denc

fast denc encoding

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Allen Samuels <allen.samuels@sandisk.com>
8 years agoMerge remote-tracking branch 'gh/kraken'
Sage Weil [Mon, 17 Oct 2016 17:35:45 +0000 (13:35 -0400)]
Merge remote-tracking branch 'gh/kraken'

8 years agocmake: find GIT_VER variables if there is no .git dir
Ali Maredia [Fri, 14 Oct 2016 18:02:17 +0000 (14:02 -0400)]
cmake: find GIT_VER variables if there is no .git dir

find CEPH_GIT_VER & CEPH_GIT_NICE_VER if there is no
ceph/.git dir by parsing ceph/src/.git_version.

scenario is for building from source tarballs generated
by make-dist, since make-dist generates .git_version
by running make_version, and then packs .git_version
into the tarball.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
(cherry picked from commit c5c6b59f296f0ace3a6cfd939027118e82ab50a4)

8 years agoMerge pull request #11502 from liewegas/wip-bluestore-keybug
Sage Weil [Mon, 17 Oct 2016 15:47:10 +0000 (10:47 -0500)]
Merge pull request #11502 from liewegas/wip-bluestore-keybug

os/bluestore: fix escaping of chars > 0x80

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/kstore: fix escaping of chars > 0x80 in keys 11502/head
Sage Weil [Fri, 14 Oct 2016 19:35:58 +0000 (15:35 -0400)]
os/kstore: fix escaping of chars > 0x80 in keys

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix escaping of odd chars >0x80 in keys
Sage Weil [Fri, 14 Oct 2016 19:35:33 +0000 (15:35 -0400)]
os/bluestore: fix escaping of odd chars >0x80 in keys

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph_test_objectstore: test unprintable chars
Sage Weil [Fri, 14 Oct 2016 19:35:06 +0000 (15:35 -0400)]
ceph_test_objectstore: test unprintable chars

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11521 from markhpc/wip-send_inline
Sage Weil [Mon, 17 Oct 2016 14:36:09 +0000 (09:36 -0500)]
Merge pull request #11521 from markhpc/wip-send_inline

msg/async: set ms_async_send_inline to false to improve small randread iops

8 years agoSet ms_async_send_inline to false to improve small randread iops. 11521/head
Mark Nelson [Mon, 17 Oct 2016 14:10:09 +0000 (09:10 -0500)]
Set ms_async_send_inline to false to improve small randread iops.

Signed-off-by: Mark Nelson <mnelson@redhat.com>
8 years agoMerge pull request #11262 from jcsp/wip-17270-master
John Spray [Mon, 17 Oct 2016 12:06:42 +0000 (14:06 +0200)]
Merge pull request #11262 from jcsp/wip-17270-master

Revert "osdc: After write try merge bh."

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years ago11.0.2 v11.0.2
Jenkins Build Slave User [Mon, 17 Oct 2016 11:16:50 +0000 (11:16 +0000)]
11.0.2

8 years agoMerge pull request #11211 from ceph/wip-no-recordlock-test
John Spray [Mon, 17 Oct 2016 11:04:41 +0000 (13:04 +0200)]
Merge pull request #11211 from ceph/wip-no-recordlock-test

test: temporarily remove fork()ing flock tests

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11440 from ceph/wip-jlayton-linkref
John Spray [Mon, 17 Oct 2016 10:37:47 +0000 (12:37 +0200)]
Merge pull request #11440 from ceph/wip-jlayton-linkref

client: don't take extra target inode reference in ll_link

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11421 from ceph/wip-jlayton-cephfs
John Spray [Mon, 17 Oct 2016 10:36:22 +0000 (12:36 +0200)]
Merge pull request #11421 from ceph/wip-jlayton-cephfs

Small pile of random cephfs fixes and cleanup

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11515 from badone/wip-find_best_info-typos
Brad Hubbard [Mon, 17 Oct 2016 04:48:13 +0000 (14:48 +1000)]
Merge pull request #11515 from badone/wip-find_best_info-typos

osd: Fix typos in PG::find_best_info

Reviewed-by: xiexingguo <xie.xingguo@zte.com.cn>
8 years agoosd: Fix typos in PG::find_best_info 11515/head
Brad Hubbard [Mon, 17 Oct 2016 03:11:53 +0000 (13:11 +1000)]
osd: Fix typos in PG::find_best_info

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #11513 from badone/clear_primary_state-typo
Sage Weil [Mon, 17 Oct 2016 02:27:15 +0000 (21:27 -0500)]
Merge pull request #11513 from badone/clear_primary_state-typo

osd: fix typo in PG::clear_primary_state

8 years agoMerge pull request #11514 from xiexingguo/xxg-wip-bluestore-1015
Sage Weil [Mon, 17 Oct 2016 02:27:00 +0000 (21:27 -0500)]
Merge pull request #11514 from xiexingguo/xxg-wip-bluestore-1015

os/bluestore: formatting nits

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoosd: fix typo in PG::clear_primary_state 11513/head
Brad Hubbard [Sun, 16 Oct 2016 22:03:51 +0000 (08:03 +1000)]
osd: fix typo in PG::clear_primary_state

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agobuffer: make iterator copy to ptr handle len==0 11027/head
Sage Weil [Thu, 29 Sep 2016 14:21:32 +0000 (10:21 -0400)]
buffer: make iterator copy to ptr handle len==0

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: fix * zero placement
Sage Weil [Tue, 27 Sep 2016 18:18:41 +0000 (14:18 -0400)]
buffer: fix * zero placement

Back in 46522cf0d27ad7d236f61bf132c915210754a0f4 we broke the newline
placement for the * lines.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph-dencoder: don't dump usage on every error
Sage Weil [Tue, 27 Sep 2016 18:14:46 +0000 (14:14 -0400)]
ceph-dencoder: don't dump usage on every error

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph-dencoder: add hexdump command
Sage Weil [Tue, 27 Sep 2016 18:11:35 +0000 (14:11 -0400)]
ceph-dencoder: add hexdump command

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: do deep encode of onode
Sage Weil [Thu, 22 Sep 2016 19:52:19 +0000 (15:52 -0400)]
os/bluestore: do deep encode of onode

Avoid an inevitable rebuild() since we have to pass this to rocksdb as a
single memory buffer anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: add a 'deep' append mode
Sage Weil [Thu, 22 Sep 2016 19:51:39 +0000 (15:51 -0400)]
buffer: add a 'deep' append mode

Do the copy up-front.  This is useful if we know our target buffer must
be a contiguous buffer (e.g., because it will be passed to a kv store).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: log onode component sizes
Sage Weil [Thu, 22 Sep 2016 19:51:55 +0000 (15:51 -0400)]
os/bluestore: log onode component sizes

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: contiguous_appender::get_logical_offset
Sage Weil [Thu, 22 Sep 2016 19:51:01 +0000 (15:51 -0400)]
buffer: contiguous_appender::get_logical_offset

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore/BlueFS: write into page-aligned buffers from rocksdb
Sage Weil [Thu, 22 Sep 2016 19:42:06 +0000 (15:42 -0400)]
os/bluestore/BlueFS: write into page-aligned buffers from rocksdb

The BlueRocksEnv uses the append(const char *, size_t) appender.  Ensure
that this data is copied into a page-aligned buffer, and that we "pad" the
write out with the remainder of the page.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: add page_aligned_appender
Sage Weil [Wed, 21 Sep 2016 18:14:15 +0000 (14:14 -0400)]
buffer: add page_aligned_appender

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_bluefs: use append(const char*, size_t)
Sage Weil [Tue, 27 Sep 2016 19:20:43 +0000 (15:20 -0400)]
unittest_bluefs: use append(const char*, size_t)

The bufferlist one is for internal use only.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: convert internal types to denc
Sage Weil [Thu, 15 Sep 2016 15:49:32 +0000 (11:49 -0400)]
os/bluestore: convert internal types to denc

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: denc_traits for osd_reqid_t
Sage Weil [Wed, 14 Sep 2016 17:54:14 +0000 (13:54 -0400)]
osd: denc_traits for osd_reqid_t

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/msg_types: denc_traits for entity_name_t
Sage Weil [Wed, 14 Sep 2016 17:54:05 +0000 (13:54 -0400)]
msg/msg_types: denc_traits for entity_name_t

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/interval_set: define denc_traits for interval_set<T>
Sage Weil [Wed, 14 Sep 2016 17:34:17 +0000 (13:34 -0400)]
include/interval_set: define denc_traits for interval_set<T>

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/fs_types: conditional denc_traits for inodeno_t
Sage Weil [Wed, 14 Sep 2016 17:32:34 +0000 (13:32 -0400)]
include/fs_types: conditional denc_traits for inodeno_t

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/object: conditional denc_traits for snapid_t
Sage Weil [Wed, 14 Sep 2016 17:32:20 +0000 (13:32 -0400)]
include/object: conditional denc_traits for snapid_t

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/denc: _nohead variants for containers
Sage Weil [Wed, 14 Sep 2016 17:33:25 +0000 (13:33 -0400)]
include/denc: _nohead variants for containers

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/denc: new-style encoding framework
Sage Weil [Tue, 13 Sep 2016 18:04:22 +0000 (14:04 -0400)]
include/denc: new-style encoding framework

#include it from encoding.h so that we can make old STL container helpers
conditional on a new-style helper not being available.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: implement bufferptr::iterator
Sage Weil [Tue, 13 Sep 2016 18:03:01 +0000 (14:03 -0400)]
buffer: implement bufferptr::iterator

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: implement bufferlist::contiguous_appender
Sage Weil [Tue, 13 Sep 2016 18:02:23 +0000 (14:02 -0400)]
buffer: implement bufferlist::contiguous_appender

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: fix whitespace
Sage Weil [Tue, 13 Sep 2016 18:02:01 +0000 (14:02 -0400)]
buffer: fix whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: implement ptr::end_c_str()
Sage Weil [Tue, 13 Sep 2016 18:01:51 +0000 (14:01 -0400)]
buffer: implement ptr::end_c_str()

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/small_encoding: rewrite lowz in terms of generic varint
Sage Weil [Thu, 8 Sep 2016 15:10:51 +0000 (11:10 -0400)]
include/small_encoding: rewrite lowz in terms of generic varint

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/small_encoding: rewrite small_{encode,decode}_signed_varint in terms of varint
Sage Weil [Thu, 8 Sep 2016 14:26:29 +0000 (10:26 -0400)]
include/small_encoding: rewrite small_{encode,decode}_signed_varint in terms of varint

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: add iterator copy_shallow() to ptr
Sage Weil [Mon, 19 Sep 2016 00:10:17 +0000 (19:10 -0500)]
buffer: add iterator copy_shallow() to ptr

If the length resides within the bufferlist's current ptr, return a ptr
to the same buffer.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: rename iterator copy() to copy_deep()
Sage Weil [Mon, 19 Sep 2016 00:09:36 +0000 (19:09 -0500)]
buffer: rename iterator copy() to copy_deep()

Current callers expect a deep copy; be explicit about it.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph-dencoder: use encode/decode functions instead of class methods
Sage Weil [Fri, 16 Sep 2016 21:03:55 +0000 (17:03 -0400)]
ceph-dencoder: use encode/decode functions instead of class methods

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph-dencoder: AuthMonitor::Incremental is featured
Sage Weil [Fri, 16 Sep 2016 21:20:03 +0000 (17:20 -0400)]
ceph-dencoder: AuthMonitor::Incremental is featured

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph-dencoder: PGMap[::Incremental] requires features to encode
Sage Weil [Fri, 16 Sep 2016 21:17:24 +0000 (17:17 -0400)]
ceph-dencoder: PGMap[::Incremental] requires features to encode

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agodeclare encode/decode for various types that are missing it
Sage Weil [Fri, 16 Sep 2016 21:03:41 +0000 (17:03 -0400)]
declare encode/decode for various types that are missing it

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11443 from wjwithagen/wip-wjw-freebsd-cmake-options
Kefu Chai [Sun, 16 Oct 2016 14:10:48 +0000 (22:10 +0800)]
Merge pull request #11443 from wjwithagen/wip-wjw-freebsd-cmake-options

do_freebsd.sh: Set options for debug building.

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years ago./do_freebsd.sh: remove pipe to get correct return value 11443/head
Willem Jan Withagen [Sun, 16 Oct 2016 12:28:07 +0000 (14:28 +0200)]
./do_freebsd.sh: remove pipe to get correct return value

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #11430 from wjwithagen/wip-wjw-freebsd-EventKqueue
Haomai Wang [Sun, 16 Oct 2016 03:52:53 +0000 (11:52 +0800)]
Merge pull request #11430 from wjwithagen/wip-wjw-freebsd-EventKqueue

FreeBSD/EventKqueue.{h,cc} Added code to restore events on (thread)fork

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #11284 from liewegas/wip-mon-osdmap-features
Sage Weil [Sun, 16 Oct 2016 02:54:35 +0000 (21:54 -0500)]
Merge pull request #11284 from liewegas/wip-mon-osdmap-features

mon/OSDMonitor: encode full osdmaps with features all OSDs can understand

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11401 from liewegas/wip-mgr-keys
Sage Weil [Sun, 16 Oct 2016 02:52:33 +0000 (21:52 -0500)]
Merge pull request #11401 from liewegas/wip-mgr-keys

auth: tolerate missing MGR keys during upgrade

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoauth/cephx: do not re-request *only* the MGR key 11401/head
Sage Weil [Fri, 14 Oct 2016 18:45:02 +0000 (14:45 -0400)]
auth/cephx: do not re-request *only* the MGR key

If we request a bunch of service keys, we may not get
back a MGR key because of an in-progress upgrade.  If we
have everything we need except for just the MGR key, do
not bother re-requesting it.  Instead just continue and
we'll re-request it later when the secrets rotate.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MonClient: do not request MGR key from pre-kraken mons
Sage Weil [Mon, 10 Oct 2016 20:59:28 +0000 (16:59 -0400)]
mon/MonClient: do not request MGR key from pre-kraken mons

If we do, the older mon will return EPERM.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoclient: don't take extra target inode reference in ll_link 11440/head
Jeff Layton [Sat, 15 Oct 2016 23:31:46 +0000 (19:31 -0400)]
client: don't take extra target inode reference in ll_link

For the life of me, I can't figure out where this reference is ever put.
We usually take a reference like this when there is an Inode **
parameter that we'll return to the caller. ll_link doesn't have one of
those, so as best I can tell this reference is just leaked.

Zheng however says that FUSE will eventually put this reference via
ll_forget. I still don't quite get how that works, but the other callers
clearly do not handle this correctly. Change the code to only make the
fuse code take this extra reference.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
8 years agosrc/msg/async/EventKqueue: refactor and add test_thread_change() 11430/head
Willem Jan Withagen [Wed, 12 Oct 2016 10:27:42 +0000 (12:27 +0200)]
src/msg/async/EventKqueue: refactor and add test_thread_change()

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agosrc/msg/async/EventKqueue.cc: adjust logging levels.
Willem Jan Withagen [Wed, 12 Oct 2016 09:44:14 +0000 (11:44 +0200)]
src/msg/async/EventKqueue.cc: adjust logging levels.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agosrc/msg/async/EventKqueue.{h,cc} Added code to restore events on (thread)fork
Willem Jan Withagen [Tue, 11 Oct 2016 15:28:23 +0000 (17:28 +0200)]
src/msg/async/EventKqueue.{h,cc} Added code to restore events on (thread)fork

According the FreeBSD man page of kqueue(), the kq-descriptors become invalid
upon fork. It looks like the same happens when a kq-handle is created and then
a thread is created.

So we keep a list of assigned events with each kq-handle and when the handle
has beccome invalid, we recreated the kq-handle and the events that go with it.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #11276 from tchaikov/wip-17400
Kefu Chai [Sat, 15 Oct 2016 03:50:54 +0000 (11:50 +0800)]
Merge pull request #11276 from tchaikov/wip-17400

tools/ceph_monstore_tool: update pgmap_meta also when rebuilding store.db

Tested-by: Huawen Ren <ren.huanwen@zte.com.cn>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoos/bluestore: narrow scope of local variables 11514/head
xie xingguo [Sat, 15 Oct 2016 02:53:43 +0000 (10:53 +0800)]
os/bluestore: narrow scope of local variables

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: formatting nits
xie xingguo [Sat, 15 Oct 2016 02:50:03 +0000 (10:50 +0800)]
os/bluestore: formatting nits

Remove dupilicated semicolon, 80 chars etc.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11339 from liewegas/wip-mon-stuck
Sage Weil [Fri, 14 Oct 2016 20:04:50 +0000 (15:04 -0500)]
Merge pull request #11339 from liewegas/wip-mon-stuck

mon/PGMap: PGs can be stuck more than one thing

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11499 from ceph/wip-kraken-no-git-dir
Alfredo Deza [Fri, 14 Oct 2016 19:35:19 +0000 (15:35 -0400)]
Merge pull request #11499 from ceph/wip-kraken-no-git-dir

cmake: find GIT_VER variables if there is no .git dir

Reviewed-by: Alfredo Deza <adeza@redhat.com>
8 years agoauth/cephx: tolerate missing rotating keys
Sage Weil [Wed, 5 Oct 2016 15:09:19 +0000 (11:09 -0400)]
auth/cephx: tolerate missing rotating keys

During an upgrade, we may have a client requesting an
MGR service key but not have one in the database yet,
either because we *just* upgraded and haven't generated
one yet, or because the leader mon hasn't been upgraded
yet.

Fix this by silently tolerating a missing key as long as
one or more other service keys were present and we have
something to give to the client.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11398 from ifed01/wip-bluestore-rmcoll-fix
Sage Weil [Fri, 14 Oct 2016 18:41:26 +0000 (13:41 -0500)]
Merge pull request #11398 from ifed01/wip-bluestore-rmcoll-fix

os/bluestore: fix remove_collection to properly detect collection e…

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agocmake: find GIT_VER variables if there is no .git dir 11499/head
Ali Maredia [Fri, 14 Oct 2016 18:02:17 +0000 (14:02 -0400)]
cmake: find GIT_VER variables if there is no .git dir

find CEPH_GIT_VER & CEPH_GIT_NICE_VER if there is no
ceph/.git dir by parsing ceph/src/.git_version.

scenario is for building from source tarballs generated
by make-dist, since make-dist generates .git_version
by running make_version, and then packs .git_version
into the tarball.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
8 years agoMerge pull request #11493 from atheism/rgw-rgw_rados-fix-specifier
Sage Weil [Fri, 14 Oct 2016 16:14:27 +0000 (11:14 -0500)]
Merge pull request #11493 from atheism/rgw-rgw_rados-fix-specifier

rgw: rgw_rados.cc fix shard_num format for snprintf

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11496 from stiopaa1/mds_infotableAddOverride
Sage Weil [Fri, 14 Oct 2016 16:13:55 +0000 (11:13 -0500)]
Merge pull request #11496 from stiopaa1/mds_infotableAddOverride

mds/InfoTable.h: add override to virtual functs

8 years agomds/InfoTable.h: add override to virtual functs 11496/head
Michal Jarzabek [Fri, 14 Oct 2016 15:29:23 +0000 (16:29 +0100)]
mds/InfoTable.h: add override to virtual functs

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoos/bluestore: fix remove_collection to properly detect collection's empty 11398/head
Igor Fedotov [Fri, 7 Oct 2016 15:22:45 +0000 (15:22 +0000)]
os/bluestore: fix remove_collection to properly detect collection's empty

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoclient: no need to check mask before calling _getattr in statx 11421/head
Jeff Layton [Fri, 14 Oct 2016 14:59:27 +0000 (10:59 -0400)]
client: no need to check mask before calling _getattr in statx

If the mask is zero, then the cap check will succeed, "yes" will be
true and we'll end up returning quickly from _getattr anyway.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
8 years agoMerge pull request #11483 from liewegas/wip-bluestore-cleanups
Sage Weil [Fri, 14 Oct 2016 14:37:15 +0000 (09:37 -0500)]
Merge pull request #11483 from liewegas/wip-bluestore-cleanups

os/bluestore: a few cleanups

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11445 from ifed01/wip-fix-isal
Sage Weil [Fri, 14 Oct 2016 14:33:36 +0000 (09:33 -0500)]
Merge pull request #11445 from ifed01/wip-fix-isal

compressor/ZLibCompressor: fix broken isal-l

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11495 from yuyuyu101/wip-fix-list
Sage Weil [Fri, 14 Oct 2016 14:27:31 +0000 (09:27 -0500)]
Merge pull request #11495 from yuyuyu101/wip-fix-list

bluestore: set next object as ghobject_t::get_max() when start.hobj.i…

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agobluestore: set next object as ghobject_t::get_max() when start.hobj.is_max() 11495/head
Haomai Wang [Fri, 14 Oct 2016 14:17:22 +0000 (22:17 +0800)]
bluestore: set next object as ghobject_t::get_max() when start.hobj.is_max()

Signed-off-by: Haomai Wang <haomai@xsky.com>
Signed-off-by: Xinze Chi <xinze@xsky.com>
8 years agoMerge pull request #11491 from xiexingguo/xxg-wip-fs-1014
Sage Weil [Fri, 14 Oct 2016 14:14:59 +0000 (09:14 -0500)]
Merge pull request #11491 from xiexingguo/xxg-wip-fs-1014

os/filestore: fix potential result code overwriting

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11482 from ifed01/wip-bluestore-gc-fixes2
Sage Weil [Fri, 14 Oct 2016 14:13:28 +0000 (09:13 -0500)]
Merge pull request #11482 from ifed01/wip-bluestore-gc-fixes2

os/bluestore: GC infra refactor, more UTs and GC range calculation fixes

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix warning 11483/head
Sage Weil [Thu, 13 Oct 2016 19:45:26 +0000 (15:45 -0400)]
os/bluestore: fix warning

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11490 from xiexingguo/xxg-wip-bluestore-1014
Igor Fedotov [Fri, 14 Oct 2016 14:01:58 +0000 (17:01 +0300)]
Merge pull request #11490 from xiexingguo/xxg-wip-bluestore-1014

os/bluestore: use iterator for erase() method directly

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: use iterator for erase() method directly 11490/head
xie xingguo [Fri, 14 Oct 2016 03:27:13 +0000 (11:27 +0800)]
os/bluestore: use iterator for erase() method directly

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agocommon/compressor/ZLibCompressor: add a config option to specify compression level 11445/head
Igor Fedotov [Fri, 14 Oct 2016 13:44:47 +0000 (13:44 +0000)]
common/compressor/ZLibCompressor: add a config option to specify compression level

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/blustore: fix compile warning 11482/head
Igor Fedotov [Fri, 14 Oct 2016 12:33:15 +0000 (12:33 +0000)]
os/blustore: fix compile warning

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: fix GC gc_end_offset miscalculation
Igor Fedotov [Thu, 13 Oct 2016 14:02:38 +0000 (14:02 +0000)]
os/bluestore: fix GC gc_end_offset miscalculation

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: isolate GC stuff to be able to cover it with UT
Igor Fedotov [Wed, 12 Oct 2016 16:13:00 +0000 (19:13 +0300)]
os/bluestore: isolate GC stuff to be able to cover it with UT

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #11487 from batrick/cephfs-gid
John Spray [Fri, 14 Oct 2016 10:06:58 +0000 (12:06 +0200)]
Merge pull request #11487 from batrick/cephfs-gid

cephfs: add gid to asok status

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11357 from batrick/i17518
John Spray [Fri, 14 Oct 2016 10:04:28 +0000 (12:04 +0200)]
Merge pull request #11357 from batrick/i17518

mds: use parse_filesystem in parse_role to handle exceptions and reuse parsing code

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11380 from stiopaa1/mds_snapserver_addOverrideToVirt
John Spray [Fri, 14 Oct 2016 08:49:15 +0000 (10:49 +0200)]
Merge pull request #11380 from stiopaa1/mds_snapserver_addOverrideToVirt

mds/SnapServer.h: add override to virtual functs

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11402 from stiopaa1/mds_fsmapRemoveUnneededUseCount
John Spray [Fri, 14 Oct 2016 08:48:26 +0000 (10:48 +0200)]
Merge pull request #11402 from stiopaa1/mds_fsmapRemoveUnneededUseCount

mds/FSMap.cc: remove unneeded use of count

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11435 from stiopaa1/mds_damageTableMoveSharePtr
John Spray [Fri, 14 Oct 2016 08:47:18 +0000 (10:47 +0200)]
Merge pull request #11435 from stiopaa1/mds_damageTableMoveSharePtr

mds/DamageTable.cc: move shared ptrs

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agorgw: rgw_rados.cc fix shard_num format for snprintf 11493/head
Weibing Zhang [Fri, 14 Oct 2016 08:17:42 +0000 (16:17 +0800)]
rgw: rgw_rados.cc fix shard_num format for snprintf

Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
8 years agotest: temporarily disable fork()'ing tests 11211/head
John Spray [Thu, 13 Oct 2016 18:25:10 +0000 (19:25 +0100)]
test: temporarily disable fork()'ing tests

Fixes: http://tracker.ceph.com/issues/16556
Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoos/filestore: fix potential result code overwriting 11491/head
xie xingguo [Fri, 14 Oct 2016 07:13:02 +0000 (15:13 +0800)]
os/filestore: fix potential result code overwriting

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11484 from ceph/wip-move-ranges-tp
Sage Weil [Fri, 14 Oct 2016 00:22:20 +0000 (19:22 -0500)]
Merge pull request #11484 from ceph/wip-move-ranges-tp

tracing/objectstore.tp: add missing move_ranges_... tp