src/backup/index.rs: add chunk_info method

This commit is contained in:
Dietmar Maurer
2020-06-26 08:14:45 +02:00
parent b957aa81bd
commit fdaab0df4e
4 changed files with 70 additions and 77 deletions

View File

@ -20,6 +20,7 @@ pub trait IndexFile {
fn index_count(&self) -> usize;
fn index_digest(&self, pos: usize) -> Option<&[u8; 32]>;
fn index_bytes(&self) -> u64;
fn chunk_info(&self, pos: usize) -> Option<ChunkReadInfo>;
/// Returns most often used chunks
fn find_most_used_chunks(&self, max: usize) -> HashMap<[u8; 32], usize> {