Commit Graph

55076 Commits

Author SHA1 Message Date
John Spray
f222afdbfe Merge pull request #9813 from jcsp/wip-kernel-doc
doc/cephfs: add advice about kernel versions
2016-06-22 09:08:49 +01:00
Mykola Golub
f3e0d244c9 Merge pull request #9823 from dillaman/wip-16362
rbd-mirror: keep events from different epochs independent

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-22 09:50:46 +03:00
Kefu Chai
e468b9b0db cmake: include Group.cc in rbd cli
to match with automake, and the "group" command is missing in the cmake
build of "rbd" cli tool.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-22 11:30:46 +08:00
Kefu Chai
0d727dbf7b cmake: install dso into ${CMAKE_INSTALL_LIBDIR} instead of "lib"
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-22 11:30:46 +08:00
Kefu Chai
c7f8b8558f cmake: add visibility flags for exported dso
* no regression found, and there's a substantial reduction in the size of
  generated librados library (both stripped and not).
* also remove the duplicated set_target_properties(librbd...) command

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-22 11:30:46 +08:00
Kefu Chai
c1e8b028cc cmake: move snap_set_diff.cc out of librados
snap_set_diff.cc is used internally and is not exposed via librados. we
cannot use the function implemented in it by linking against librados. so
compile it as an OBJECT target and link against it individualy if
necessary.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-22 11:30:46 +08:00
Josh Durgin
f7fc9857fc Merge branch 'wip-dmick-install-deps-master'
install-deps.sh: use mk-build-deps instead of processing control

Reviewed-by: Erwan Velu <erwan@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-06-21 16:38:58 -07:00
Dan Mick
99bca09b8d install-deps.sh: use mk-build-deps instead of processing control
mk-build-deps is designed to handle installing build dependencies;
use that instead, so '|' indications are handled properly.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2016-06-21 16:36:56 -07:00
Casey Bodley
9f15f032b2 Merge pull request #9791 from ceph/wip-cmake-compile-flags
cmake: Wip cmake compile flags

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-06-21 15:22:44 -04:00
Casey Bodley
8581857d96 Merge pull request #9481 from yehudasa/wip-rgw-hold-lease-1
rgw: stop bucket lease only after draining object sync operations

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-06-21 15:21:33 -04:00
Ali Maredia
ab08edda9c cmake: CMAKE_BUILD_TYPE defaulted to RelWithDebInfo
Default build type is RelWithDebInfo unless
CMAKE_BUILD_TYPE is specified when running the
`cmake` command.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-06-21 15:21:12 -04:00
Mykola Golub
9eaf30d71e Merge pull request #9066 from yangdongsheng/rbd_bench
rbd: introduce a simple bench for read

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-21 21:59:28 +03:00
Jason Dillaman
478dd5f173 librbd: flag image as updated after proxying maintenance op
Fixes: http://tracker.ceph.com/issues/16404
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-21 14:56:43 -04:00
Ali Maredia
6f3e3cf634 cmake: eliminate FORTIFY_SOURCE warnings
"-werr" was added to CHECK_C_COMPILER_FLAG to
make sure FORTIFY_SOURCE is only turned on if
the flag generates no warnings.

Added "-U_FORTIFY_SOURCE" to CMAKE_C_FLAGS to
mimic PR #9761.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-06-21 13:44:47 -04:00
Sage Weil
09022cbef5 Merge pull request #9728 from liewegas/wip-bluestore-encoding
os/bluestore: space efficient int encoding

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2016-06-21 13:30:53 -04:00
Jason Dillaman
3a5b491ec6 rbd-mirror: keep events from different epochs independent
Fixes: http://tracker.ceph.com/issues/16362
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-21 13:06:34 -04:00
Sage Weil
049309cc0d os/bluestore/bluestore_types: delta encode for ref_map offsets
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-21 12:51:02 -04:00
Sage Weil
dc245aef1e os/bluestore: make blob csum info encoding conditional
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-21 12:51:02 -04:00
Sage Weil
be6d887ccc os/bluestore: use FLAG_CSUM to indicate if checksums are present
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-21 12:51:01 -04:00
Sage Weil
4d84cfe54a os/bluestore: fsck: print intervals in hex
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-21 12:51:01 -04:00
Sage Weil
3f7c068cf3 os/bluestore: use varint for pextent count
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-21 12:50:34 -04:00
Sage Weil
3fcb8ac063 os/bluestore: varint or lba encode pextent, lextent, ref_map, onode
Certainly not done here, but this is a start.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-21 12:50:33 -04:00
Sage Weil
ed0dd72c4e include/small_encoding: small encode/decode helpers
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-21 12:50:33 -04:00
Mykola Golub
d404e36a9e Merge pull request #9819 from dillaman/wip-16363
librbd: fix lockdep issue when duplicate event detected

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-21 19:50:28 +03:00
Mykola Golub
1169da520e Merge pull request #9816 from dillaman/wip-16198
librbd: potential race when replaying journal ops

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-21 19:49:37 +03:00
Mykola Golub
cb15748592 Merge pull request #9788 from dillaman/wip-16230
rbd-mirror: potential race condition accessing local image journal

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-21 19:48:47 +03:00
John Spray
340689e32f Merge pull request #9787 from batrick/mds-rename-enotempty
mds: improve comments for ENOTEMPTY checks

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-21 15:47:22 +01:00
Sage Weil
48a849f188 Merge pull request #9840 from xiexingguo/xxg-wip-fix-bmap-fm
os/bluestore: minor improvements for bitmap-freelist-manager

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-21 10:26:06 -04:00
Haomai Wang
6f22bb9362 msg/async/AsyncConnection: shorter handshake step deps
Originally connect side will wait for accept side sending banner, actually
we don't need this logic to ensure anything.

