12 lines
558 B
Diff
12 lines
558 B
Diff
|
--- thin-provisioning-tools-1.0.0/src/cache/metadata_size.rs.orig 2023-02-11 14:35:14.957403153 +0100
|
||
|
+++ thin-provisioning-tools-1.0.0/src/cache/metadata_size.rs 2023-02-11 14:37:41.496985618 +0100
|
||
|
@@ -35,7 +35,7 @@
|
||
|
let hint_size = opts.nr_blocks * (opts.max_hint_width as u64 + HINT_OVERHEAD_PER_BLOCK);
|
||
|
|
||
|
let mut size = TRANSACTION_OVERHEAD + mapping_size + hint_size;
|
||
|
- size = std::cmp::min(size, (MAX_METADATA_BLOCKS * BLOCK_SIZE) as u64);
|
||
|
+ size = std::cmp::min(size, MAX_METADATA_BLOCKS as u64 * BLOCK_SIZE as u64);
|
||
|
|
||
|
Ok(size)
|
||
|
}
|