]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agomon/OSDMonitor: do not encode osdmap with MSG_ADDR2 until kraken flag is set 9825/head
Sage Weil [Fri, 30 Sep 2016 22:28:42 +0000 (18:28 -0400)]
mon/OSDMonitor: do not encode osdmap with MSG_ADDR2 until kraken flag is set

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocls_lock: encode client-facing addrs with client features
Sage Weil [Thu, 22 Sep 2016 16:39:31 +0000 (12:39 -0400)]
cls_lock: encode client-facing addrs with client features

This struct goes back to the client, not to disk.  This was done
incorrectly in e40dd920dc2c3f685bb0ae6a0ecda6792afab18f.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoobjclass: expose client features to cls ops
Sage Weil [Thu, 22 Sep 2016 16:37:29 +0000 (12:37 -0400)]
objclass: expose client features to cls ops

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomessage/MMonProbe: reencode monmap for non-addr2 clients
Sage Weil [Fri, 2 Sep 2016 18:36:55 +0000 (14:36 -0400)]
message/MMonProbe: reencode monmap for non-addr2 clients

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomessage/MMonMap: reencode MonMap for old (non-addr2) clients
Sage Weil [Fri, 2 Sep 2016 18:32:01 +0000 (14:32 -0400)]
message/MMonMap: reencode MonMap for old (non-addr2) clients

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomessages/MMDSMap: reencode MDSMap for old (non-addr2) clients
Sage Weil [Fri, 2 Sep 2016 18:30:54 +0000 (14:30 -0400)]
messages/MMDSMap: reencode MDSMap for old (non-addr2) clients

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph-dencoder: parse ull args
Sage Weil [Sat, 2 Jul 2016 00:43:54 +0000 (20:43 -0400)]
ceph-dencoder: parse ull args

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomessages/MOSDMap: reencode if missing MSG_ADDR2 feature
Sage Weil [Sat, 2 Jul 2016 00:43:38 +0000 (20:43 -0400)]
messages/MOSDMap: reencode if missing MSG_ADDR2 feature

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg: set addr type when creating from scratch
Sage Weil [Mon, 20 Jun 2016 17:26:47 +0000 (13:26 -0400)]
msg: set addr type when creating from scratch

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocls/lock: set test entity_addr_t types
Sage Weil [Mon, 20 Jun 2016 17:24:25 +0000 (13:24 -0400)]
cls/lock: set test entity_addr_t types

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agotest/librbd/exclusive_lock: use entity_addr_t::parse, not inet_pton
Sage Weil [Mon, 20 Jun 2016 13:16:19 +0000 (09:16 -0400)]
test/librbd/exclusive_lock: use entity_addr_t::parse, not inet_pton

Otherwise the entity_addr_t type doesn't get set.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agotest_addrs: adding some addr unittest cases
Zhao Junwang [Wed, 8 Jun 2016 11:30:24 +0000 (07:30 -0400)]
test_addrs: adding some addr unittest cases

Some unittest need a new constructor, add a
entity_addr_t(__u32 _type, __u32 _nonce).

Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
8 years agomsg: add a decode_legacy_addr_after_marker helper
Zhao Junwang [Sat, 21 May 2016 05:46:04 +0000 (01:46 -0400)]
msg: add a decode_legacy_addr_after_marker helper

This can eliminates duplication between entity_addr_t::decode()
and entity_addrvec::decode().

Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
8 years agomsg: add entity_addrvec_t
Zhao Junwang [Thu, 19 May 2016 13:02:21 +0000 (09:02 -0400)]
msg: add entity_addrvec_t

Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
8 years agomsg/msg_types: add TYPE_MSGR2
Sage Weil [Sat, 18 Jun 2016 16:45:14 +0000 (12:45 -0400)]
msg/msg_types: add TYPE_MSGR2

Unused so far.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/msg_types: add type accessors
Sage Weil [Mon, 20 Jun 2016 17:08:31 +0000 (13:08 -0400)]
msg/msg_types: add type accessors

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/msg_types: prefix addr with type; - for none
Sage Weil [Sat, 18 Jun 2016 16:45:11 +0000 (12:45 -0400)]
msg/msg_types: prefix addr with type; - for none

