Commit Graph

33958 Commits

Author SHA1 Message Date
Dan Mick
7f35532bb8 Merge pull request #1914 from ceph/wip-autotools-dummy
automake: add dummy.cc to fix 'make tags'

Reviewed-by: Dan Mick <dan.mick@inktank.com>
2014-06-04 11:28:25 -07:00
Sahid Orentino Ferdjaoui
23b657c704 Remove unused variables in KeyValueStore.cc
Removes two unused variables expected_object_size and
expected_write_size in KeyValueStore.cc

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
2014-06-04 17:41:42 +02:00
Sahid Orentino Ferdjaoui
307ba481a2 Remove unused variables in MemStore.cc
Removes two unused variables expected_object_size and
expected_write_size in MemStore.cc

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
2014-06-04 17:41:32 +02:00
Ilya Dryomov
5185a368c3 automake: add dummy.cc to fix 'make tags'
Commit 421e6c5617 ("test_librbd_fsx: add krbd mode support") added
a requirement for ceph_test_librbd_fsx to be linked with a C++ linker.
Implement it in a way that doesn't break 'make tags'.

Fixes: #8530
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-04 17:52:56 +04:00
Loic Dachary
d4415cb8d1 Merge pull request #1889 from sahid/master
trim dead code and add tests in bloom_filters

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-06-04 14:19:47 +02:00
Sahid Orentino Ferdjaoui
35509d2741 bloom_filter, add test to validate assignement operator
Adds a test to ensure the good behavior of the
operator assignement.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
2014-06-04 12:11:20 +02:00
Sahid Orentino Ferdjaoui
c50f85ea07 bloom_filter, remove unecessary operators
Removes 3 not used operators (intersect, union,
and diff) since after use those methods fpp and is_full are
corrupted.

Fixes: #8476
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
2014-06-04 12:11:19 +02:00
Sahid Orentino Ferdjaoui
90cc6dd66d bloom_filter, add assertion to test validate element_count()
Adds to TEST(BloomFilter, Basic) a new assertion
to verify the good behavior of the method 'element_count()'.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
2014-06-04 12:11:19 +02:00
Haomai Wang
c323c5b517 Fix keyvaluestore fiemap bug
The result of fiemap is wrong and the offset get from
"StripObjectMap::file_to_extents" need to multiply by sequence number

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-06-04 17:19:36 +08:00
Josh Durgin
6d5ab09411 Merge pull request #1907 from ceph/wip-8311
rgw: if extra data pool name is empty, use data pool name instead

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-06-03 16:22:20 -07:00
Josh Durgin
8d002e9f92 Merge pull request #1896 from ceph/wip-8452
rgw: fetch object attrs on multipart completion

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-06-03 16:06:01 -07:00
Josh Durgin
d52239d020 Merge pull request #1906 from ceph/wip-runxfstests
wip-runxfstests

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-06-03 15:53:52 -07:00
Josh Durgin
765ab804c8 Merge pull request #1869 from ceph/wip-pybind-timeout
pybind/rados: Fix timeouts for small t

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-06-03 15:32:38 -07:00
Loic Dachary
1bbebb5483 Merge pull request #1910 from ceph/wip-8447
librados: simplify/fix rados_pool_list bounds checks

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-06-03 21:27:08 +02:00
Sage Weil
3ec32a6bb1 librados: simplify/fix rados_pool_list bounds checks
We were not breaking out of the loop when we filled up the buffer unless
we happened to do so on a pool name boundary.  This means that len would
roll over (it was unsigned).  In my case, I was not able to reproduce
anything particularly bad since (I think) the strncpy was interpreting the
large unsigned value as signed, but in any case this fixes it, simplifies
the arithmetic, and adds a simple test.

- use a single 'rl' value for the amount of buffer space we want to
  consume
- use this to check that there is room and also as the strncat length
- rely on the initial memset to ensure that the trailing 0 is in place.

