]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoMerge pull request #11383 from stiopaa1/mds_fsmap_passSharedPtrByConstRef
Sage Weil [Mon, 10 Oct 2016 15:00:05 +0000 (10:00 -0500)]
Merge pull request #11383 from stiopaa1/mds_fsmap_passSharedPtrByConstRef

mds/FSMap: pass shared_ptr by const ref

8 years agoMerge pull request #11290 from trociny/wip-17017
Jason Dillaman [Mon, 10 Oct 2016 14:41:25 +0000 (10:41 -0400)]
Merge pull request #11290 from trociny/wip-17017

rbd-mirror HA: move librbd::image_watcher::Notifier to librbd::object_watcher

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11260 from runsisi/wip-fix-mirror-image-disable
Jason Dillaman [Mon, 10 Oct 2016 14:40:33 +0000 (10:40 -0400)]
Merge pull request #11260 from runsisi/wip-fix-mirror-image-disable

librbd: fix rollback if failed to disable mirroring for image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11301 from liewegas/wip-bluestore-buffered-write
Sage Weil [Mon, 10 Oct 2016 14:40:06 +0000 (09:40 -0500)]
Merge pull request #11301 from liewegas/wip-bluestore-buffered-write

os/bluestore: allow default to buffered write

Reviewed-by: Mark Nelson <mnelson@redhat.com>
8 years agoMerge pull request #11370 from ceph/wip-krbd-unmap-options
Jason Dillaman [Mon, 10 Oct 2016 14:17:09 +0000 (10:17 -0400)]
Merge pull request #11370 from ceph/wip-krbd-unmap-options

rbd: expose rbd unmap options

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11255 from dzafman/wip-scrub-boundary
Sage Weil [Mon, 10 Oct 2016 14:12:16 +0000 (09:12 -0500)]
Merge pull request #11255 from dzafman/wip-scrub-boundary

osd: fix scrub boundary to not include a SnapSet

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11377 from xiexingguo/xxg-wip-bluestore-1008
Sage Weil [Mon, 10 Oct 2016 13:48:43 +0000 (08:48 -0500)]
Merge pull request #11377 from xiexingguo/xxg-wip-bluestore-1008

os/bluestore: drop inline_dirty from struct ExtentMap

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: narrow scope of 'pos' 11377/head
xie xingguo [Mon, 10 Oct 2016 11:39:18 +0000 (19:39 +0800)]
os/bluestore: narrow scope of 'pos'

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11281 from jcsp/wip-17466
John Spray [Mon, 10 Oct 2016 11:21:07 +0000 (13:21 +0200)]
Merge pull request #11281 from jcsp/wip-17466

mds: handle bad standby_for_fscids in fsmap

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoos/bluestore: get rid of multiple call to dirty_blob()
xie xingguo [Mon, 10 Oct 2016 10:52:23 +0000 (18:52 +0800)]
os/bluestore: get rid of multiple call to dirty_blob()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #10722 from stiopaa1/mon_moncap_addMoveToStrings
Kefu Chai [Mon, 10 Oct 2016 06:47:21 +0000 (14:47 +0800)]
Merge pull request #10722 from stiopaa1/mon_moncap_addMoveToStrings

mon/MonCap.h: add std::move for std::string

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10916 from jordan41177/fix-17169
Kefu Chai [Mon, 10 Oct 2016 06:39:56 +0000 (14:39 +0800)]
Merge pull request #10916 from jordan41177/fix-17169

mon: OSDMonitor: fix the check error of pg creating

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10720 from wjwithagen/wip-wjw-freebsd-socket-shutdown
Kefu Chai [Mon, 10 Oct 2016 06:38:56 +0000 (14:38 +0800)]
Merge pull request #10720 from wjwithagen/wip-wjw-freebsd-socket-shutdown

msg/simple/Accepter.cc: replace shutdown() with selfpipe event in poll() (FreeBSD)

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #10601 from stiopaa1/mon_monclient_subwantRemoveCount
Kefu Chai [Mon, 10 Oct 2016 06:33:54 +0000 (14:33 +0800)]
Merge pull request #10601 from stiopaa1/mon_monclient_subwantRemoveCount

