if (*end != '\0')
continue;
- string host;
- string rack;
+ string host, rack, row, room, dc, pool;
vector<string> sections;
sections.push_back("osd");
sections.push_back(*i);
conf->get_val_from_conf_file(sections, "host", host, false);
conf->get_val_from_conf_file(sections, "rack", rack, false);
+ conf->get_val_from_conf_file(sections, "row", row, false);
+ conf->get_val_from_conf_file(sections, "room", room, false);
+ conf->get_val_from_conf_file(sections, "datacenter", dc, false);
+ conf->get_val_from_conf_file(sections, "pool", pool, false);
if (host.length() == 0)
host = "unknownhost";
map<string,string> loc;
loc["host"] = host;
loc["rack"] = rack;
+ if (row.size())
+ loc["row"] = row;
+ if (room.size())
+ loc["room"] = room;
+ if (dc.size())
+ loc["datacenter"] = dc;
loc["pool"] = "default";
ldout(cct, 0) << " adding osd." << o << " at " << loc << dendl;