Previously entityt_addr_t() rendered as ":/0".  Now it is
"-".

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/async: fix bind
Sage Weil [Mon, 20 Jun 2016 17:09:25 +0000 (13:09 -0400)]
msg/async: fix bind

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/simple: fix bind
Sage Weil [Mon, 20 Jun 2016 17:09:17 +0000 (13:09 -0400)]
msg/simple: fix bind

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg: change entity_addr_t encode/decode
Zhao Junwang [Thu, 19 May 2016 11:38:50 +0000 (07:38 -0400)]
msg: change entity_addr_t encode/decode

Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
8 years agofeatures: define the new ADDR2 feature
Zhao Junwang [Thu, 19 May 2016 03:04:12 +0000 (23:04 -0400)]
features: define the new ADDR2 feature

Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
8 years agomsg: remove some useless 'break'
Zhao Junwang [Thu, 19 May 2016 11:55:49 +0000 (07:55 -0400)]
msg: remove some useless 'break'

Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
8 years agomsg/async: fix learned_addr
Sage Weil [Fri, 10 Jun 2016 17:06:09 +0000 (13:06 -0400)]
msg/async: fix learned_addr

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/simple: fix learned_addr
Sage Weil [Wed, 15 Jun 2016 21:04:19 +0000 (17:04 -0400)]
msg/simple: fix learned_addr

There is a type in entity_addr_t that needs to get set
too.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/OSDMonitor: health warn if require_{jewel,kraken} flags aren't set
Sage Weil [Fri, 30 Sep 2016 22:07:53 +0000 (18:07 -0400)]
mon/OSDMonitor: health warn if require_{jewel,kraken} flags aren't set

We want to prompt users to set these flags as soon as their
upgrades complete.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11536 from liewegas/wip-fullbit-dump
Sage Weil [Tue, 18 Oct 2016 18:43:17 +0000 (13:43 -0500)]
Merge pull request #11536 from liewegas/wip-fullbit-dump

mds: fix EMetaBlob::fullbit xattr dump

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11533 from ifed01/wip-kstore-rmcoll-fix
Sage Weil [Tue, 18 Oct 2016 18:22:11 +0000 (13:22 -0500)]
Merge pull request #11533 from ifed01/wip-kstore-rmcoll-fix

os/kstore: rmcoll fix to satisfy store_test

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agomds: fix EMetaBlob::fullbit xattr dump 11536/head
Sage Weil [Tue, 18 Oct 2016 18:02:47 +0000 (14:02 -0400)]
mds: fix EMetaBlob::fullbit xattr dump

- show xattr names!
- bound the values

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11525 from wjwithagen/wip-wjw-freebsd-getopt
Sage Weil [Tue, 18 Oct 2016 14:45:24 +0000 (09:45 -0500)]
Merge pull request #11525 from wjwithagen/wip-wjw-freebsd-getopt

tools/ceph-monstore-update-crush.sh: FreeBSD getopt is not compatible…

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11524 from wjin/filestore_perfcounter
Sage Weil [Tue, 18 Oct 2016 14:41:54 +0000 (09:41 -0500)]
Merge pull request #11524 from wjin/filestore_perfcounter

os/filestore: clean filestore perfcounters

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11518 from umullan/uday
Sage Weil [Tue, 18 Oct 2016 14:31:54 +0000 (09:31 -0500)]
Merge pull request #11518 from umullan/uday

doc: fix broken links

8 years agoMerge pull request #11522 from wjwithagen/wip-wjw-freebsd-readable.sh
Sage Weil [Tue, 18 Oct 2016 14:30:06 +0000 (09:30 -0500)]
Merge pull request #11522 from wjwithagen/wip-wjw-freebsd-readable.sh

