Commit Graph

58781 Commits

Author SHA1 Message Date
Yan, Zheng
36dc236812 mds: move MDSCacheObject related code to seperate files
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-10-19 16:01:54 +08:00
Sage Weil
29119aaff3 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>
2016-10-17 21:21:20 -05:00
Sage Weil
9a8bcf8fbf Merge remote-tracking branch 'gh/kraken' 2016-10-17 13:35:45 -04:00
Ali Maredia
eab4664287 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 c5c6b59f29)
2016-10-17 11:47:32 -04:00
Sage Weil
78e262afd5 Merge pull request #11502 from liewegas/wip-bluestore-keybug
os/bluestore: fix escaping of chars > 0x80

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2016-10-17 10:47:10 -05:00
Sage Weil
659da5f16d os/kstore: fix escaping of chars > 0x80 in keys
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-17 11:46:22 -04:00
Sage Weil
a86d78ee65 os/bluestore: fix escaping of odd chars >0x80 in keys
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-17 11:46:22 -04:00
Sage Weil
91c1a228a6 ceph_test_objectstore: test unprintable chars
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-17 11:46:22 -04:00
Sage Weil
311c7b7c63 Merge pull request #11521 from markhpc/wip-send_inline
msg/async: set ms_async_send_inline to false to improve small randread iops
2016-10-17 09:36:09 -05:00
Mark Nelson
700e9c406a Set ms_async_send_inline to false to improve small randread iops.
Signed-off-by: Mark Nelson <mnelson@redhat.com>
2016-10-17 09:10:09 -05:00
John Spray
8279264216 Merge pull request #11262 from jcsp/wip-17270-master
Revert "osdc: After write try merge bh."

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-10-17 14:06:42 +02:00
Jenkins Build Slave User
697fe64f9f 11.0.2 2016-10-17 11:16:50 +00:00
John Spray
a1fd258ad2 Merge pull request #11211 from ceph/wip-no-recordlock-test
test: temporarily remove fork()ing flock tests

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-10-17 13:04:41 +02:00
John Spray
4270f1adef 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>
2016-10-17 12:37:47 +02:00
John Spray
371aeb5279 Merge pull request #11421 from ceph/wip-jlayton-cephfs
Small pile of random cephfs fixes and cleanup

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-10-17 12:36:22 +02:00
Brad Hubbard
842a1527a8 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>
2016-10-17 14:48:13 +10:00
Brad Hubbard
125f90ba18 osd: Fix typos in PG::find_best_info
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2016-10-17 13:30:58 +10:00
Sage Weil
d6557a1f70 Merge pull request #11513 from badone/clear_primary_state-typo
osd: fix typo in PG::clear_primary_state
2016-10-16 21:27:15 -05:00
Sage Weil
894807b9a3 Merge pull request #11514 from xiexingguo/xxg-wip-bluestore-1015
os/bluestore: formatting nits

Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-16 21:27:00 -05:00
Brad Hubbard
adc51df69d osd: fix typo in PG::clear_primary_state
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2016-10-17 08:12:34 +10:00
Sage Weil
e7155b3d59 buffer: make iterator copy to ptr handle len==0
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:51 -04:00
Sage Weil
b00b9d021b buffer: fix * zero placement
Back in 46522cf0d2 we broke the newline
placement for the * lines.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:51 -04:00
Sage Weil
dc7c0a7d3a ceph-dencoder: don't dump usage on every error
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:51 -04:00
Sage Weil
3d5c19958f ceph-dencoder: add hexdump command
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:51 -04:00
Sage Weil
269a5bba1c 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>
2016-10-16 10:32:51 -04:00
Sage Weil
f047d57668 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>
2016-10-16 10:32:51 -04:00
Sage Weil
5ca65f51c8 os/bluestore: log onode component sizes
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:51 -04:00
Sage Weil
01e629e4c0 buffer: contiguous_appender::get_logical_offset
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:51 -04:00
Sage Weil
47c60699b8 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>
2016-10-16 10:32:51 -04:00
Sage Weil
cf0ca97b64 buffer: add page_aligned_appender
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:51 -04:00
Sage Weil
8910a3b343 unittest_bluefs: use append(const char*, size_t)
The bufferlist one is for internal use only.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:50 -04:00
Sage Weil
058caea370 os/bluestore: convert internal types to denc
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:50 -04:00
Sage Weil
aa4ab12c64 osd: denc_traits for osd_reqid_t
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:50 -04:00
Sage Weil
09e14f92b9 msg/msg_types: denc_traits for entity_name_t
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:50 -04:00
Sage Weil
9b25018fb8 include/interval_set: define denc_traits for interval_set<T>
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:50 -04:00
Sage Weil
de05b38e6a include/fs_types: conditional denc_traits for inodeno_t
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:50 -04:00
Sage Weil
c9c5235ef7 include/object: conditional denc_traits for snapid_t
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:50 -04:00
Sage Weil
dec0f05288 include/denc: _nohead variants for containers
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:50 -04:00
Sage Weil
18d754f620 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>
2016-10-16 10:32:50 -04:00
Sage Weil
059065c499 buffer: implement bufferptr::iterator
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:50 -04:00
Sage Weil
c38869232c buffer: implement bufferlist::contiguous_appender
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:50 -04:00
Sage Weil
1baeb61054 buffer: fix whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:49 -04:00
Sage Weil
3bf531708c buffer: implement ptr::end_c_str()
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:49 -04:00
Sage Weil
43d0554d01 include/small_encoding: rewrite lowz in terms of generic varint
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:49 -04:00
Sage Weil
7ff7424461 include/small_encoding: rewrite small_{encode,decode}_signed_varint in terms of varint
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:49 -04:00
Sage Weil
14cad5655d 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>
2016-10-16 10:32:49 -04:00
Sage Weil
6d7f748653 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>
2016-10-16 10:32:49 -04:00
Sage Weil
1917d85392 ceph-dencoder: use encode/decode functions instead of class methods
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:49 -04:00
Sage Weil
0b7f248d3d ceph-dencoder: AuthMonitor::Incremental is featured
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:49 -04:00
Sage Weil
9d6d8396dc ceph-dencoder: PGMap[::Incremental] requires features to encode
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-16 10:32:49 -04:00