]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agorgw: fix uncompressed object size deduction in RGWRados::copy_obj_data. 11794/head
Radoslaw Zarzynski [Sat, 5 Nov 2016 11:46:16 +0000 (12:46 +0100)]
rgw: fix uncompressed object size deduction in RGWRados::copy_obj_data.

Fixes: http://tracker.ceph.com/issues/17803
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #10852 from wido/doc-mon-dns
Kefu Chai [Fri, 4 Nov 2016 11:30:29 +0000 (19:30 +0800)]
Merge pull request #10852 from wido/doc-mon-dns

doc: Add docs about looking up Monitors through DNS

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11774 from wjwithagen/wip-wjw-test_bloom_filter
Kefu Chai [Fri, 4 Nov 2016 06:46:06 +0000 (14:46 +0800)]
Merge pull request #11774 from wjwithagen/wip-wjw-test_bloom_filter

test_bloom_filter.cc: Fix a mismatch for the random_seed parameter

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11731 from kylinstorage/wip-avoid-unnecessary-verify
Kefu Chai [Fri, 4 Nov 2016 02:50:58 +0000 (10:50 +0800)]
Merge pull request #11731 from kylinstorage/wip-avoid-unnecessary-verify

FileStore: Only verify split when it has been really done and done correctly

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agotest/common/test_bloom_filter.cc: Fix a mismatch for the random_seed parameter 11774/head
Willem Jan Withagen [Thu, 3 Nov 2016 21:59:36 +0000 (22:59 +0100)]
test/common/test_bloom_filter.cc: Fix a mismatch for the random_seed parameter

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #11554 from mslovy/wip-fix-fiemap
Sage Weil [Thu, 3 Nov 2016 18:19:37 +0000 (13:19 -0500)]
Merge pull request #11554 from mslovy/wip-fix-fiemap

os/FileStore: fix fiemap issue in xfs when #extents > 1364

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agotest: add test for fiemap xfs issue when #extents > 1364 11554/head
Ning Yao [Thu, 13 Oct 2016 09:25:36 +0000 (17:25 +0800)]
test: add test for fiemap xfs issue when #extents > 1364

Signed-off-by: Ning Yao <yaoning@unitedstack.com>
8 years agoFileStore:: fix fiemap issue in xfs when #extents > 1364
Ning Yao [Thu, 13 Oct 2016 08:53:18 +0000 (16:53 +0800)]
FileStore:: fix fiemap issue in xfs when #extents > 1364

Signed-off-by: Ning Yao <yaoning@unitedstack.com>
8 years agoMerge pull request #11617 from umullan/brokenlinks
Kefu Chai [Thu, 3 Nov 2016 17:03:10 +0000 (01:03 +0800)]
Merge pull request #11617 from umullan/brokenlinks

doc: Fixing the broken hyperlinks by pointing to correct documentation.

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10707 from SUSE/wip-fix-suse-usermod
Sage Weil [Thu, 3 Nov 2016 16:29:02 +0000 (11:29 -0500)]
Merge pull request #10707 from SUSE/wip-fix-suse-usermod

rpm: Remove trailing whitespace in usermod command (SUSE)

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #11494 from aclamk/wip-rgw-compression
Orit Wasserman [Thu, 3 Nov 2016 16:25:02 +0000 (17:25 +0100)]
Merge pull request #11494 from aclamk/wip-rgw-compression

[RGW] Wip rgw compression
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoos/bluestore: fix build error
Sage Weil [Thu, 3 Nov 2016 15:06:46 +0000 (11:06 -0400)]
os/bluestore: fix build error

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11768 from linuxbox2/xio-build-2
Matt Benjamin [Thu, 3 Nov 2016 15:07:17 +0000 (11:07 -0400)]
Merge pull request #11768 from linuxbox2/xio-build-2

xio: fix build

8 years agoMerge pull request #11769 from liewegas/wip-option-name
Sage Weil [Thu, 3 Nov 2016 15:05:35 +0000 (10:05 -0500)]
Merge pull request #11769 from liewegas/wip-option-name

