]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoos/bluestore: paranoid checks on onode_map vs lru 9470/head
Sage Weil [Fri, 3 Jun 2016 20:42:35 +0000 (16:42 -0400)]
os/bluestore: paranoid checks on onode_map vs lru

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: replace broken get_next with map_any
Sage Weil [Fri, 3 Jun 2016 20:41:37 +0000 (16:41 -0400)]
os/bluestore: replace broken get_next with map_any

The get_next implementation assumed the lru was local to the OnodeSpace,
but it includes the whole cache now.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: better audit_lru debugging
Sage Weil [Thu, 2 Jun 2016 20:44:03 +0000 (16:44 -0400)]
os/bluestore: better audit_lru debugging

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: shard the cache
Sage Weil [Thu, 2 Jun 2016 20:33:01 +0000 (16:33 -0400)]
os/bluestore: shard the cache

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd: communicate shard count to ObjectStore
Sage Weil [Thu, 2 Jun 2016 20:19:04 +0000 (16:19 -0400)]
osd: communicate shard count to ObjectStore

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd: use spg_t method to hash pg to (wq) shard
Sage Weil [Thu, 2 Jun 2016 20:03:00 +0000 (16:03 -0400)]
osd: use spg_t method to hash pg to (wq) shard

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: unify lrus into single Cache class
Sage Weil [Thu, 2 Jun 2016 19:53:32 +0000 (15:53 -0400)]
os/bluestore: unify lrus into single Cache class

This will be sharded soon, but for now there's just one instance.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: unique type names or onode and buffer lrus
Sage Weil [Thu, 2 Jun 2016 19:04:03 +0000 (15:04 -0400)]
os/bluestore: unique type names or onode and buffer lrus

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: take collection lock when trimming collection cache
Sage Weil [Thu, 2 Jun 2016 18:39:15 +0000 (14:39 -0400)]
os/bluestore: take collection lock when trimming collection cache

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: audit LRU at various points
Sage Weil [Thu, 2 Jun 2016 17:56:46 +0000 (13:56 -0400)]
os/bluestore: audit LRU at various points

This is purely for debugging.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: don't print bnode key
Sage Weil [Thu, 2 Jun 2016 19:52:12 +0000 (15:52 -0400)]
os/bluestore: don't print bnode key

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fix buffercache discard bug
Sage Weil [Thu, 2 Jun 2016 17:55:04 +0000 (13:55 -0400)]
os/bluestore: fix buffercache discard bug

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9465 from liewegas/wip-bluestore-zero
Sage Weil [Fri, 3 Jun 2016 14:46:26 +0000 (10:46 -0400)]
Merge pull request #9465 from liewegas/wip-bluestore-zero

os/bluestore: remove aio_zero from bdev interface

9 years agoMerge pull request #9417 from chhabaramesh/master
Sage Weil [Fri, 3 Jun 2016 14:45:44 +0000 (10:45 -0400)]
Merge pull request #9417 from chhabaramesh/master

os/bluestore: Tree based bitmapalloc

9 years agoMerge pull request #9466 from liewegas/wip-rocksdb
Sage Weil [Fri, 3 Jun 2016 14:41:35 +0000 (10:41 -0400)]
Merge pull request #9466 from liewegas/wip-rocksdb

rocksdb: pull up to latest master

9 years agoMakefile-rocksdb.am: update 9466/head
Sage Weil [Fri, 3 Jun 2016 14:01:37 +0000 (10:01 -0400)]
Makefile-rocksdb.am: update

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9457 from yehudasa/wip-14534
Orit Wasserman [Fri, 3 Jun 2016 13:18:15 +0000 (15:18 +0200)]
Merge pull request #9457 from yehudasa/wip-14534

rgw: can set negative max_buckets on RGWUserInfo
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agounittest_bluefs: fix more
Sage Weil [Fri, 3 Jun 2016 12:54:06 +0000 (08:54 -0400)]
unittest_bluefs: fix more