FreeBSD:test/encoding/readable.sh": fix nproc and ls -v calls

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11528 from jcsp/wip-vstart-1osd
Sage Weil [Tue, 18 Oct 2016 14:28:26 +0000 (09:28 -0500)]
Merge pull request #11528 from jcsp/wip-vstart-1osd

vstart: decrease pool size if <3 OSDs

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: proper set resulting pnext to avoid returning local var 11533/head
Igor Fedotov [Tue, 18 Oct 2016 13:50:17 +0000 (13:50 +0000)]
os/bluestore: proper set resulting pnext to avoid returning local var

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/kstore: fix KStore rm_coll handler to behave similar to bluestore one
Igor Fedotov [Tue, 18 Oct 2016 13:42:12 +0000 (13:42 +0000)]
os/kstore: fix KStore rm_coll handler to behave similar to bluestore one

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #10325 from snakeAngel2015/rgw-support-s3subuser
Orit Wasserman [Tue, 18 Oct 2016 13:15:13 +0000 (15:15 +0200)]
Merge pull request #10325 from snakeAngel2015/rgw-support-s3subuser

rgw: add suport for creating S3 type subuser of admin rest api
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoos/kstore: uniform Collection implementation with BlueStore one
Igor Fedotov [Tue, 18 Oct 2016 13:04:43 +0000 (13:04 +0000)]
os/kstore: uniform Collection implementation with BlueStore one

Signed-off-by:Igor Fedotov <ifedotov@mirantis.com>

8 years agoMerge pull request #11481 from ddiss/cmake_rgw_deps
Kefu Chai [Tue, 18 Oct 2016 12:40:59 +0000 (20:40 +0800)]
Merge pull request #11481 from ddiss/cmake_rgw_deps

cmake: check WITH_RADOSGW for fcgi and expat dependencies

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agovstart: decrease pool size if <3 OSDs 11528/head
John Spray [Tue, 11 Oct 2016 17:11:42 +0000 (18:11 +0100)]
vstart: decrease pool size if <3 OSDs

Makes it easy to do OSD=1 for e.g. doing cephfs
stuff where we don't care much about the OSDs
behaviour.

Signed-off-by: John Spray <john.spray@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 agotools/ceph-monstore-update-crush.sh: FreeBSD getopt is not compatible, use the one... 11525/head
Willem Jan Withagen [Tue, 18 Oct 2016 09:33:09 +0000 (11:33 +0200)]
tools/ceph-monstore-update-crush.sh: FreeBSD getopt is not compatible, use the one from packages

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
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 agoFixes: #17587 11518/head
Uday Mullangi [Tue, 18 Oct 2016 06:17:57 +0000 (11:47 +0530)]
Fixes: #17587
doc: Fixing the broken link which was refactored for authentication as part of other PR
Signed-off-by: uday udaymjl@gmail.com
8 years agoos/filestore: clean filestore perfcounters 11524/head
Wei Jin [Tue, 18 Oct 2016 02:41:19 +0000 (10:41 +0800)]
os/filestore: clean filestore perfcounters

Move filestore perfcounters from objectstore to filestore itself
and change internal index name.

Signed-off-by: Wei Jin <wjin.cn@gmail.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 agoFreeBSD:test/encoding/readable.sh": fix nproc and ls -v calls 11522/head
Willem Jan Withagen [Mon, 17 Oct 2016 14:42:15 +0000 (16:42 +0200)]
FreeBSD:test/encoding/readable.sh": fix nproc and ls -v calls

 Neither of these is available in FreeBSD.
 But sort -n is Posix, and does the same ATM.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
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 agoFixes: #17587
Uday Mullangi [Mon, 17 Oct 2016 11:04:25 +0000 (16:34 +0530)]
Fixes: #17587
doc: Fixing the broken link which was refactored for authentication as part of other PR
Signed-off-by: uday udaymjl@gmail.com
8 years agoFixes: #17587
Uday Mullangi [Mon, 17 Oct 2016 09:43:43 +0000 (15:13 +0530)]
Fixes: #17587
doc: Fixing the broken link which was refactored for authentication as part of other PR
Signed-off-by: uday udaymjl@gmail.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>