kv/RocksDBStore: rename option

Reviewed-by: Mark Nelson <mnelson@redhat.com>
8 years agokv/RocksDBStore: rename option 11769/head
Sage Weil [Thu, 3 Nov 2016 14:55:41 +0000 (10:55 -0400)]
kv/RocksDBStore: rename option

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11767 from ceph/wip-cmake
Sage Weil [Thu, 3 Nov 2016 15:00:48 +0000 (10:00 -0500)]
Merge pull request #11767 from ceph/wip-cmake

cmake: pass CMAKE_BUILD_TYPE down to rocksdb

Reviewed-by: Bassam Tabbara <bassam.tabbara@quantum.com>
8 years agoxio: build fixes (some unittest targets need XIO_LIBRARY) 11768/head
Matt Benjamin [Thu, 3 Nov 2016 14:38:44 +0000 (10:38 -0400)]
xio: build fixes (some unittest targets need XIO_LIBRARY)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #11748 from liewegas/wip-bluestore-split
Igor Fedotov [Thu, 3 Nov 2016 14:50:45 +0000 (17:50 +0300)]
Merge pull request #11748 from liewegas/wip-bluestore-split

os/bluestore: fix _split_collections race with osr_reap

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoxio: build fixes (XioMessenger lacks features argument)
Matt Benjamin [Thu, 3 Nov 2016 14:46:55 +0000 (10:46 -0400)]
xio: build fixes (XioMessenger lacks features argument)

Applies the constructor signature change to the uses in
xio_client and xio_server test programs.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoxio: compile fix removing undeclared 'features'
Marov Aleksey [Thu, 3 Nov 2016 13:41:51 +0000 (09:41 -0400)]
xio:  compile fix removing undeclared 'features'

This fix was proposed on ceph-devel and acked by Sage Weil.
The corresponding change in in the later print is obvious
from context.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoos/bluestore: fix _split_collections race with osr_reap 11748/head
Sage Weil [Thu, 3 Nov 2016 14:33:23 +0000 (10:33 -0400)]
os/bluestore: fix _split_collections race with osr_reap

The SharedBlobSet may not yet be empty at split time because previous
transactions may not have been reaped, leaving some Blobs still alive
even after the cache refs are cleared.  Drop them explicitly here (they
will go away shortly).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #9444 from Adirl/dout_prefix
Sage Weil [Thu, 3 Nov 2016 14:21:27 +0000 (09:21 -0500)]
Merge pull request #9444 from Adirl/dout_prefix

xio: provide dout_prefix for XioConnection

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agocmake: pass CMAKE_BUILD_TYPE down to rocksdb 11767/head
Kefu Chai [Thu, 3 Nov 2016 14:18:10 +0000 (22:18 +0800)]
cmake: pass CMAKE_BUILD_TYPE down to rocksdb

so rocksdb share the same ${CMAKE_BUILD_TYPE} with ceph

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11704 from dillaman/wip-17752
Mykola Golub [Thu, 3 Nov 2016 13:59:49 +0000 (15:59 +0200)]
Merge pull request #11704 from dillaman/wip-17752

librbd: do not create empty object map object on image creation

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11696 from tanghaodong25/rocksdb-breakdown-wip
Sage Weil [Thu, 3 Nov 2016 13:51:48 +0000 (08:51 -0500)]
Merge pull request #11696 from tanghaodong25/rocksdb-breakdown-wip

kv/rocksdb: enable rocksdb write path breakdown

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11752 from stiopaa1/mds_mdsrank_addConstToMemFunc
Sage Weil [Thu, 3 Nov 2016 13:48:37 +0000 (08:48 -0500)]
Merge pull request #11752 from stiopaa1/mds_mdsrank_addConstToMemFunc

mds/MDSRank: add const to member functions

8 years agoMerge pull request #11761 from xiexingguo/xxg-wip-fix-envmirror-cleanup
Sage Weil [Thu, 3 Nov 2016 13:43:15 +0000 (08:43 -0500)]
Merge pull request #11761 from xiexingguo/xxg-wip-fix-envmirror-cleanup

