_shutdown_logger();
}
+void BlueFS::collect_metadata(map<string,string> *pm)
+{
+ if (bdev[BDEV_DB])
+ bdev[BDEV_DB]->collect_metadata("bluefs_db_", pm);
+ if (bdev[BDEV_WAL])
+ bdev[BDEV_WAL]->collect_metadata("bluefs_wal_", pm);
+ if (bdev[BDEV_SLOW])
+ bdev[BDEV_SLOW]->collect_metadata("bluefs_slow_", pm);
+}
+
int BlueFS::fsck()
{
std::lock_guard<std::mutex> l(lock);
int mount();
void umount();
+ void collect_metadata(map<string,string> *pm);
int fsck();
uint64_t get_fs_usage();
return errors;
}
+void BlueStore::collect_metadata(map<string,string> *pm)
+{
+ dout(10) << __func__ << dendl;
+ bdev->collect_metadata("bluestore_bdev_", pm);
+ if (bluefs) {
+ (*pm)["bluefs"] = "1";
+ (*pm)["bluefs_single_shared_device"] = stringify((int)bluefs_single_shared_device);
+ bluefs->collect_metadata(pm);
+ } else {
+ (*pm)["bluefs"] = "0";
+ }
+}
+
int BlueStore::statfs(struct store_statfs_t *buf)
{
buf->reset();
public:
int statfs(struct store_statfs_t *buf) override;
+ void collect_metadata(map<string,string> *pm) override;
+
bool exists(const coll_t& cid, const ghobject_t& oid) override;
bool exists(CollectionHandle &c, const ghobject_t& oid) override;
int set_collection_opts(