Commit Graph

54119 Commits

Author SHA1 Message Date
Casey Bodley
459d4299f7 Merge pull request #9460 from pritha-srivastava/wip-cmake-vstart
cmake: detection scripts use lowercase project name

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-06-02 11:29:55 -04:00
Pritha
8f20e3cc61 cmake: detection scripts use lowercase project name
Changing the detection scripts to use the new project name, changed in commit
c1a37101ea (cmake: project name should be "ceph")

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2016-06-02 20:55:40 +05:30
Sage Weil
c0d84f56cc Merge pull request #9449 from ifed01/wip-bluestore-crc32
os/bluestore: Some improvement for crc32c calculations

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-02 10:06:17 -04:00
Sage Weil
a2ee2b6ebe 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>
2016-06-02 09:57:34 -04:00
Sage Weil
0770791d98 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>
2016-06-02 09:52:00 -04:00
Orit Wasserman
cf14492db7 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>
2016-06-02 14:45:43 +02:00
Igor Fedotov
8d1673809f os/bluestore: dec->hex for verify_csum error reporting
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-06-02 12:21:35 +03:00
Orit Wasserman
e610ad9608 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>
2016-06-02 11:20:55 +02:00
Igor Fedotov
d2392b8f54 common/Checksummer: Eliminates data copying in crc32c calculation
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-06-02 12:19:23 +03:00
Orit Wasserman
ae181ddc05 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>
2016-06-02 11:19:05 +02:00
Igor Fedotov
2322ab87fc common/bufferlist: Adds test cases for bufferlist::iterator::crc32c
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-06-02 12:17:47 +03:00
Igor Fedotov
613a2a8280 common/bufferlist: Fixes lack of offset increment in get_ptr_and_advance
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-06-02 12:14:22 +03:00
Sage Weil
414d96608d buffer: add iterator crc32c method
Calculate crc from an iterator position.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-02 12:10:22 +03:00
Kefu Chai
922be65fab 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>
2016-06-02 17:00:05 +08:00
Kefu Chai
22b7810742 Merge pull request #9438 from ceph/wip-cmake
cmake: rbd_mirror not linking rbd_test_mock

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-02 15:41:21 +08:00
Yehuda Sadeh
9661bbbbd7 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>
2016-06-02 08:52:42 +03:00
Yehuda Sadeh
2c3def40d3 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/
2016-06-02 08:46:04 +03:00
Ali Maredia
c8d49d43f4 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>
2016-06-01 23:28:38 -04:00
Matt Benjamin
e4f55f458d Merge pull request #9209 from yehudasa/wip-15939
rgw: aws4 fixes

verified
2016-06-01 18:11:53 -04:00
Samuel Just
542931f69c Merge pull request #9084 from dzafman/wip-dz-misc
Wip dz misc

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-06-01 14:16:32 -07:00
Casey Bodley
5d8a9b4599 Merge pull request #9426 from linuxbox2/cmake-mds
cmake: change libmds back to a static library

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-06-01 14:07:59 -04:00
Matt Benjamin
4d3753801d cmake: restore static linkage (libmds)
Required by ceph-mds.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-06-01 14:04:46 -04:00
Matt Benjamin
6147f5f7eb Merge pull request #9385 from ceph/wip-cmake-kefu
cmake: more fixes

fixes make install workflow
2016-06-01 12:42:52 -04:00
Sage Weil
9c8b085ba8 Merge pull request #9228 from liewegas/wip-bluestore-write
os/bluestore: new write path (checksums and compression)

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2016-06-01 12:29:49 -04:00
Nathan Cutler
048aa3f0e7 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>
2016-06-01 18:14:38 +02:00
Kefu Chai
bbf51e1562 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>
2016-06-01 23:50:05 +08:00
Kefu Chai
dfea8e41bd cmake: install compressor plugins into ${pkglibdir/compressor
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:46 +08:00
Kefu Chai
4f05601730 cmake: install erasure plugins into ${pkglibdir}/erasure-code
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:46 +08:00
Kefu Chai
225f345642 cmake: remove duplicated file from ceph-osd
objclass/class_api.cc is already included in libosd

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:46 +08:00
Kefu Chai
c389c8d377 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>
2016-06-01 23:49:46 +08:00
Kefu Chai
8588e3d55e 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>
2016-06-01 23:49:46 +08:00
Kefu Chai
6936a811a3 cmake: install the artifacts the packaging requires
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:46 +08:00
Kefu Chai
33d50ed004 cmake: install init script to etc/init.d
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:46 +08:00
Kefu Chai
ce942bd619 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>
2016-06-01 23:49:46 +08:00
Kefu Chai
c192846c06 cmake: install ceph-post-file
and related pubkey for sftp

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:46 +08:00
Kefu Chai
43d78c9939 cmake: add ceph-brag
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:46 +08:00
Kefu Chai
c1a37101ea 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>
2016-06-01 23:49:46 +08:00
Kefu Chai
b02aaebc45 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>
2016-06-01 23:49:46 +08:00
Kefu Chai
ed888f6983 cmake: add ceph_rgw_{json,multi}parser
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:46 +08:00
Kefu Chai
f67ebef597 cmake: compile and install ceph-bluefs-tool
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:45 +08:00
Kefu Chai
6df0bc8691 cmake: s/ceph_test_xattr_bench/ceph_xattr_bench/
to match with automake and packager

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:45 +08:00
Kefu Chai
81cd483936 cmake: rename ceph-psim to ceph_psim
to match with automake and packager

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:45 +08:00
Kefu Chai
b6da5c5135 cmake: fix bash_completion install path
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-01 23:49:45 +08:00
Sage Weil
1c2c6cc1d8 os/bluestore: fsck: check for dup overlay keys
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-01 11:40:50 -04:00
Sage Weil
380392fcec 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>
2016-06-01 11:40:50 -04:00
Sage Weil
cb7f0f75d3 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>
2016-06-01 11:40:50 -04:00
Sage Weil
029ced9680 os/bluestore: do not use buffered bdev in write path
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-01 11:40:50 -04:00
Sage Weil
b6d7c97daf os/bluestore: do not rely on bdev buffered reads in read path
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-01 11:40:50 -04:00
Sage Weil
247bcdbbfd os/bluestore: no buffered write in wal path
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-01 11:40:50 -04:00
Sage Weil
7679407378 os/bluestore: populate buffer cache on read
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-01 11:40:50 -04:00