os/bluestore: fixes and cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11762 from atheism/doc-rgw-s3-javaapi
Matt Benjamin [Thu, 3 Nov 2016 13:31:56 +0000 (09:31 -0400)]
Merge pull request #11762 from atheism/doc-rgw-s3-javaapi

doc: rgw: fix a typo in S3 java api example

8 years agodoc: rgw: fix a typo in S3 java api example 11762/head
Weibing Zhang [Thu, 3 Nov 2016 10:23:02 +0000 (18:23 +0800)]
doc: rgw: fix a typo in S3 java api example

    ObjectSummary.getSize() should be objectSummary.getSize()

Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
8 years agoMerge pull request #11753 from yehudasa/wip-17790
Orit Wasserman [Thu, 3 Nov 2016 10:07:24 +0000 (11:07 +0100)]
Merge pull request #11753 from yehudasa/wip-17790

rgw: support for x-robots-tag header
Reviewed-by: Orit wasserman <owasserm@redhat.com>
8 years agodoc: Fixing the broken hyperlinks by pointing to correct documentation. 11617/head
Uday Mullangi [Mon, 24 Oct 2016 08:46:57 +0000 (14:16 +0530)]
doc: Fixing the broken hyperlinks by pointing to correct documentation.
Signed-off-by: umullangi@walmartlabs.com
8 years agoos/bluestore: fix improper call of shutdown() to mempool_thread 11761/head
xie xingguo [Thu, 3 Nov 2016 07:15:36 +0000 (15:15 +0800)]
os/bluestore: fix improper call of shutdown() to mempool_thread

Because below here we haven't called mempool_thread.init() yet,
and call to mempool_thread.shutdown() will therefore raise an assert instead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: drop safe check against g_conf
xie xingguo [Thu, 3 Nov 2016 06:44:42 +0000 (14:44 +0800)]
os/bluestore: drop safe check against g_conf

We are using g_conf unconditionly everywhere...

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: drop redundant boundary check
xie xingguo [Thu, 3 Nov 2016 03:18:25 +0000 (11:18 +0800)]
os/bluestore: drop redundant boundary check

As we have done the sanity check ahead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: fix "rm -rf" cmd
xie xingguo [Thu, 3 Nov 2016 06:14:49 +0000 (14:14 +0800)]
os/bluestore: fix "rm -rf" cmd

The original cmd won't do the tidy-up work completedly.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agorgw: support for x-robots-tag header 11753/head
Yehuda Sadeh [Wed, 2 Nov 2016 22:55:34 +0000 (15:55 -0700)]
rgw: support for x-robots-tag header

Fixes: http://tracker.ceph.com/issues/17790
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11331 from liewegas/wip-mempool
Sage Weil [Wed, 2 Nov 2016 17:50:23 +0000 (12:50 -0500)]
Merge pull request #11331 from liewegas/wip-mempool

mempool: mempool infrastructure, bluestore changes to use it

Reviewed-by: Allen Samuels <allen.samuels@sandisk.com>
8 years agomempool: use function static for pool table 11331/head
Sage Weil [Thu, 20 Oct 2016 15:10:08 +0000 (10:10 -0500)]
mempool: use function static for pool table

The compiler/linker guarantee this is initialized before any invocation
of this function... even if it is by a ctor in another compilation unit
that is initialized by the mempool.cc compilation unit.

Suggested by Bartłomiej Święcki <bartlomiej.swiecki@corp.ovh.com>

Signed-off-by: Allen Samuels <allen.samuels@sandisk.com>
8 years agomempool: do not dump unused pools
Sage Weil [Tue, 18 Oct 2016 16:12:43 +0000 (12:12 -0400)]
mempool: do not dump unused pools

Notably, unittest_[12]. :)

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: put pool namespaces within mempool::
Sage Weil [Tue, 18 Oct 2016 16:09:39 +0000 (12:09 -0400)]
mempool: put pool namespaces within mempool::