- wait for aio to finish
- shut down bdev, which stops the aio completion thread
- *then* deallocate the IOContexts

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9399 from mikulely/update-ceph-deploy-link
Kefu Chai [Fri, 3 Jun 2016 12:36:35 +0000 (20:36 +0800)]
Merge pull request #9399 from mikulely/update-ceph-deploy-link

doc: update broken link for deploy ceph by Chef

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9441 from xinxinsh/wip-16706
Jason Dillaman [Fri, 3 Jun 2016 12:08:19 +0000 (08:08 -0400)]
Merge pull request #9441 from xinxinsh/wip-16706

librbd: remove invalid object map flag when object map is disabled

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9437 from x11562/object-map
Jason Dillaman [Fri, 3 Jun 2016 12:02:57 +0000 (08:02 -0400)]
Merge pull request #9437 from x11562/object-map

librbd: add object-map rebuild fail error log

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8652 from JiYou/fix-cephfs
John Spray [Fri, 3 Jun 2016 11:46:03 +0000 (12:46 +0100)]
Merge pull request #8652 from JiYou/fix-cephfs

cephfs: should close file handler before exit in cephfs.cc

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #8925 from ukernel/wip-15723
John Spray [Fri, 3 Jun 2016 10:50:55 +0000 (11:50 +0100)]
Merge pull request #8925 from ukernel/wip-15723

client: fstat should take CEPH_STAT_CAP_INODE_ALL

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9421 from renhwztetecs/renhw-wip-cdir
John Spray [Fri, 3 Jun 2016 10:49:56 +0000 (11:49 +0100)]
Merge pull request #9421 from renhwztetecs/renhw-wip-cdir

mds/cdir: limit max snap id in lookup()

Reviewed-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #9418 from xiexingguo/xxg-wip-fix-mdsmonitor
John Spray [Fri, 3 Jun 2016 10:45:38 +0000 (11:45 +0100)]
Merge pull request #9418 from xiexingguo/xxg-wip-fix-mdsmonitor

mon/MDSMonitor: fix wrong positive result of jewel flag check

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #8965 from ukernel/wip-lock-starve
John Spray [Fri, 3 Jun 2016 10:43:47 +0000 (11:43 +0100)]
Merge pull request #8965 from ukernel/wip-lock-starve

mds: finish lock waiters in the same order that they were added.

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #8695 from renhwztetecs/renhw-wip-mds-dispatch
John Spray [Fri, 3 Jun 2016 10:41:58 +0000 (11:41 +0100)]
Merge pull request #8695 from renhwztetecs/renhw-wip-mds-dispatch

 mds: dispatch assert cleanup

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoos/bluestore:Tree based bitmapalloc 9417/head
Ramesh Chander [Mon, 23 May 2016 12:04:40 +0000 (05:04 -0700)]
os/bluestore:Tree based bitmapalloc

Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
9 years agolibrbd: object-map rebuild fail, add error information 9437/head
x11562 [Fri, 3 Jun 2016 01:36:33 +0000 (09:36 +0800)]
librbd: object-map rebuild fail, add error information

Signed-off-by: Na Xie <xie.na@h3c.com>
9 years agoremove invalid objectmap flag when objectmap is disabled 9441/head
xinxin shu [Thu, 2 Jun 2016 06:13:09 +0000 (14:13 +0800)]
remove invalid objectmap flag when objectmap is disabled
Fixes: http://tracker.ceph.com/issues/16076
Signed-off-by: xinxin shu <shuxinxin@chinac.com>
9 years agoMerge pull request #9349 from Adirl/fix_compiltaion_entity_addr_t4
Casey Bodley [Thu, 2 Jun 2016 20:03:45 +0000 (16:03 -0400)]
Merge pull request #9349 from Adirl/fix_compiltaion_entity_addr_t4

msg: add const overload to entity_addr_t functions

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoos/bluestore: remove aio_zero from BlockDevice interface 9465/head
Sage Weil [Thu, 2 Jun 2016 18:34:10 +0000 (14:34 -0400)]
os/bluestore: remove aio_zero from BlockDevice interface