mon/MonClient.h: remove repeated searching of map

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11145 from atheism/msg-async-fix-specifier
Kefu Chai [Mon, 10 Oct 2016 06:32:31 +0000 (14:32 +0800)]
Merge pull request #11145 from atheism/msg-async-fix-specifier

msg: fix format specifier for unsigned value id

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agomds/FSMap: pass shared_ptr by const ref 11383/head
Michal Jarzabek [Sun, 9 Oct 2016 12:50:54 +0000 (13:50 +0100)]
mds/FSMap: pass shared_ptr by const ref

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoos/bluestore: fix raw blob encoded size
xie xingguo [Sun, 9 Oct 2016 12:04:33 +0000 (20:04 +0800)]
os/bluestore: fix raw blob encoded size

The maximum length of fixed fields of bluestore_blob_t shall be:

uint64_t sbid                       ///< 8 bytes
uint32_t compressed_length_orig     ///< 4 bytes
uint32_t compressed_length          ///< 4 bytes
uint32_t flags                      ///< 4 bytes
uint8_t csum_type                   ///< 1 byte
uint8_t csum_chunk_order            ///< 1 byte
unused_t unused;                    ///< 2 bytes

8 + 4 + 4 + 4 + 1 + 1 + 2 = 24

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: add counter to trace number of garbage collection reads
xie xingguo [Sun, 9 Oct 2016 09:33:27 +0000 (17:33 +0800)]
os/bluestore: add counter to trace number of garbage collection reads

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: kill dead lines to keep code clean
xie xingguo [Sun, 9 Oct 2016 07:40:50 +0000 (15:40 +0800)]
os/bluestore: kill dead lines to keep code clean

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11379 from zealoussnow/fix-dead-link
Kefu Chai [Sun, 9 Oct 2016 05:53:28 +0000 (13:53 +0800)]
Merge pull request #11379 from zealoussnow/fix-dead-link

doc: fix dead link "Hardware Recommendations"

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agodoc: fix dead link "Hardware Recommendations" 11379/head
Leo Zhang [Sat, 8 Oct 2016 14:41:59 +0000 (22:41 +0800)]
doc: fix dead link "Hardware Recommendations"

Signed-off-by: Leo Zhang <nguzcf@gmail.com>
8 years agoos/bluestore: drop inline_dirty from struct ExtentMap
xie xingguo [Sat, 8 Oct 2016 08:24:22 +0000 (16:24 +0800)]
os/bluestore: drop inline_dirty from struct ExtentMap

We don't need this member as we can simply clear inline_bl
to mark it as dirty.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #10057 from Yan-waller/yj-wip-rgwradosccremover-0701
Yehuda Sadeh [Fri, 7 Oct 2016 21:04:45 +0000 (14:04 -0700)]
Merge pull request #10057 from Yan-waller/yj-wip-rgwradosccremover-0701

rgw: minor cleanup

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #10674 from ceph/wip-rgw-no-empty-amzrqid
Yehuda Sadeh [Fri, 7 Oct 2016 21:02:27 +0000 (14:02 -0700)]
Merge pull request #10674 from ceph/wip-rgw-no-empty-amzrqid

rgw/rest: don't print empty x-amz-request-id

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #10849 from zhangsw/master
Yehuda Sadeh [Fri, 7 Oct 2016 20:57:18 +0000 (13:57 -0700)]
Merge pull request #10849 from zhangsw/master

rgw: remove a redundant judgement when listng objects.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoos/bluestore: allow default to buffered write 11301/head
Sage Weil [Fri, 7 Oct 2016 20:07:53 +0000 (16:07 -0400)]
os/bluestore: allow default to buffered write

Add config option to buffered writes (in the absense of
a client WILLNEED hint).  Set the config option to false,
though, so that the default behavior is unchanged.