e.g., mempool::bluestore_meta_other::list<...> ...

This avoids colliding with other names and types when the pool
name is something common (like "osd").

Signed-off-by: Sage Weil <sage@redhat.com>
# Conflicts:
# src/include/mempool.h

8 years agomempool: simplify debug settings
Sage Weil [Tue, 18 Oct 2016 16:06:27 +0000 (12:06 -0400)]
mempool: simplify debug settings

There's no need for a per-pool debug flag; just use the global
debug_mode bool!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: force per-type factories to register with the pool
Sage Weil [Tue, 18 Oct 2016 16:03:28 +0000 (12:03 -0400)]
mempool: force per-type factories to register with the pool

We want these to get their debug flag adjusted when it is turned
on and off.

(In contrast, we accept that STL containers will only be debugged
if mempool debug was on when they are constructed.)

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/encoding: parameterize stl containers encoders with allocator
Sage Weil [Tue, 18 Oct 2016 02:42:17 +0000 (22:42 -0400)]
include/encoding: parameterize stl containers encoders with allocator

This will let us encode/decode containers with custom allocators
(i.e., in mempools).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: simplify initialization
Sage Weil [Tue, 18 Oct 2016 16:01:52 +0000 (12:01 -0400)]
mempool: simplify initialization

Assume that the array will be zeroed when the process starts, and
avoid the possibility that it will be zeroed *again* when the
ctors run for this link module (potentially clobbering values
that have been filled in by other ctors who ran earlier than
ours).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/types: parameterize operator<< helpers on comparator, allocator
Sage Weil [Mon, 17 Oct 2016 18:19:27 +0000 (14:19 -0400)]
include/types: parameterize operator<< helpers on comparator, allocator

This allows these templates to apply to containers with
non-default comparators or allocators.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/mempool: fix comment
Sage Weil [Mon, 17 Oct 2016 17:56:59 +0000 (13:56 -0400)]
include/mempool: fix comment

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: dynamic index by type in pool_t
Sage Weil [Fri, 14 Oct 2016 21:50:33 +0000 (17:50 -0400)]
mempool: dynamic index by type in pool_t

This avoids having to use statics for the pool_allocators and
guessing what intenral types the containers are going to need.
It'll be a bit slower in debug on on construction and destruction,
but who cares!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/mempool: define additional pair factory for unordered_map
Sage Weil [Fri, 14 Oct 2016 20:48:52 +0000 (16:48 -0400)]
include/mempool: define additional pair factory for unordered_map

This fixes build on debian jessie, libstdc++-4.9-dev:amd64 4.9.2-10.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: pick shard on every allocation; move types to pool_t
Sage Weil [Tue, 11 Oct 2016 22:20:03 +0000 (18:20 -0400)]
mempool: pick shard on every allocation; move types to pool_t