So connect side will issue banner after tcp handshake straightway. It will
help for reducing session handshake period, then it avoid peer side drop this
connection in low level but connect side don't know right now.

Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-06-21 22:07:54 +08:00
Sage Weil
45a9efdd18 Merge pull request #9815 from xiexingguo/xxg-wip-fix-blue-cache
os/bluestore: cache relevant cleanups

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-21 09:55:01 -04:00
xie xingguo
401af35fbd os/bluestore: make bytes_per_key a global member
So we don't have to figure it out everywhere.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-21 21:44:15 +08:00
xie xingguo
858a2bd43b os/bluestore: fix a typo(nonexistant->nonexistent)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-21 21:44:13 +08:00
xie xingguo
dc73ecc305 os/bluestore: simplify BufferSpace::read() a little
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-21 21:35:45 +08:00
xie xingguo
d2baf233fc os/bluestore: simplify BufferSpace::read() a little
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-21 21:35:43 +08:00
xie xingguo
09b13e5033 os/bluestore: change type of length of region_t from uint32_t to uint64_t
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-21 21:35:41 +08:00
xie xingguo
28503b94d5 os/bluestore: add sanity check when try to rm_buffer
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-21 21:35:39 +08:00
Sage Weil
79688b6a0d Merge pull request #9828 from liewegas/wip-bluestore-read-before-write
os/bluestore: limit read-amp on overwrite

Reviewed-by: Varada Kari <varada.kari@sandisk.com>
2016-06-21 09:31:00 -04:00
Sage Weil
59c47b4421 Merge pull request #9826 from liewegas/wip-bluefs
os/bluestore/BlueFS: instrument which file types we write to

Reviewed-by: Varada Kari <varada.kari@sandisk.com>
2016-06-21 09:30:18 -04:00
Kefu Chai
1e8a505c17 Merge pull request #9834 from tchaikov/wip-silence-warnings
test, bluestore: silence warnings

Reviewed-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-06-21 18:53:37 +08:00
Kefu Chai
e2801d8390 Merge pull request #9635 from liewegas/wip-make-dist
make-dist: include src/.git_version and src/ceph_ver.h

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-21 18:17:25 +08:00
Kefu Chai
87b5a65804 Merge pull request #9836 from dx9/wip-hardcoded-tcmalloc
cmake: fix hard coded tcmalloc lib

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-21 17:02:21 +08:00
John Coyle
edbcad55ed cmake: fix hard coded tcmalloc lib
Signed-off-by: John Coyle <dx9err@gmail.com>
2016-06-20 21:49:39 -04:00
Kefu Chai
14999dba88 Merge pull request #9670 from ceph/wip-debian-clean
debian: silence couple warnings

Reviewed-by: Dan Mick <dmick@redhat.com>
2016-06-21 08:46:18 +08:00
Kefu Chai
a0dd46c5d1 bluestore/BitAllocator: silence warnings of method hidden
is_allocated(int64_t *blocks, int64_t num_blocks, int blk_off) only gets
called in BitMapAreaIN and its child classes. so it's safe to move this
method down to BitMapAreaIN.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-21 07:55:13 +08:00
Kefu Chai
32f4b60c38 ceph_test_objectstore: remove unused function
its caller was removed in 8a42e61

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-21 07:55:13 +08:00
Sage Weil
8c69da1086 Merge pull request #9832 from ceph/wip-cmake-librbd-unittest-fix
cmake: unittest_librbd missing a source file
2016-06-20 17:28:16 -04:00
Ali Maredia
716535ef9e cmake: unittest_librbd missing a source file
src/test/librbd/test_ConsistencyGroups.cc missing
from ${unittest_librbd_srcs}.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-06-20 17:23:37 -04:00
Casey Bodley
d16b5a2bb1 Merge pull request #9531 from yehudasa/wip-16175
rgw: data sync debug logging

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-06-20 16:11:51 -04:00
Sage Weil
1726dc8168 Merge pull request #9676 from efirs/fix_bitmap_freelist
os/bluestore: Fix enumeration when only single key in BitmapFreelistManager
2016-06-20 15:58:04 -04:00
Sage Weil
f547daa0de os/bluestore/BlueFS: instrument which file types we write to
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-20 15:57:39 -04:00