[functional-tests] port some of the cache_check tests to Rust

This commit is contained in:
Joe Thornber
2020-08-07 14:30:00 +01:00
parent 4a0582bb5d
commit fa4ea3e2d9
21 changed files with 464 additions and 128 deletions

View File

@@ -212,7 +212,6 @@ pub fn check(dev: &Path) -> Result<()> {
println!("found {} devices", visitor.devs.len());
}
/*
// mapping top level
let mut roots = HashMap::new();
{
@@ -242,7 +241,6 @@ pub fn check(dev: &Path) -> Result<()> {
pool.join();
}
*/
// data space map
{
@@ -276,7 +274,7 @@ pub fn check(dev: &Path) -> Result<()> {
return Err(anyhow!("Index entry points to block ({}) that isn't a bitmap", b.loc));
}
let bitmap = unpack::<Bitmap>(b.get_data())?;
let _bitmap = unpack::<Bitmap>(b.get_data())?;
}
}