return false;
}
+void FileStore::collect_metadata(map<string,string> *pm)
+{
+ (*pm)["filestore_backend"] = backend->get_name();
+ ostringstream ss;
+ ss << "0x" << std::hex << m_fs_type << std::dec;
+ (*pm)["filestore_f_type"] = ss.str();
+}
+
int FileStore::statfs(struct statfs *buf)
{
if (::statfs(basedir.c_str(), buf) < 0) {
*/
bool get_allow_sharded_objects();
+ void collect_metadata(map<string,string> *pm);
+
int statfs(struct statfs *buf);
int _do_transactions(
virtual int statfs(struct statfs *buf) = 0;
+ virtual void collect_metadata(map<string,string> *pm) { }
+
/**
* get the most recent "on-disk format version" supported
*/
// config info
(*pm)["osd_data"] = dev_path;
(*pm)["osd_journal"] = journal_path;
- (*pm)["osd_objectstore"] = g_conf->osd_objectstore;
(*pm)["front_addr"] = stringify(client_messenger->get_myaddr());
(*pm)["back_addr"] = stringify(cluster_messenger->get_myaddr());
(*pm)["hb_front_addr"] = stringify(hb_front_server_messenger->get_myaddr());
(*pm)["hb_back_addr"] = stringify(hb_back_server_messenger->get_myaddr());
+ // backend
+ (*pm)["osd_objectstore"] = g_conf->osd_objectstore;
+ store->collect_metadata(pm);
+
// kernel info
struct utsname u;
int r = uname(&u);