No users.  Not needed.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9295 from cbodley/wip-rgw-rados-vector
Matt Benjamin [Thu, 2 Jun 2016 17:41:59 +0000 (13:41 -0400)]
Merge pull request #9295 from cbodley/wip-rgw-rados-vector

rgw: use vector for librados handles

9 years agoMerge pull request #9454 from tanghaodong25/bluestore-write-path
Sage Weil [Thu, 2 Jun 2016 17:13:12 +0000 (13:13 -0400)]
Merge pull request #9454 from tanghaodong25/bluestore-write-path

os/bluestore: no 'head_read' when check ondisk length.

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: no 'head_read' when check ondisk length. 9454/head
haodong [Thu, 2 Jun 2016 10:32:03 +0000 (18:32 +0800)]
os/bluestore: no 'head_read' when check ondisk length.

Signed-off-by: Haodong Tang <haodong.tang@intel.com>
9 years agoMerge pull request #9458 from jimwright/master
Sage Weil [Thu, 2 Jun 2016 15:46:21 +0000 (11:46 -0400)]
Merge pull request #9458 from jimwright/master

librados: Added declaration for rados_aio_get_version

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9462 from athanatos/wip-15952
Sage Weil [Thu, 2 Jun 2016 15:45:36 +0000 (11:45 -0400)]
Merge pull request #9462 from athanatos/wip-15952

osd/ReplicatedPG: adjust num_pinned in _delete_oid

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9236 from athanatos/wip-15943
Sage Weil [Thu, 2 Jun 2016 15:44:54 +0000 (11:44 -0400)]
Merge pull request #9236 from athanatos/wip-15943

osd/PG: update PGPool to detect map gaps and reset cached_removed_snaps

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9460 from pritha-srivastava/wip-cmake-vstart
Casey Bodley [Thu, 2 Jun 2016 15:29:55 +0000 (11:29 -0400)]
Merge pull request #9460 from pritha-srivastava/wip-cmake-vstart

cmake: detection scripts use lowercase project name

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agocmake: detection scripts use lowercase project name 9460/head
Pritha [Thu, 2 Jun 2016 15:07:01 +0000 (20:37 +0530)]
cmake: detection scripts use lowercase project name

Changing the detection scripts to use the new project name, changed in commit
c1a37101ea87a973068f2dc9858487f83ae57f88 (cmake: project name should be "ceph")

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
9 years agolibrados: Added declaration for rados_aio_get_version 9458/head
Jim Wright [Thu, 2 Jun 2016 14:12:30 +0000 (15:12 +0100)]
librados: Added declaration for rados_aio_get_version

Was missing from librados.h and hence had an incorrect
visability.

Fixes: #15535
9 years agoMerge pull request #9449 from ifed01/wip-bluestore-crc32
Sage Weil [Thu, 2 Jun 2016 14:06:17 +0000 (10:06 -0400)]
Merge pull request #9449 from ifed01/wip-bluestore-crc32

os/bluestore: Some improvement for crc32c calculations

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agorocksdb: pull up to latest master
Sage Weil [Wed, 1 Jun 2016 19:51:12 +0000 (15:51 -0400)]
rocksdb: pull up to latest master

This includes our replay fixes, which are now upstream.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9448 from tchaikov/wip-fix-warning
Sage Weil [Thu, 2 Jun 2016 13:57:34 +0000 (09:57 -0400)]
Merge pull request #9448 from tchaikov/wip-fix-warning

test/osd/TestRados.cc: silence a compiler warning

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoqa/workunits/rados/loadgen-mostly-read.sh: half as much data (512mb)
Sage Weil [Thu, 2 Jun 2016 13:51:16 +0000 (09:51 -0400)]
qa/workunits/rados/loadgen-mostly-read.sh: half as much data (512mb)

