1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_CRUSH_LOCATION_H
5 #define CEPH_CRUSH_LOCATION_H
15 std::multimap<std::string,std::string> loc;
18 int _parse(const std::string& s);
21 CrushLocation(CephContext *c) : cct(c) {
25 int update_from_conf(); ///< refresh from config
26 int update_from_hook(); ///< call hook, if present
27 int init_on_startup();
29 std::multimap<std::string,std::string> get_location() {
30 std::lock_guard<std::mutex> l(lock);