Fixes: #8447
Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-03 11:45:20 -07:00
John Wilkins
3d0c2498f7 Merge pull request #1909 from dachary/wip-8514-documentation
doc: fix osd pool create and add osd erasure-code-profile
2014-06-03 09:43:35 -07:00
Gregory Farnum
eb63015b48 Merge pull request #1908 from jdurgin/wip-librbd-license-header
librbd: clarify license header to say LGPL

Everybody who has contributed has already explicitly agreed to relicense RBD to LGPL...except for me, and I am granting it now.

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-06-03 09:28:28 -07:00
Loic Dachary
5569d40bb4 documentation: add osd erasure-code-profile {set,rm,get,ls}
And a link from rados/operations.

http://tracker.ceph.com/issues/8514 Fixes: #8514

Reported-by: Kenneth Waegeman <Kenneth.Waegeman@UGent.be>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-06-03 14:53:56 +02:00
Loic Dachary
8ff4edda73 documentation: update osd pool create erasure
The properties are replaced with erasure code profiles. Remove the
reference to properties and the documentation of each erasure-code
related property.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-06-03 13:47:32 +02:00
Ilya Dryomov
22bc886ac5 doc: fix 'rbd map' example
Looks like 'foo' is a leftover, see commit ea9fc87d89 ("doc: Removed
foo.  Apparently myimage was added and foo not removed.").

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-03 14:32:21 +04:00
Sage Weil
4951244726 Merge remote-tracking branch 'gh/next' 2014-06-02 22:24:48 -07:00
Sage Weil
4f834fa8ef doc/release-notes: v0.81
Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-02 22:24:42 -07:00
Josh Durgin
f4e81d32e3 librbd: clarify license header
These were meant to say LGPL, but a typo was propagated and it
referred to the non-existent GPL2.1, and also to COPYING which
correctly indicated these files were LGPL2.1.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-06-02 17:34:56 -07:00
sushma
884a6b374a RadosClient: Avoid the DispatchQueue for OSD responses.
Prior to this change, reader thread puts the response on the DispatchQueue
and Dispatcher thread would call librados callbacks (C_aio_Ack, C_Safe_Cond).
The single DispatchQueue and Dispatcher thread (per client) would become
a bottleneck with multiple OSDs in the cluster.
Similar to fast-dispatch changes on the OSD, DispatchQueue/thread are removed
and librados internal callbacks will be called from reader thread context.

Signed-off-by: Sushma Gurram <sushma.gurram@sandisk.com>
Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-06-02 16:29:43 -07:00
John Wilkins
0cc9ade824 doc: Updated monitor output and added usage calc explanations.
Fixes: #4948

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-06-02 16:03:31 -07:00
John Wilkins
9c32cb2685 doc: Added usage for pool quotas.
Fixes: #5653

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-06-02 15:31:45 -07:00
John Wilkins
86754cc78c doc: Added more discussion of new CRUSH types.
Fixes: #7727

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-06-02 14:40:27 -07:00
John Wilkins
cabb8f066d doc: Added a section for ceph df.
Fixes: #8281

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-06-02 12:21:42 -07:00
Jenkins
8de9501df2 0.81 2014-06-02 18:37:27 +00:00
John Wilkins
4bc5aef93a doc: Updated packages to reference firefly.
Fixes: #8466

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-06-02 11:28:22 -07:00
John Wilkins
4763be0cff Merge pull request #1887 from rossturk/wip-rturkfonts
doc: remove Apex Sans from generated doc HTML
2014-06-02 11:06:36 -07:00
John Wilkins
920bc493b9 Merge pull request #1885 from nereocystis/rados-bench-man
doc: Improve man page for bench
2014-06-02 11:05:34 -07:00
Sage Weil
2d47ff9a2c Merge pull request #1857 from ceph/wip-8265
#8265: config: make int parser accept K, M, G, T, P suffix and scale value accordingly

Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-06-02 10:45:05 -07:00
Sage Weil
4abb1018d7 Merge pull request #1902 from dachary/wip-copyright-notices
erasure-code: Ceph distributed storage system

Reviewed-by: Sage Weil <sage@inktank.com>
2014-06-02 09:10:11 -07:00
Ilya Dryomov
c18cbefe33 qa: add run_xfstests_krbd.sh wrapper
As run_xfstests.sh does no longer accept test lists, wrap it to provide
an expunge file with a list of tests we want to skip for krbd runs.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-02 19:41:01 +04:00
Ilya Dryomov
cd65246127 qa: catch up with xfstests changes
Back in 2013 xfstests were rearranged, which also changed the way
./check parses test lists.  Catch up with those changes.  Note that
tests can no longer be listed in ranges, we only accept individual
tests and test groups (e.g. -g quick).

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-02 19:41:00 +04:00
Ilya Dryomov
703166c815 qa: cp run_xfstests.sh run_xfstests-obsolete.sh
run_xfstests.sh is going to be updated in the next commit to be able to
drive newer xfstests.  Among other things, the new xfstests proper
doesn't support listing tests in ranges, which is what the qemu wrapper
(run_xfstests_qemu.sh) relies on.  So keep a copy of the old
run_xfstests.sh around until the qemu vm image is regenerated and the
up-to-date exclusion list for that kernel is shaken out.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-02 19:41:00 +04:00
Loic Dachary
601e25ebb2 erasure-code: Ceph distributed storage system
instead of Ceph - scalable distributed file system in the copyright notices

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-06-01 10:32:26 +02:00
Sage Weil
9bac31be07 scripts/run-coverity: don't explicitly specify tool version
Rely on a symlink instead.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-31 08:13:48 -07:00
Loic Dachary
beaf452574 Merge pull request #1901 from dachary/wip-erasure-code-concat
erasure-code: make decode_concat virtual

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
2014-05-31 13:58:49 +02:00
Loic Dachary
0a2aa5e193 Merge pull request #1900 from dachary/wip-ostream
common: s/stringstream/ostream/ in str_map

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
2014-05-31 13:57:11 +02:00
Loic Dachary
e158ad96ec erasure-code: make decode_concat virtual
So that a plugin can provide a more efficient implementation.

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-31 13:38:10 +02:00
Loic Dachary
35fb7419eb Merge pull request #1898 from dhxgit/master
Update INSTALL to mention the submodules/recursive

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-05-31 13:20:25 +02:00
Loic Dachary
6aa45b1339 common: s/stringstream/ostream/ in str_map
There is no need to specialize more than ostream : it only makes it
impossible to use cerr or cout as a parameter to str_map.

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-31 13:13:05 +02:00
Haomai Wang
319cb504a8 Make KeyValueStore support "ceph osd perf" command
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2014-05-31 17:31:14 +08:00
Dominik Hannen
06c0a42777 Update INSTALL to mention the submodules/recursive
Signed-off-by: Dominik Hannen <cantares1+github@gmail.com>
2014-05-31 11:22:41 +02:00
Loic Dachary
1c91e65de5 Merge pull request #1895 from ceph/wip-sock-cmp
msg: remove comparison operators for sockaddr_storage

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-05-31 10:27:44 +02:00
Somnath Roy
2dbd85c94c WorkQueue: The variable name is corrected.
Modified the variable name from shardedpol_cond->shardedpool_cond

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
2014-05-30 19:07:10 -07:00
Somnath Roy
3e3632ee74 WorkQueue: Removed the unused in_process variable
Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
2014-05-30 19:03:42 -07:00
Somnath Roy
b05da1ca9c WorkQueue: Taking care of potential race condition during pause()
Introduced two variables to keep track of number of threads paused
and drained during threadpool pause/drain. The pause()/drain() call
is waiting till number of pause/drain threads equals to toral number of
thread pool threads.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
2014-05-30 18:46:08 -07:00