Use less space so we can run on openstack.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agorgw: can set negative max_buckets on RGWUserInfo 9457/head
Yehuda Sadeh [Thu, 2 Jun 2016 11:28:30 +0000 (04:28 -0700)]
rgw: can set negative max_buckets on RGWUserInfo

This can be used to disable user's bucket creation

Fixes: http://tracker.ceph.com/issues/14534
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #9037 from rzarzynski/wip-rgw-swift-quota
Orit Wasserman [Thu, 2 Jun 2016 12:45:43 +0000 (14:45 +0200)]
Merge pull request #9037 from rzarzynski/wip-rgw-swift-quota

rgw: add support for account and container quotas of Swift API
Reviewed-by" Orit Wasserman <owasserm@redhat.com>

9 years agoos/bluestore: dec->hex for verify_csum error reporting 9449/head
Igor Fedotov [Thu, 2 Jun 2016 09:21:35 +0000 (12:21 +0300)]
os/bluestore: dec->hex for verify_csum error reporting

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agorgw: reuse populate_with_generic_attrs() across rgw_op.cc.Reviewed-by: Orit Wasserman...
Orit Wasserman [Thu, 2 Jun 2016 09:20:55 +0000 (11:20 +0200)]
rgw: reuse populate_with_generic_attrs() across rgw_op.cc.Reviewed-by: Orit Wasserman <owasserm@redhat.com>

rgw: reuse populate_with_generic_attrs() across rgw_op.cc.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agocommon/Checksummer: Eliminates data copying in crc32c calculation
Igor Fedotov [Thu, 2 Jun 2016 09:19:23 +0000 (12:19 +0300)]
common/Checksummer: Eliminates data copying in crc32c calculation

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoMerge pull request #9367 from Yan-waller/yj-wip-rgwfixhextobuf
Orit Wasserman [Thu, 2 Jun 2016 09:19:05 +0000 (11:19 +0200)]
Merge pull request #9367 from Yan-waller/yj-wip-rgwfixhextobuf

rgw/common: fix error return value of hex_to_buf.
Reviewed by: Orit Wasserman <owasserm@redhat.com>

9 years agocommon/bufferlist: Adds test cases for bufferlist::iterator::crc32c
Igor Fedotov [Thu, 2 Jun 2016 09:17:47 +0000 (12:17 +0300)]
common/bufferlist: Adds test cases for bufferlist::iterator::crc32c

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agocommon/bufferlist: Fixes lack of offset increment in get_ptr_and_advance
Igor Fedotov [Thu, 2 Jun 2016 09:14:22 +0000 (12:14 +0300)]
common/bufferlist: Fixes lack of offset increment in get_ptr_and_advance

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agobuffer: add iterator crc32c method
Sage Weil [Tue, 31 May 2016 18:43:49 +0000 (14:43 -0400)]
buffer: add iterator crc32c method

Calculate crc from an iterator position.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agotest/osd/TestRados.cc: silence a compiler warning 9448/head
Kefu Chai [Thu, 2 Jun 2016 03:17:36 +0000 (11:17 +0800)]
test/osd/TestRados.cc: silence a compiler warning

