Commit Graph

54768 Commits

Author SHA1 Message Date
John Spray
a4a5a02344 Merge pull request #9443 from vishalkanaujia/master
mds: Removed tmap fetch code from Cdir

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-09 10:48:58 +01:00
John Spray
835d16b2ea Merge pull request #9536 from xiexingguo/xxg-wip-fix-prdwrv
client: fix sanity check of preadv/pwritev

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-09 10:48:14 +01:00
John Spray
840e18e7db Merge pull request #9523 from liewegas/wip-pg-to-osds
osd/OSDMap: pg_to_osds -> pg_to_raw_osds, fix libcephfs caller to get acting osds

Reviewed-by: Song Baisen <song.baisen@zte.com.cn>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-06-09 10:46:07 +01:00
John Spray
73430aeb31 Merge pull request #9507 from xiexingguo/xxg-wip-fix-mdsutility
tools/cephfs: fix message leak; add flush for dump cmd

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-09 10:43:41 +01:00
John Spray
4b25c753fd Merge pull request #8890 from ukernel/wip-15634
client: enable fuse_use_invalidate_cb by default

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-09 10:36:43 +01:00
John Spray
a0d081624b Merge pull request #9509 from ukernel/wip-16137
client: skip executing async invalidates while umounting

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-09 10:36:02 +01:00
Jason Dillaman
7c9cea0c59 Merge pull request #9541 from renhwztetecs/renhw-wip-rbd
rbd: cleanup unnecessary switch breaks

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-06-08 21:06:28 -04:00
Michal Jarzabek
d2db4e72bf osdc/ObjectCacher.h: move classes to cc file
Move C_WriteCommit and C_WaitForWrite to cc file.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-06-08 23:16:01 +01:00
Samuel Just
abebc2413d Merge pull request #9595 from tchaikov/wip-librados-do-not-return-local-ref
librados: get_pool_name() should not return ref of a local variable

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2016-06-08 14:54:06 -07:00
Jason Dillaman
c9a3e3be7d rbd-mirror: refresh image after creating sync point snapshot
Fixes: http://tracker.ceph.com/issues/16196
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-08 17:23:48 -04:00
Jason Dillaman
03f5e4a917 rbd-mirror: consistently use dout/derr for debug logging
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-08 17:23:48 -04:00
Jason Dillaman
f4e0bab479 Merge pull request #8830 from trociny/wip-rbd-mirror-bootstrap-cancel
rbd-mirror: support bootstrap canceling 

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-06-08 17:08:51 -04:00
Robin H. Johnson
46aae19eeb rgw: Fallback to Host header for bucket name.
RGW should fallback to using the Host header as the bucket name if valid &
possible even when it is NOT a suffix match against the DNS names, or a match
against the CNAME rule.

This mirrors AWS S3 behavior for these cases (The AWS S3 does not do any DNS
lookups regardless).

Backport: jewel
Fixes: http://tracker.ceph.com/issues/15975
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2016-06-08 12:51:15 -07:00
Jason Dillaman
051c96589e cls_rbd: encode entity_addr_t with features
mirror_image_status_get method call currently fails with EIO

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-08 15:15:58 -04:00
Sage Weil
976189d7b3 osd/osd_types: fix description of store_statfs_t::available field
It's bytes, not blocks.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-08 15:10:56 -04:00
Sage Weil
abd84f4f1b os/filestore: fix statfs
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-08 15:02:55 -04:00
Sage Weil
655b75bab2 os/FuseStore: fix statfs
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-08 15:02:14 -04:00
Loic Dachary
b5eb28b649 Merge pull request #9386 from tchaikov/wip-bye-py2.6
ceph-detect-init,ceph-disk: drop support of py2.6

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-06-08 20:44:49 +02:00
Kefu Chai
25dfbd09f4 Merge pull request #9476 from ceph/wip-no-unittests-in-deb
packaging: do not package unused unittests in deb

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-09 01:52:28 +08:00
Sage Weil
4dc3d08ef7 Merge pull request #9475 from tchaikov/wip-debian
debian: package compressor plugins and silence dpkg-shlibdeps warnings  

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-08 12:43:50 -04:00
Kefu Chai
0657fd61f3 Merge pull request #9315 from ShiqiCooperation/master
mon: remove unused local variable "proposal_bl"

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-09 00:34:36 +08:00
Kefu Chai
ff6bc74250 librados: get_pool_name() should not return ref of a local variable
was introduced by 1a44e6f

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-09 00:11:43 +08:00
Mykola Golub
5568107d56 Merge pull request #9023 from dillaman/wip-15791
librbd: journal IO error results in failed assertion in AioCompletion

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-08 18:22:17 +03:00
Mykola Golub
c320bb2f72 Merge pull request #9440 from dillaman/wip-16114
librbd: prevent error messages when journal externally disabled

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-08 18:21:16 +03:00
Casey Bodley
baa99901b4 Merge pull request #9573 from tchaikov/wip-cmake-rocksdb
cmake: fix rocksdb linkage with jemalloc installed but not enabled

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-06-08 11:10:13 -04:00
Jason Dillaman
8374d45c76 librbd: quickly check for duplicate snap name upon create
During journal replay, quickly check for a duplicate snap name
before allocating a snapshot sequence from the OSDs and
reverting due to the duplicate name.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-08 11:06:20 -04:00
Jason Dillaman
88bd300208 rbd-mirror: stop external replayer before closing remote journaler
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-08 11:06:20 -04:00
Jason Dillaman
5aa6eb2782 librbd: stop journal recorder before starting external replay
Fixes: http://tracker.ceph.com/issues/16165
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-08 11:06:20 -04:00
Yuri Weinstein
c841ac0e84 Merge pull request #8008 from cernceph/dvanders_minsize
mon: default ec min_size to k+1

