Signed-off-by: Sage Weil <sage@redhat.com>
bdev[BDEV_WAL]->collect_metadata("bluefs_wal_", pm);
}
+void BlueFS::get_devices(set<string> *ls)
+{
+ for (unsigned i = 0; i < MAX_BDEV; ++i) {
+ if (bdev[i]) {
+ bdev[i]->get_devices(ls);
+ }
+ }
+}
+
int BlueFS::fsck()
{
std::lock_guard<std::mutex> l(lock);
const vector<string>& devs);
void collect_metadata(map<string,string> *pm, unsigned skip_bdev_id);
+ void get_devices(set<string> *ls);
int fsck();
uint64_t get_fs_usage();
}
}
+int BlueStore::get_devices(set<string> *ls)
+{
+ bdev->get_devices(ls);
+ if (bluefs) {
+ bluefs->get_devices(ls);
+ }
+ return 0;
+}
+
int BlueStore::statfs(struct store_statfs_t *buf)
{
buf->reset();
bool wants_journal() override { return false; };
bool allows_journal() override { return false; };
+ int get_devices(set<string> *ls) override;
+
bool is_rotational() override;
bool is_journal_rotational() override;