1
0
mirror of https://github.com/Zygo/bees.git synced 2025-07-02 08:42:27 +02:00

extent scan: introduce SCAN_MODE_EXTENT

The EXTENT scan mode reads the extent tree, splits it into tiers by
extent size, converts each tiers's extents into subvol/inode/offset refs,
then runs the legacy bees dedupe engine on the refs.

The extent scan mode can cheaply compute completion percentage and ETA,
so do that every time a new transid is observed.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell
2022-12-21 22:42:39 -05:00
parent b99d80b40f
commit 6542917ffa
3 changed files with 749 additions and 24 deletions

View File

@ -182,7 +182,7 @@ BeesContext::home_fd()
}
bool
BeesContext::is_root_ro(uint64_t root)
BeesContext::is_root_ro(uint64_t const root)
{
return roots()->is_root_ro(root);
}