Dump all inodes with DWARFS_DUMP_INODES

This commit is contained in:
Marcus Holland-Moritz 2023-08-13 09:48:55 +02:00
parent 7e95647cfe
commit 6f9702c347
2 changed files with 5 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class inode_ : public inode {
}
};
os << "inode " << num() << " (" << any()->size() << "):\n";
os << "inode " << num() << " (" << any()->size() << " bytes):\n";
os << " files:\n";
for (auto const& f : files_) {

View File

@ -658,6 +658,10 @@ void scanner_<LoggerPolicy>::scan(
});
});
if (getenv_is_enabled("DWARFS_DUMP_INODES")) {
im.dump(std::cout);
}
LOG_INFO << "building blocks...";
segmenter seg(LOG_GET_LOGGER, prog, cfg_, fsw);