mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
extent scan: pick the right block groups for mixed-bg filesystems
The progress indicator was failing on a mixed-bg filesystem because those filesystems have block groups which have both _DATA and _METADATA bits, and the filesystem size calculation was excluding block groups that have _METADATA set. It should exclude block groups that have _DATA not set. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
1f0b8c623c
commit
ca351d389f
@ -970,7 +970,9 @@ BeesScanModeExtent::next_transid(const CrawlMap &crawl_map_unused)
|
|||||||
.first_bytenr = offset,
|
.first_bytenr = offset,
|
||||||
.first_total = fs_size,
|
.first_total = fs_size,
|
||||||
};
|
};
|
||||||
if (bti.chunk_type() & (BTRFS_BLOCK_GROUP_METADATA | BTRFS_BLOCK_GROUP_SYSTEM)) {
|
// Mixed-bg filesystems have block groups that are data _and_ metadata.
|
||||||
|
// Block groups that are _only_ metadata should be filtered out.
|
||||||
|
if (0 == (bti.chunk_type() & BTRFS_BLOCK_GROUP_DATA)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
fs_size += chunk_length;
|
fs_size += chunk_length;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user