If we have a static choice of shard for every *type*
(pool_allocator_base_t) then we will hammer that shard from all
threads and play cacheline ping-pong.  Instead, move the types
list to pool_t (there aren't that many anyway) and pick a shard
on every allocate/deallocate call.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: make num_shards a power of 2
Sage Weil [Tue, 11 Oct 2016 22:17:41 +0000 (18:17 -0400)]
mempool: make num_shards a power of 2

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/mempool: rename containers -> types
Sage Weil [Tue, 11 Oct 2016 20:47:16 +0000 (16:47 -0400)]
include/mempool: rename containers -> types

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/mempool: note about runtime complexity
Sage Weil [Tue, 11 Oct 2016 20:44:51 +0000 (16:44 -0400)]
include/mempool: note about runtime complexity

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore/bluestore_types: disable ref_map internal _check
Sage Weil [Tue, 11 Oct 2016 19:46:42 +0000 (15:46 -0400)]
os/bluestore/bluestore_types: disable ref_map internal _check

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: restructure cache trimming in terms of mempool
Sage Weil [Tue, 11 Oct 2016 18:25:01 +0000 (14:25 -0400)]
os/bluestore: restructure cache trimming in terms of mempool

Trim cache based on overall memory utilization by cache objects,
as tracked by the bluestore_meta_* mempools.  This lets you
configure the bluestore cache size in terms of bytes of memory.

Note that we do not account for other memory utilization by the
OSD.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: move most cache types into mempools
Sage Weil [Tue, 11 Oct 2016 18:23:52 +0000 (14:23 -0400)]
os/bluestore: move most cache types into mempools

Keep onodes separate so we can use onodes as a sentinal for
overall memory usage (this is what we trim in terms of anyway).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoglobal: introduce mempool_debug config option, asok command
Sage Weil [Tue, 11 Oct 2016 18:21:56 +0000 (14:21 -0400)]
global: introduce mempool_debug config option, asok command

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/mempool: introduce mempool infrastructure
Sage Weil [Tue, 11 Oct 2016 18:33:14 +0000 (14:33 -0400)]
include/mempool: introduce mempool infrastructure

This is heavily based on Allen Samuels' prototype.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #2 from cbodley/wip-rgw-compression-doc 11494/head
Adam Kupczyk [Wed, 2 Nov 2016 16:34:56 +0000 (17:34 +0100)]
Merge pull request #2 from cbodley/wip-rgw-compression-doc

doc/rgw: document rgw_compression_type

8 years agorgw: remove unused rgw_compression_enabled
Casey Bodley [Wed, 2 Nov 2016 15:18:41 +0000 (11:18 -0400)]
rgw: remove unused rgw_compression_enabled

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agodoc/rgw: document rgw_compression_type
Casey Bodley [Wed, 2 Nov 2016 15:18:19 +0000 (11:18 -0400)]
doc/rgw: document rgw_compression_type

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11726 from liewegas/wip-bluestore-fsck-omap
Sage Weil [Wed, 2 Nov 2016 13:49:11 +0000 (08:49 -0500)]
Merge pull request #11726 from liewegas/wip-bluestore-fsck-omap

os/bluestore: fsck: fix omap_head check

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: fsck: fix omap_head check 11726/head
Sage Weil [Wed, 2 Nov 2016 13:48:37 +0000 (09:48 -0400)]
os/bluestore: fsck: fix omap_head check

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11740 from xiexingguo/xxg-wip-bluestore-1102
Sage Weil [Wed, 2 Nov 2016 13:47:53 +0000 (08:47 -0500)]
Merge pull request #11740 from xiexingguo/xxg-wip-bluestore-1102

os/bluestore: less code redundancy

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11725 from liewegas/wip-bluestore-shard-span
Sage Weil [Wed, 2 Nov 2016 13:34:50 +0000 (08:34 -0500)]
Merge pull request #11725 from liewegas/wip-bluestore-shard-span

os/bluestore: fix extent shard span check

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoFixed warnings.
Adam Kupczyk [Wed, 2 Nov 2016 10:13:41 +0000 (11:13 +0100)]
Fixed warnings.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agorgw: maintain uncompressed size in copy_obj_data
Casey Bodley [Wed, 26 Oct 2016 18:54:37 +0000 (14:54 -0400)]
rgw: maintain uncompressed size in copy_obj_data

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoFixed bad rebase on read_op.prepare()
Adam Kupczyk [Fri, 14 Oct 2016 10:09:20 +0000 (12:09 +0200)]
Fixed bad rebase on read_op.prepare()

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoFixed problem with isal-regular gzip compatibility.
Adam Kupczyk [Wed, 12 Oct 2016 13:40:29 +0000 (15:40 +0200)]
Fixed problem with isal-regular gzip compatibility.
Added tests.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoFixed missing param to processor->complete().
Adam Kupczyk [Fri, 30 Sep 2016 11:54:54 +0000 (13:54 +0200)]
Fixed missing param to processor->complete().

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoradosgw-admin: add 'size_utilized' to bucket stats
Casey Bodley [Thu, 29 Sep 2016 21:30:29 +0000 (17:30 -0400)]
radosgw-admin: add 'size_utilized' to bucket stats

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: use RGWStorageStats::dump() to format 'bucket stats'
Casey Bodley [Thu, 29 Sep 2016 21:04:30 +0000 (17:04 -0400)]
rgw: use RGWStorageStats::dump() to format 'bucket stats'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: Bucket::List::list_objects no longer reads compression attribute for size
Casey Bodley [Thu, 29 Sep 2016 16:38:19 +0000 (12:38 -0400)]
rgw: Bucket::List::list_objects no longer reads compression attribute for size

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: remove compression attribute from bucket instance
Casey Bodley [Thu, 29 Sep 2016 16:42:57 +0000 (12:42 -0400)]
rgw: remove compression attribute from bucket instance

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoFixed possible problems when compression expands data.
Adam Kupczyk [Fri, 30 Sep 2016 09:31:13 +0000 (11:31 +0200)]
Fixed possible problems when compression expands data.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoFixed problem with snappy compressor when data size <=3.
Adam Kupczyk [Fri, 30 Sep 2016 09:26:29 +0000 (11:26 +0200)]
Fixed problem with snappy compressor when data size <=3.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agorgw: pass accounted_size directly into RGWPutObjProcessor::complete
Casey Bodley [Thu, 29 Sep 2016 16:34:17 +0000 (12:34 -0400)]
rgw: pass accounted_size directly into RGWPutObjProcessor::complete

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: add accounted_size to RGWUploadPartInfo
Casey Bodley [Thu, 29 Sep 2016 21:59:32 +0000 (17:59 -0400)]
rgw: add accounted_size to RGWUploadPartInfo

and use accounted_size for ListMultipart operations

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: add accounted_size argument to Write::write_meta
Casey Bodley [Thu, 29 Sep 2016 16:32:21 +0000 (12:32 -0400)]
rgw: add accounted_size argument to Write::write_meta

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: add accounted_size argument to UpdateIndex::complete
Casey Bodley [Thu, 29 Sep 2016 16:30:19 +0000 (12:30 -0400)]
rgw: add accounted_size argument to UpdateIndex::complete

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: add accounted_size to RGWObjEnt
Casey Bodley [Thu, 29 Sep 2016 16:28:10 +0000 (12:28 -0400)]
rgw: add accounted_size to RGWObjEnt

and use accounted_size for BucketList operations

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: add accounted_size to RGWObjState
Casey Bodley [Thu, 29 Sep 2016 15:44:00 +0000 (11:44 -0400)]
rgw: add accounted_size to RGWObjState

RGWRados::get_obj_state() now initializes accounted_size based on
the compression attribute, if present

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agocls/rgw: use rgw_bucket_dir_entry_meta::size to accumulate actual_size
Casey Bodley [Wed, 28 Sep 2016 19:52:29 +0000 (15:52 -0400)]
cls/rgw: use rgw_bucket_dir_entry_meta::size to accumulate actual_size

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agocls/rgw: add actual_size to rgw_bucket_caregory_stats
Casey Bodley [Wed, 28 Sep 2016 19:37:17 +0000 (15:37 -0400)]
cls/rgw: add actual_size to rgw_bucket_caregory_stats

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agocls/rgw: fix function names of log output
Casey Bodley [Wed, 28 Sep 2016 19:23:41 +0000 (15:23 -0400)]
cls/rgw: fix function names of log output

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoAdded missing decompression when reading SLO.
Adam Kupczyk [Wed, 21 Sep 2016 07:54:53 +0000 (09:54 +0200)]
Added missing decompression when reading SLO.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoMerge pull request #11738 from ceph/wip-cmake
Kefu Chai [Wed, 2 Nov 2016 10:44:26 +0000 (18:44 +0800)]
Merge pull request #11738 from ceph/wip-cmake

cmake: do not link erasure tests again libosd

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #11384 from wjwithagen/patch-14
Kefu Chai [Wed, 2 Nov 2016 10:39:28 +0000 (18:39 +0800)]
Merge pull request #11384 from wjwithagen/patch-14

test_subman.sh: Don't use --tmpdir

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoAdded compression handling when syncing.
Adam Kupczyk [Wed, 14 Sep 2016 15:52:22 +0000 (17:52 +0200)]
Added compression handling when syncing.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoMoved handling extra data from RGWPutObjProcessor to RGWRadosPutObj
Adam Kupczyk [Wed, 14 Sep 2016 11:03:33 +0000 (13:03 +0200)]
Moved handling extra data from RGWPutObjProcessor to RGWRadosPutObj

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoCleanup of compression-related code in RGWGetObj::execute.
Adam Kupczyk [Fri, 2 Sep 2016 15:44:17 +0000 (17:44 +0200)]
Cleanup of compression-related code in RGWGetObj::execute.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoRGWRados::Object::Read::prepare no longer calculates offsets.
Adam Kupczyk [Thu, 1 Sep 2016 15:23:51 +0000 (17:23 +0200)]
RGWRados::Object::Read::prepare no longer calculates offsets.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agoFixed problem with using uninitialized 'compressed' field.
Adam Kupczyk [Wed, 31 Aug 2016 08:49:10 +0000 (10:49 +0200)]
Fixed problem with using uninitialized 'compressed' field.

Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
8 years agotest/rgw: add unit test for rgw compression
Casey Bodley [Mon, 8 Aug 2016 21:06:12 +0000 (17:06 -0400)]
test/rgw: add unit test for rgw compression

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: move compression code in filters system
Ved-vampir [Thu, 30 Jun 2016 12:55:16 +0000 (15:55 +0300)]
rgw: move compression code in filters system
Signed-off-by: Alyona Kiseleva <akiselyova@mirantis.com>
8 years agoRenamed and moved RGWPutObjEncryptFilter -> RGWPutObj_Filter.
Adam Kupczyk [Tue, 19 Apr 2016 09:44:13 +0000 (11:44 +0200)]
Renamed and moved RGWPutObjEncryptFilter -> RGWPutObj_Filter.

Signed-off-by: Adam Kupczyk (akupczyk@mirantis.com)
8 years agoIntroduced filter concepts to RGWGetObj. Plugged in decryption.
Adam Kupczyk [Wed, 13 Apr 2016 09:00:43 +0000 (11:00 +0200)]
Introduced filter concepts to RGWGetObj. Plugged in decryption.
Allows to plug in decompression in future.

Signed-off-by: Adam Kupczyk (a.kupczyk@mirantis.com)
Conflicts:
src/rgw/rgw_op.cc

8 years agoChange contract of rgw put operation. Now last, 0 - sized chunk is also processed.
Adam Kupczyk [Thu, 7 Apr 2016 14:10:29 +0000 (16:10 +0200)]
Change contract of rgw put operation. Now last, 0 - sized chunk is also processed.
Allows to implement flush-like operations on data.

Signed-off-by: Adam Kupczyk (akupczyk@mirantis.com)
Conflicts:
src/rgw/rgw_op.cc

8 years agoAdded RGWPutObjEncryptFilter. Will be used for encryption and compression filters.
Adam Kupczyk [Thu, 7 Apr 2016 14:09:49 +0000 (16:09 +0200)]
Added RGWPutObjEncryptFilter. Will be used for encryption and compression filters.

Signed-off-by: Adam Kupczyk (akupczyk@mirantis.com)
8 years agoChanged hash calculation logic.
Adam Kupczyk [Thu, 7 Apr 2016 14:01:59 +0000 (16:01 +0200)]
Changed hash calculation logic.
Changed RGWPutObjProcessor interface with regard to hash calculation.

Signed-off-by: Adam Kupczyk (akupczyk@mirantis.com)
Conflicts:
src/rgw/rgw_op.cc
src/rgw/rgw_rados.cc

8 years agorgw: fix output for stat functions to return decompressed data size
Ved-vampir [Fri, 13 May 2016 14:41:26 +0000 (17:41 +0300)]
rgw: fix output for stat functions to return decompressed data size
Signed-off-by: Alyona Kiseleva <akiselyova@mirantis.com>