Used journal sector tracking

This commit is contained in:
Vitaliy Filippov
2019-11-15 02:04:19 +03:00
parent f1e236c6e8
commit 0627dd0f5e
6 changed files with 18 additions and 1 deletions
+4
View File
@@ -121,6 +121,10 @@ struct journal_t
uint64_t sector_count;
int cur_sector = 0;
int in_sector_pos = 0;
// Used sector map
// May use ~ 80 MB per 1 GB of used journal space in the worst case
std::map<uint64_t, uint64_t> used_sectors;
};
struct blockstore_journal_check_t