Returns total bytes consumed by BlueFS across devs
Signed-off-by: Varada Kari <varada.kari@sandisk.com>
return 0;
}
+uint64_t BlueFS::get_fs_usage()
+{
+ uint64_t total_bytes = 0;
+ for (auto& p : file_map) {
+ total_bytes += p.second->fnode.get_allocated();
+ }
+ return total_bytes;
+}
+
uint64_t BlueFS::get_total(unsigned id)
{
std::lock_guard<std::mutex> l(lock);
int fsck();
+ uint64_t get_fs_usage();
uint64_t get_total(unsigned id);
uint64_t get_free(unsigned id);
void get_usage(vector<pair<uint64_t,uint64_t>> *usage); // [<free,total> ...]