]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: use CrushWrapper::add_simple_ruleset
authorLoic Dachary <loic@dachary.org>
Thu, 26 Dec 2013 10:20:41 +0000 (11:20 +0100)
committerLoic Dachary <loic@dachary.org>
Thu, 26 Dec 2013 23:13:47 +0000 (00:13 +0100)
commit2a7fcc35b8ceeff1e07da28b10ced4a2a4ed09ec
treee3102b97ce30594410029ba91a20ed0cae81b18b
parenta10fc025d77406b74a220ef44621525cd3c79b80
osd: use CrushWrapper::add_simple_ruleset

Replace the manually crafted ruleset in OSDMap::build_simple_crush_map*
with calls to add_simple_ruleset. The generated ruleset do not have the
same behavior but that presumably do not cause any backward
compatibility problem because they are only created when a new cluster
is being initialized.

The prototypes of OSDMap::build_simple* are modified to allow for a
return code and display of a human readable error message.

The --osd-min-rep and --osd-max-rep configuration options are removed :
they were only used in the code that was removed.

Signed-off-by: Loic Dachary <loic@dachary.org>
doc/rados/configuration/pool-pg-config-ref.rst
src/common/config_opts.h
src/osd/OSDMap.cc
src/osd/OSDMap.h