2Q should do a half-decent job of preventing this from
pushing actually-hot data from the cache when it's
enabled, but we'll need to do more testing first.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11353 from dillaman/wip-17423
Mykola Golub [Fri, 7 Oct 2016 19:04:15 +0000 (22:04 +0300)]
Merge pull request #11353 from dillaman/wip-17423

librbd: API changes to support separate data pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd: expose rbd unmap options 11370/head
Ilya Dryomov [Fri, 7 Oct 2016 10:32:43 +0000 (12:32 +0200)]
rbd: expose rbd unmap options

Reuse rbd map -o infrastructure to expose rbd unmap options in
a similar fashion.  Currently it's just one bool option, but we may
need more in the future.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agorbd: fix up terminology in help texts
Ilya Dryomov [Fri, 7 Oct 2016 09:14:16 +0000 (11:14 +0200)]
rbd: fix up terminology in help texts

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agoMerge pull request #11361 from batrick/fs-rm-formatting
Sage Weil [Fri, 7 Oct 2016 13:49:46 +0000 (08:49 -0500)]
Merge pull request #11361 from batrick/fs-rm-formatting

mon: add missing space in warning message

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11364 from badone/wip-_lsb_release_-dead-declarations
Sage Weil [Fri, 7 Oct 2016 13:47:45 +0000 (08:47 -0500)]
Merge pull request #11364 from badone/wip-_lsb_release_-dead-declarations

osd: Remove unused '_lsb_release_' declarations

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11349 from liewegas/wip-compressor
Sage Weil [Fri, 7 Oct 2016 13:42:23 +0000 (08:42 -0500)]
Merge pull request #11349 from liewegas/wip-compressor

