X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Fbackup%2Findex.rs;h=2eab8524d128cac031698be975b0e2465bf5fade;hb=d0463b67ca0437112a199a417466ae6bd9021255;hp=efdf3b5408b7b616a76b9531e37871f5331efbf2;hpb=2ff4c2cd5fc2bd0ff2964dc114c1b3fecfcd6057;p=proxmox-backup.git diff --git a/src/backup/index.rs b/src/backup/index.rs index efdf3b54..2eab8524 100644 --- a/src/backup/index.rs +++ b/src/backup/index.rs @@ -22,6 +22,9 @@ pub trait IndexFile { fn index_bytes(&self) -> u64; fn chunk_info(&self, pos: usize) -> Option; + /// Get the chunk index and the relative offset within it for a byte offset + fn chunk_from_offset(&self, offset: u64) -> Option<(usize, u64)>; + /// Compute index checksum and size fn compute_csum(&self) -> ([u8; 32], u64);