Commit Graph

55008 Commits

Author SHA1 Message Date
Jason Dillaman
93e2faf38e librbd: optionally block proxied requests with an error code
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-22 10:13:45 -04:00
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
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
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
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
Sage Weil
93c164a5d4 os/bluestore: limit read-amp on overwrite
If we are doing a small overwrite over a blob with a large chunk size
(say, due to a large csum order), we are better off writing into a new
allocation than doing a large read/modify/write.  If the read amp will be
more than min_alloc_size, skip the read entirely and write into a new
blob.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-20 15:57:29 -04:00
Sage Weil
024e0ab6a2 test: remove remaining references to compression_dir
Removed in 38c7f4a066

Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-20 15:57:02 -04:00
Sage Weil
8d48f54135 Merge pull request #9829 from ceph/wip-cmake-readme
cmake: updated CMake README instructions
2016-06-20 15:27:10 -04:00
Sage Weil
6ef18878e9 Merge pull request #9814 from songbaisen/a11
mon: remove the repeat quorum size jugement

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-20 15:19:11 -04:00
Sage Weil
ba31806756 Merge pull request #9818 from ifed01/wip-zero-length-writes
os/store_test: uniform zero length writes handling

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-20 15:16:57 -04:00