ceph/src/tools
Xiaoxi Chen d734600f92 Change CrushWrapper::crush to private
Currently in CrushWrapper, the member "struct crush_map *crush"  is a public member,
so people can break the encapsulation and manipulate directly to the crush structure.

This is not a good practice for encapsulation and will lead to inconsistent if code
mix use the CrushWrapper API and crush C API.A simple example could be:
1.some code use crush_add_rule(C-API) to add a rule, which will not set the have_rmap flag to false in CrushWrapper
2.another code using CrushWrapper trying to look up the newly added rule by name will get a -ENOENT.

This patch move CrushWrapper::crush to private, together with three reverse map(type_rmap, name_rmap, rule_name_rmap)
and also change codes accessing the CrushWrapper::crush to make it compile.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
2014-09-10 09:08:22 +08:00
..
cephfs tools: use cout instead of cerr in journal tool 2014-08-29 18:34:39 +01:00
rados tools/rados: Improve trigger for op_size rounding info message 2014-08-28 16:22:15 -07:00
ceph_authtool.cc
ceph_conf.cc ceph-conf: flush log on exit 2014-08-03 21:00:51 -07:00
ceph_kvstore_tool.cc
ceph_monstore_tool.cc mon: interact with MonitorDBStore::Transactions by shared_ptr Ref 2014-08-27 14:36:07 -07:00
ceph_objectstore_tool.cc ceph_objectstore_tool.cc: prefer ++operator for non-primitive iterators 2014-09-02 14:56:10 +02:00
ceph_osdomap_tool.cc
ceph-client-debug.cc
ceph.cc
common.cc
common.h
crushtool.cc Change CrushWrapper::crush to private 2014-09-10 09:08:22 +08:00
dupstore.cc
Makefile.am ceph_objectstore_tool, test: Implement import-rados feature and unit test code 2014-08-28 16:22:15 -07:00
mon_store_converter.cc mon: interact with MonitorDBStore::Transactions by shared_ptr Ref 2014-08-27 14:36:07 -07:00
monmaptool.cc
osdmaptool.cc
psim.cc
radosacl.cc
rest_bench.cc
scratchtool.c
scratchtoolpp.cc Fix ceph_scratchtoolpp to create and delete its own pool 2014-08-28 16:22:15 -07:00