[cache_check (rust)] Add more checks

- Check the version-1 dirty flag
- Check mappings against the origin device size, if the cache is clean
- Check superblock fields
This commit is contained in:
Ming-Hung Tsai
2021-03-30 23:43:40 +08:00
parent d0675dd7bf
commit 860b3ca7d2
4 changed files with 74 additions and 30 deletions

View File

@@ -8,7 +8,7 @@ use thinp::cache::dump::{dump, CacheDumpOptions};
//------------------------------------------
fn main() {
let parser = App::new("cache_check")
let parser = App::new("cache_dump")
.version(thinp::version::TOOLS_VERSION)
.arg(
Arg::with_name("INPUT")