Dan van der Ster <daniel.vanderster@cern.ch>
Reviewed-by: Samuel Just <sjust@redhat.com>
2016-06-08 07:34:04 -07:00
Yuri Weinstein
9d54c924a5 Merge pull request #8789 from vuhuong/wip-msgr-flex-prop-list
msgr,xio: flexible Messenger::create options

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-06-08 07:30:17 -07:00
Yuri Weinstein
f69f1bd0c5 Merge pull request #9184 from liewegas/wip-addr-work
msg: encode entity_addr_t with features

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-06-08 07:26:50 -07:00
Sage Weil
0246ba7572 Merge pull request #9486 from ifed01/wip-bluestore-stats3
os/bluestore: add per-store allocation/compression statistics

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-08 10:24:33 -04:00
Yuri Weinstein
870fd846d8 Merge pull request #9314 from xiexingguo/xxg-wip-fix-radosclient
RadosClient: reduce cpu burning; fix message leak

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-08 07:21:58 -07:00
Yuri Weinstein
3984afd405 Merge pull request #9413 from stiopaa1/common_simplecache_addMove
common/simple_cache.hpp: add std::move

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-06-08 07:20:42 -07:00
Yuri Weinstein
4f76fbc34d Merge pull request #9414 from branch-predictor/bp-no-invalidate-new-ptr
buffer: don't invalidate crc cache of new ptr before zeroing it

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-08 07:19:08 -07:00
Igor Fedotov
975a31bda3 os/BlueStore: Adds improved per-store statistics including compression ones.
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-06-08 17:16:05 +03:00
Casey Bodley
d361022036 Merge pull request #9487 from ceph/wip_control_compiler_diagnostic_colors
Allows developers to turn on diagnostic colors for compiler output when stderr is not a terminal

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-06-08 10:09:47 -04:00
Igor Fedotov
9274e94eb4 os/BlueStore: Fixes fake blob length after put_ref removes all the extents
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-06-08 16:40:26 +03:00
Igor Fedotov
75d79a95f2 os/BlueStore: Adding compressed_length field to blob and fixing corresponding issues at read path
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-06-08 16:40:26 +03:00
Igor Fedotov
b0ed038707 os/ObjectStore: Refactor ObjectStore::statfs method to return extended statistics
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-06-08 16:40:26 +03:00
Sage Weil
c385ebe76d osd/OSDMap: rename pg_to_osds -> pg_to_raw_osds
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-08 09:30:11 -04:00
Sage Weil
a651709d94 client: return acting, not raw, osds
Reported-by: song baisen <song.baisen@zte.com.cn>
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-08 09:30:11 -04:00
xie xingguo
451c32b78c client: fix wrong lock logic of ll_read_block() method
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-08 18:25:20 +08:00
xie xingguo
8e40a9747b client: return MDS_RANK_NONE if we fail to choose a random mds
This is better for both understanding and error handling.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-08 17:05:17 +08:00
xie xingguo
79a918529e client: wait if we are fail to choose a proper mds
The choose_target_mds() always return MDS_RANK_NONE(-1)
if we are currently unable to choose a target mds.
So if it does fail, we'll end up by choosing a invalid
mds, which can't be caught by the current code logic.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-08 16:57:12 +08:00
Orit Wasserman
305128818d Merge pull request #9412 from Yan-waller/yj-hwip-rgwfixglobalinit
rgw/init: add errno and remove some unnecessary temporary variables.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-06-08 10:05:08 +02:00
xie xingguo
717d3a0c5a client: add check for _lseek() during _write() process
The _lseek() call may fail, which can cause uncertain
behaviour if the process goes on instead of returning
immediately.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-08 14:53:23 +08:00
Kefu Chai
471568e29f Merge pull request #9331 from stiopaa1/common_workQueue_addOverride
common/WorkQueue.h: add override to virtual func

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-08 14:48:58 +08:00
Kefu Chai
a18f1fb565 Merge pull request #9389 from badone/wip-releases-table-plus-jewel
doc: Add Jewel header to releases table

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-08 14:45:10 +08:00
xie xingguo
411fa253d0 client: fix potential access violation
The _read() call may fail and return a negative result,
and thus when it is passed to "resid", which is of type of
"unsigned", overflow happens due to a forced cast that is
implicitly performed.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-08 14:37:23 +08:00