compressor: fixes and tests; disable zlib isal (it's broken)

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #11366 from xiexingguo/xxg-wip-bluestore-1007
Sage Weil [Fri, 7 Oct 2016 13:41:35 +0000 (08:41 -0500)]
Merge pull request #11366 from xiexingguo/xxg-wip-bluestore-1007

os/bluestore: simplify blob status checking for small writes

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agounittest_compression: naming nit 11349/head
Sage Weil [Thu, 6 Oct 2016 17:49:18 +0000 (13:49 -0400)]
unittest_compression: naming nit

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_compression: restore zlib_isal setting
Sage Weil [Thu, 6 Oct 2016 17:47:56 +0000 (13:47 -0400)]
unittest_compression: restore zlib_isal setting

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11236 from renhwztetecs/renhw-wip-cephfs-journal-tool
John Spray [Fri, 7 Oct 2016 13:16:06 +0000 (15:16 +0200)]
Merge pull request #11236 from renhwztetecs/renhw-wip-cephfs-journal-tool

tool/cephfs: displaying "list" in journal event mode

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #10021 from rzarzynski/wip-rgw-swift-auth-errors
Orit Wasserman [Fri, 7 Oct 2016 09:52:43 +0000 (11:52 +0200)]
Merge pull request #10021 from rzarzynski/wip-rgw-swift-auth-errors

rgw: handle Swift auth errors in a way compatible with new Tempests.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoos/bluestore: make randomizing value process of kvpair faster 11366/head
xie xingguo [Fri, 7 Oct 2016 08:07:23 +0000 (16:07 +0800)]
os/bluestore: make randomizing value process of kvpair faster

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: fsck() on idempotent mkfs() request
xie xingguo [Fri, 7 Oct 2016 07:24:17 +0000 (15:24 +0800)]
os/bluestore: fsck() on idempotent mkfs() request

E.g., if the fsck() found something during the first mkfs() try,
it can still be caught by the following retry.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: fix comment
xie xingguo [Fri, 7 Oct 2016 03:34:53 +0000 (11:34 +0800)]
os/bluestore: fix comment

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoosd: Remove unused '_lsb_release_' declarations 11364/head
Brad Hubbard [Fri, 7 Oct 2016 03:19:42 +0000 (13:19 +1000)]
osd: Remove unused '_lsb_release_' declarations

_lsb_release_set and _lsb_release_parse declarations still exist despite their
definitions being removed some time ago.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoos/bluestore: sanity check iterator of BufferSpace::_rm_buffer()
xie xingguo [Fri, 7 Oct 2016 03:20:49 +0000 (11:20 +0800)]
os/bluestore: sanity check iterator of BufferSpace::_rm_buffer()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: simplify blob status checking for small writes
xie xingguo [Fri, 7 Oct 2016 01:49:28 +0000 (09:49 +0800)]
os/bluestore: simplify blob status checking for small writes

If a blob is marked as compressed and still mutable, something
is wrong.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11302 from asheplyakov/rados-doc-fixup
Josh Durgin [Thu, 6 Oct 2016 23:24:52 +0000 (16:24 -0700)]
Merge pull request #11302 from asheplyakov/rados-doc-fixup

doc: fix librados example programs

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agomon: add missing space in warning message 11361/head
Patrick Donnelly [Thu, 6 Oct 2016 22:08:54 +0000 (18:08 -0400)]
mon: add missing space in warning message

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agounittest_compression: subsume plugin test
Sage Weil [Thu, 6 Oct 2016 17:44:59 +0000 (13:44 -0400)]
unittest_compression: subsume plugin test

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_compression: subsume _zlib and _snappy test cases
Sage Weil [Thu, 6 Oct 2016 17:43:13 +0000 (13:43 -0400)]
unittest_compression: subsume _zlib and _snappy test cases

This includes zlib and isal interop.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_compressor: smaller big test
Sage Weil [Thu, 6 Oct 2016 15:58:52 +0000 (11:58 -0400)]
unittest_compressor: smaller big test

Just so it runs a bit faster!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocompressor/zlib: disable ISA-L
Sage Weil [Thu, 6 Oct 2016 15:50:31 +0000 (11:50 -0400)]
compressor/zlib: disable ISA-L

This fails the unit tests.  Do not reenable until it is fixed!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocompressor/zlib: add compressor_zlib_isal config option to disable ISA-L
Sage Weil [Thu, 6 Oct 2016 15:49:14 +0000 (11:49 -0400)]
compressor/zlib: add compressor_zlib_isal config option to disable ISA-L

We dynamically enable this if the necessary processor features are present.
Allow this probing to be disabled explicitly.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocompressor/snappy: fix decompress buffer sizing for large buffers
Sage Weil [Thu, 6 Oct 2016 15:36:33 +0000 (11:36 -0400)]
compressor/snappy: fix decompress buffer sizing for large buffers

4 bytes is enough for small buffers, but fails for larger buffers because
snappy encodes the length as a varint.  8 is enough.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_compressor: unified compression tests, parameterized by plugin
Sage Weil [Thu, 6 Oct 2016 15:25:56 +0000 (11:25 -0400)]
unittest_compressor: unified compression tests, parameterized by plugin

This obsoletes the per-plugin plugin tests, which are tedious anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agorbd: utilize new API methods for image id and block name prefix 11353/head
Jason Dillaman [Thu, 6 Oct 2016 16:56:31 +0000 (12:56 -0400)]
rbd: utilize new API methods for image id and block name prefix

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: new API methods to retrieve image id and block name prefix
Jason Dillaman [Thu, 6 Oct 2016 16:48:22 +0000 (12:48 -0400)]
librbd: new API methods to retrieve image id and block name prefix

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: relocate image option processing to create state machine
Jason Dillaman [Thu, 6 Oct 2016 14:57:21 +0000 (10:57 -0400)]
librbd: relocate image option processing to create state machine

Replace the individual image option parameters with the ImageOptions
wrapper and extract the options within the state machine itself.
This will simplify adding support for the data pool and other options
in the future.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: add data pool option to API and config
Jason Dillaman [Thu, 6 Oct 2016 13:41:42 +0000 (09:41 -0400)]
librbd: add data pool option to API and config

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agocls_rbd: fix compiler warning due to feature bit macro type change
Jason Dillaman [Thu, 6 Oct 2016 13:38:25 +0000 (09:38 -0400)]
cls_rbd: fix compiler warning due to feature bit macro type change

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11326 from dillaman/wip-17416
Mykola Golub [Thu, 6 Oct 2016 18:47:45 +0000 (21:47 +0300)]
Merge pull request #11326 from dillaman/wip-17416

rbd-mirror: improve resiliency of stress test case

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11327 from dillaman/wip-17422
Mykola Golub [Thu, 6 Oct 2016 18:46:48 +0000 (21:46 +0300)]
Merge pull request #11327 from dillaman/wip-17422

librbd: cls_rbd updates for separate data pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11329 from atheism/rgw-b64-remove-ostr
Sage Weil [Thu, 6 Oct 2016 17:23:38 +0000 (12:23 -0500)]
Merge pull request #11329 from atheism/rgw-b64-remove-ostr

rgw: remove unused variable "ostr" in rgw_b64.h and fix the comment

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11351 from ifed01/wip-bluestore-misc2
Sage Weil [Thu, 6 Oct 2016 17:22:27 +0000 (12:22 -0500)]
Merge pull request #11351 from ifed01/wip-bluestore-misc2

os/bluestore: Fix invalid compression statfs caused by clone op

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11350 from liewegas/wip-bluestore-compression
Sage Weil [Thu, 6 Oct 2016 16:35:37 +0000 (11:35 -0500)]
Merge pull request #11350 from liewegas/wip-bluestore-compression

os/bluestore: fix up compression tests and debug output

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: Fix invalid compression statfs caused by clone op 11351/head
Igor Fedotov [Thu, 6 Oct 2016 16:29:47 +0000 (16:29 +0000)]
os/bluestore: Fix invalid compression statfs caused by clone op

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #11317 from liewegas/wip-bluestore-aios
Igor Fedotov [Thu, 6 Oct 2016 16:27:09 +0000 (19:27 +0300)]
Merge pull request #11317 from liewegas/wip-bluestore-aios

os/bluestore: fix has_aios

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoceph_test_objectstore: adjust SyntheticMatrixCsumVsCompression parameters 11350/head
Sage Weil [Thu, 6 Oct 2016 16:05:04 +0000 (12:05 -0400)]
ceph_test_objectstore: adjust SyntheticMatrixCsumVsCompression parameters

- larger writes
- test both codecs
- use smaller min_alloc_size so that it's easier to write compressed data
- don't bother with compression off; other matrices cover that.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: clean up compression debug output
Sage Weil [Thu, 6 Oct 2016 16:03:05 +0000 (12:03 -0400)]
os/bluestore: clean up compression debug output

The previous output was impossible to interpret properly.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph_test_objectstore: limit entropy in 'random' data so it can compress
Sage Weil [Thu, 6 Oct 2016 16:02:10 +0000 (12:02 -0400)]
ceph_test_objectstore: limit entropy in 'random' data so it can compress

Both zlib and snappy weren't able to do anything with the current data.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix build error
Sage Weil [Thu, 6 Oct 2016 15:17:01 +0000 (11:17 -0400)]
os/bluestore: fix build error

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11346 from ifed01/wip-bluestore-misc
Sage Weil [Thu, 6 Oct 2016 14:37:56 +0000 (09:37 -0500)]
Merge pull request #11346 from ifed01/wip-bluestore-misc

os/bluestore: misc cleanup and test fixes

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11328 from liewegas/wip-bluestore-more-types
Sage Weil [Thu, 6 Oct 2016 14:33:59 +0000 (09:33 -0500)]
Merge pull request #11328 from liewegas/wip-bluestore-more-types

os/bluestore: pack a few more in-memory types

8 years agotest/store_test: BluestoreStatFSTest fixes for issues introduced with bluestore_compr... 11346/head
Igor Fedotov [Thu, 6 Oct 2016 14:17:40 +0000 (14:17 +0000)]
test/store_test: BluestoreStatFSTest fixes for issues introduced with bluestore_compression_min_blob_size adjustment

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: some cleanup around garbage collector
Igor Fedotov [Wed, 5 Oct 2016 15:14:10 +0000 (15:14 +0000)]
os/bluestore: some cleanup around garbage collector

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #11344 from xiexingguo/xxg-wip-bluestore-1006
Igor Fedotov [Thu, 6 Oct 2016 10:47:03 +0000 (13:47 +0300)]
Merge pull request #11344 from xiexingguo/xxg-wip-bluestore-1006

os/bluestore: fix write_big counter and some more cleanups

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: fix comment 11344/head
xie xingguo [Thu, 6 Oct 2016 09:33:00 +0000 (17:33 +0800)]
os/bluestore: fix comment

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: simplify bluestore_gc_merge_data checking
xie xingguo [Thu, 6 Oct 2016 08:59:31 +0000 (16:59 +0800)]
os/bluestore: simplify bluestore_gc_merge_data checking

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: fix counter of l_bluestore_write_big_bytes
xie xingguo [Thu, 6 Oct 2016 08:44:30 +0000 (16:44 +0800)]
os/bluestore: fix counter of l_bluestore_write_big_bytes

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: more cleanups on _do_write_small()
xie xingguo [Thu, 6 Oct 2016 08:33:00 +0000 (16:33 +0800)]
os/bluestore: more cleanups on _do_write_small()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: add _dump_transaction to reduce code redundancy
xie xingguo [Thu, 6 Oct 2016 07:54:42 +0000 (15:54 +0800)]
os/bluestore: add _dump_transaction to reduce code redundancy

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: upgrade wal_seq to std::atomic
xie xingguo [Thu, 6 Oct 2016 07:36:20 +0000 (15:36 +0800)]
os/bluestore: upgrade wal_seq to std::atomic

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11336 from liewegas/wip-bluestore-spanning-map
Sage Weil [Wed, 5 Oct 2016 22:36:20 +0000 (17:36 -0500)]
Merge pull request #11336 from liewegas/wip-bluestore-spanning-map

os/bluestore: switch spanning_blob_map to std::map

8 years agoMerge pull request #11340 from yehudasa/wip-13286
Casey Bodley [Wed, 5 Oct 2016 20:34:14 +0000 (16:34 -0400)]
Merge pull request #11340 from yehudasa/wip-13286

rgw-admin: allow unsetting user's email

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11334 from ceph/wip-make-dist-tag
Alfredo Deza [Wed, 5 Oct 2016 19:30:24 +0000 (15:30 -0400)]
Merge pull request #11334 from ceph/wip-make-dist-tag

make-dist: set rpm_release correctly for release builds

Reviewed-by: Alfredo Deza <adeza@redhat.com>
8 years agorgw: remove user email index using helper function 11340/head
Yehuda Sadeh [Wed, 5 Oct 2016 18:41:42 +0000 (11:41 -0700)]
rgw: remove user email index using helper function

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw:user email can modify to empty
Weijun Duan [Sat, 27 Feb 2016 09:28:14 +0000 (04:28 -0500)]
rgw:user email can modify to empty

Fixes: http://tracker.ceph.com/issues/13286
Signed-off-by: Weijun Duan <duanweijun@h3c.com>
8 years agomake-dist: set rpm_release correctly for release builds 11334/head
Dan Mick [Wed, 5 Oct 2016 18:01:26 +0000 (11:01 -0700)]
make-dist: set rpm_release correctly for release builds

Similar to autobuild-ceph 17591db, only try to set rpm_release if there
is a release part to the git describe output (i.e. if it's not at a
version tag)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoos/bluestore: switch spanning_blob_map to std::map 11336/head
Sage Weil [Wed, 5 Oct 2016 16:17:07 +0000 (12:17 -0400)]
os/bluestore: switch spanning_blob_map to std::map

The intrusive map overhead on Blob is expensive when a tiny fraction of
Blobs actually end up in the spanning_blob_map.  Let's pay the extra
allocation overhead (for the map node holding the BlobRef) for those rare
cases.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11127 from SirishaGuduru/multitenancy-doc-change
Yehuda Sadeh [Wed, 5 Oct 2016 16:07:17 +0000 (09:07 -0700)]
Merge pull request #11127 from SirishaGuduru/multitenancy-doc-change

Changed config parameter "rgw keystone make new tenants" in radosgw multitenancy

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #10159 from mhackett/wip-mhackett-16604
Yehuda Sadeh [Wed, 5 Oct 2016 16:04:02 +0000 (09:04 -0700)]
Merge pull request #10159 from mhackett/wip-mhackett-16604

doc: add rgw_enable_usage_log option in Rados Gateway admin guide

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #10641 from weiqiaomiao/wqm-wip-rgw-s3api
Yehuda Sadeh [Wed, 5 Oct 2016 15:55:34 +0000 (08:55 -0700)]
Merge pull request #10641 from weiqiaomiao/wqm-wip-rgw-s3api

doc/radosgw: fix description of response elements 'Part'

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11286 from yehudasa/wip-16930
Casey Bodley [Wed, 5 Oct 2016 14:51:08 +0000 (10:51 -0400)]
Merge pull request #11286 from yehudasa/wip-16930

rgw: don't fail if lost race when setting acls

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: remove unused variable "ostr" in rgw_b64.h and fix the comment 11329/head
Weibing Zhang [Wed, 5 Oct 2016 14:34:33 +0000 (22:34 +0800)]
rgw: remove unused variable "ostr" in rgw_b64.h and fix the comment

Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
8 years agoMerge pull request #11319 from markhpc/wip-bluestore-optimize-size
Sage Weil [Wed, 5 Oct 2016 14:15:22 +0000 (09:15 -0500)]
Merge pull request #11319 from markhpc/wip-bluestore-optimize-size

os/bluestore: optimize intrusive sets for size.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11313 from ceph/wip-krbd-lock-on-read-option
Jason Dillaman [Wed, 5 Oct 2016 14:00:29 +0000 (10:00 -0400)]
Merge pull request #11313 from ceph/wip-krbd-lock-on-read-option

rbd: recognize lock_on_read option

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoos/bluestore: simplify BufferSpace writing_map / list 11328/head
Sage Weil [Wed, 5 Oct 2016 13:56:09 +0000 (09:56 -0400)]
os/bluestore: simplify BufferSpace writing_map / list

We were tracking buffers by seq.  In reality, though, we
won't have very many buffers that have in flight IO to
the same blob at the same time, so we can get by with
just a list here.  We can rely on the fact that the
list will be sorted (seq's increase, and we put new
buffers at the end).

This saves us a memory allocation.  No change in size of
BufferSpace and Blob (std::list -> intrusive::list).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_bluestore_types: more type sizeofs
Sage Weil [Wed, 5 Oct 2016 13:44:53 +0000 (09:44 -0400)]
unittest_bluestore_types: more type sizeofs

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11264 from liewegas/wip-bluestore-blob-split
Sage Weil [Wed, 5 Oct 2016 13:44:30 +0000 (08:44 -0500)]
Merge pull request #11264 from liewegas/wip-bluestore-blob-split

os/bluestore: try to split blobs instead of spanning them

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: make Buffer smaller
Sage Weil [Wed, 5 Oct 2016 13:43:07 +0000 (09:43 -0400)]
os/bluestore: make Buffer smaller

160 -> 152 bytes

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocls_rbd: add initial support for separate data pools 11327/head
Jason Dillaman [Wed, 5 Oct 2016 03:38:12 +0000 (23:38 -0400)]
cls_rbd: add initial support for separate data pools

Fixes: http://tracker.ceph.com/issues/17422
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: new RBD_FEATURE_DATA_POOL feature bit
Jason Dillaman [Wed, 5 Oct 2016 02:48:16 +0000 (22:48 -0400)]
librbd: new RBD_FEATURE_DATA_POOL feature bit

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11323 from liewegas/wip-bluestore-more-types
Igor Fedotov [Wed, 5 Oct 2016 11:04:01 +0000 (14:04 +0300)]
Merge pull request #11323 from liewegas/wip-bluestore-more-types

unittest_bluestore_types: a few more types for sizeof

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