fix following warning by returning `nullptr` after an assert(0).
```
ceph/src/test/osd/TestRados.cc: In member function ‘TestOp*
WeightedTestGenerator::gen_op(RadosTestContext&, TestOpType)’:
ceph/src/test/osd/TestRados.cc:241:3: warning: control reaches
end of non-void function [-Wreturn-type]
   }
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9438 from ceph/wip-cmake
Kefu Chai [Thu, 2 Jun 2016 07:41:21 +0000 (15:41 +0800)]
Merge pull request #9438 from ceph/wip-cmake

cmake: rbd_mirror not linking rbd_test_mock

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9060 from mikulely/fix-rgw-multiste-doc
Yehuda Sadeh [Thu, 2 Jun 2016 05:52:42 +0000 (08:52 +0300)]
Merge pull request #9060 from mikulely/fix-rgw-multiste-doc

doc: fix rgw multiste config

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agoMerge pull request #9392 from yehudasa/wip-16072 9369/head
Yehuda Sadeh [Thu, 2 Jun 2016 05:46:04 +0000 (08:46 +0300)]
Merge pull request #9392 from yehudasa/wip-16072

rgw/rgw_common.cc: modify the end check in RGWHTTPArgs::sys_get

Tested-by: Orit Wasserman <owasserm@redhat.com>
http://pulpito.ceph.com/owasserm-2016-06-01_20:43:36-rgw:verify-wip-orit-testing---basic-mira/

9 years agocmake: rbd_mirror not linking rbd_test_mock 9438/head
Ali Maredia [Thu, 2 Jun 2016 03:28:38 +0000 (23:28 -0400)]
cmake: rbd_mirror not linking rbd_test_mock

Added rbd_test_mock lib, also changed name of
journal_test to journal_test_mock to mimic
automake naming.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agomon/MDSMonitor: fix wrongly set expiration time of blacklist 9418/head
xie xingguo [Wed, 1 Jun 2016 06:28:17 +0000 (14:28 +0800)]
mon/MDSMonitor: fix wrongly set expiration time of blacklist

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agomon/MDSMonitor: fix assert
xie xingguo [Wed, 1 Jun 2016 03:49:14 +0000 (11:49 +0800)]
mon/MDSMonitor: fix assert

Belowe here "version" will never equal to "fsmap.epoch", otherwise we shall
return already.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agomon/MDSMonitor: drop redundant assignment
xie xingguo [Wed, 1 Jun 2016 03:39:54 +0000 (11:39 +0800)]
mon/MDSMonitor: drop redundant assignment

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #9209 from yehudasa/wip-15939
Matt Benjamin [Wed, 1 Jun 2016 22:11:53 +0000 (18:11 -0400)]
Merge pull request #9209 from yehudasa/wip-15939

rgw: aws4 fixes

verified

9 years agoMerge pull request #9084 from dzafman/wip-dz-misc
Samuel Just [Wed, 1 Jun 2016 21:16:32 +0000 (14:16 -0700)]
Merge pull request #9084 from dzafman/wip-dz-misc

Wip dz misc

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #9426 from linuxbox2/cmake-mds
Casey Bodley [Wed, 1 Jun 2016 18:07:59 +0000 (14:07 -0400)]
Merge pull request #9426 from linuxbox2/cmake-mds

cmake: change libmds back to a static library

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agocmake: restore static linkage (libmds) 9426/head
Matt Benjamin [Wed, 1 Jun 2016 17:25:19 +0000 (13:25 -0400)]
cmake: restore static linkage (libmds)

Required by ceph-mds.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
9 years agoMerge pull request #9385 from ceph/wip-cmake-kefu
Matt Benjamin [Wed, 1 Jun 2016 16:42:52 +0000 (12:42 -0400)]
Merge pull request #9385 from ceph/wip-cmake-kefu

cmake: more fixes

fixes make install workflow

9 years agoMerge pull request #9228 from liewegas/wip-bluestore-write
Sage Weil [Wed, 1 Jun 2016 16:29:49 +0000 (12:29 -0400)]
Merge pull request #9228 from liewegas/wip-bluestore-write

os/bluestore: new write path (checksums and compression)

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoMerge pull request #9106 from SUSE/wip-15869
Nathan Cutler [Wed, 1 Jun 2016 16:14:38 +0000 (18:14 +0200)]
Merge pull request #9106 from SUSE/wip-15869

rpm: unconditionally set ceph user's primary group to ceph (SUSE)

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
9 years agocmake: install cython modules 9385/head
Kefu Chai [Wed, 1 Jun 2016 05:38:05 +0000 (13:38 +0800)]
cmake: install cython modules

* fix CYTHON_ADD_MODULE() macro. because python_add_module() offered by
  FindPythonLibs.cmake creates a target with name of ${name}, which conflicts
  with existing targets like "rbd" or "rados". so we can not reuse the
  name in ${name}.pyx. and instead, we should specify the target name
  explicitly.
* add distutils_install_cython_module() function to build and install
  cython modules.
* we can split build and install of cython module, but the install phase
  always tries to build the module. so keep it this way. will look at it
  later on.
* move the variables initializations into the Distutils.cmake module.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: install compressor plugins into ${pkglibdir/compressor
Kefu Chai [Wed, 1 Jun 2016 03:25:11 +0000 (11:25 +0800)]
cmake: install compressor plugins into ${pkglibdir/compressor

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: install erasure plugins into ${pkglibdir}/erasure-code
Kefu Chai [Wed, 1 Jun 2016 03:14:49 +0000 (11:14 +0800)]
cmake: install erasure plugins into ${pkglibdir}/erasure-code

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: remove duplicated file from ceph-osd
Kefu Chai [Sat, 28 May 2016 21:19:23 +0000 (05:19 +0800)]
cmake: remove duplicated file from ceph-osd

objclass/class_api.cc is already included in libosd

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: fix dependencies on tracing headers
Kefu Chai [Sat, 28 May 2016 16:23:22 +0000 (00:23 +0800)]
cmake: fix dependencies on tracing headers

group the header dependencies by its tp .so, so the traced target can
depend on them by the name of ${name}-tp.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: libradosstriper's OUTPUT_NAME should be radosstriper
Kefu Chai [Sat, 28 May 2016 16:22:31 +0000 (00:22 +0800)]
cmake: libradosstriper's OUTPUT_NAME should be radosstriper

and s/libradosstriper/radosstriper/ otherwise the created .so
filename would be liblibradosstriper.so with the default prefix.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: install the artifacts the packaging requires
Kefu Chai [Sat, 28 May 2016 07:42:33 +0000 (15:42 +0800)]
cmake: install the artifacts the packaging requires

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: install init script to etc/init.d
Kefu Chai [Sat, 28 May 2016 13:59:14 +0000 (21:59 +0800)]
cmake: install init script to etc/init.d

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: add the autoconf path variables back
Kefu Chai [Sat, 28 May 2016 09:09:37 +0000 (17:09 +0800)]
cmake: add the autoconf path variables back

* partially revert 7a602ec.
* the directory variables created by automake, like "prefix", "bindir",
  and "libdir", are used for generating configuration_file() for substitution,
  and they should have the same names with ones from autotools.
* also fix the ${pkglibdir}, it should be the ${libdir}/${PACKAGE}. so
  the plugins are not installed into ${libdir}, in which the installed shared
  objects are supposed to be shared with other applications.
* install shared libraries into ${CMAKE_INSTALL_LIBDIR} instead of
  ${prefix}/lib. this complies to what ceph.spec.in requires:
  ceph.spec.in expects the shared libraries to be installed into
  ${_libdir}, and ${_libdir} is /usr/lib64 on an amd64 machine.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: install ceph-post-file
Kefu Chai [Sat, 28 May 2016 09:03:08 +0000 (17:03 +0800)]
cmake: install ceph-post-file

and related pubkey for sftp

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: add ceph-brag
Kefu Chai [Sat, 28 May 2016 08:53:36 +0000 (16:53 +0800)]
cmake: add ceph-brag

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: project name should be "ceph"
Kefu Chai [Sat, 28 May 2016 08:38:09 +0000 (16:38 +0800)]
cmake: project name should be "ceph"

so it would be easier to figure out paths, also
CMAKE_INSTALL_DOCDIR is composed using the PROJECT_NAME also.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: install ceph-{detect-init,disk}
Kefu Chai [Sat, 28 May 2016 07:44:36 +0000 (15:44 +0800)]
cmake: install ceph-{detect-init,disk}

add a cmake module named Distutils.cmake for setting up python modules
using setup.py.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: add ceph_rgw_{json,multi}parser
Kefu Chai [Sat, 28 May 2016 08:18:54 +0000 (16:18 +0800)]
cmake: add ceph_rgw_{json,multi}parser

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: compile and install ceph-bluefs-tool
Kefu Chai [Sat, 28 May 2016 08:18:31 +0000 (16:18 +0800)]
cmake: compile and install ceph-bluefs-tool

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: s/ceph_test_xattr_bench/ceph_xattr_bench/
Kefu Chai [Sat, 28 May 2016 07:44:17 +0000 (15:44 +0800)]
cmake: s/ceph_test_xattr_bench/ceph_xattr_bench/

to match with automake and packager

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: rename ceph-psim to ceph_psim
Kefu Chai [Sat, 28 May 2016 07:43:34 +0000 (15:43 +0800)]
cmake: rename ceph-psim to ceph_psim

to match with automake and packager

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: fix bash_completion install path
Kefu Chai [Sat, 28 May 2016 05:20:35 +0000 (13:20 +0800)]
cmake: fix bash_completion install path

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoos/bluestore: fsck: check for dup overlay keys 9228/head
Sage Weil [Tue, 31 May 2016 19:26:14 +0000 (15:26 -0400)]
os/bluestore: fsck: check for dup overlay keys

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fsck: use common helper to verify blobs and refs
Sage Weil [Tue, 31 May 2016 19:17:51 +0000 (15:17 -0400)]
os/bluestore: fsck: use common helper to verify blobs and refs

The checks are the same (or should be--we had missed a few).

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: add FLAG_NOCACHE flag; do not cache unbuffered writes
Sage Weil [Tue, 31 May 2016 18:18:31 +0000 (14:18 -0400)]
os/bluestore: add FLAG_NOCACHE flag; do not cache unbuffered writes

Add a Buffer flag to mark that a buffer should not be cached once it is
stable.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: do not use buffered bdev in write path
Sage Weil [Tue, 31 May 2016 17:49:34 +0000 (13:49 -0400)]
os/bluestore: do not use buffered bdev in write path

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: do not rely on bdev buffered reads in read path
Sage Weil [Tue, 31 May 2016 17:48:13 +0000 (13:48 -0400)]
os/bluestore: do not rely on bdev buffered reads in read path

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: no buffered write in wal path
Sage Weil [Tue, 31 May 2016 17:47:57 +0000 (13:47 -0400)]
os/bluestore: no buffered write in wal path

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: populate buffer cache on read
Sage Weil [Tue, 31 May 2016 17:43:25 +0000 (13:43 -0400)]
os/bluestore: populate buffer cache on read

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: keep intrusive_list of WRITING buffers
Sage Weil [Tue, 31 May 2016 17:35:10 +0000 (13:35 -0400)]
os/bluestore: keep intrusive_list of WRITING buffers

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: simple per-collection lru for buffers
Sage Weil [Tue, 31 May 2016 18:35:29 +0000 (14:35 -0400)]
os/bluestore: simple per-collection lru for buffers

Size these using a global config.  This is only a starting point--we'll
obviously have to rework this to share memory across collections.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: use bufferptr for csum_data
Sage Weil [Tue, 31 May 2016 16:40:16 +0000 (12:40 -0400)]
os/bluestore: use bufferptr for csum_data

encode/decode of vector<char> is not optimized.  Bufferptr is a more
natural type here anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_objecstore: Adds a test case for compression stuff verification (incomplete)
Igor Fedotov [Fri, 27 May 2016 17:05:21 +0000 (20:05 +0300)]
ceph_test_objecstore: Adds a test case for compression stuff verification (incomplete)

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoos/bluestore: Fixes configuration observation.
Igor Fedotov [Fri, 27 May 2016 17:04:56 +0000 (20:04 +0300)]
os/bluestore: Fixes configuration observation.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoos/bluestore: Cosmetic fixes in bluestore logging
Igor Fedotov [Tue, 24 May 2016 13:41:48 +0000 (16:41 +0300)]
os/bluestore: Cosmetic fixes in bluestore logging

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