mirror of https://github.com/dswd/zvault
Only repairing backups with --repair
This commit is contained in:
parent
2885dfc933
commit
66e56b9b0c
|
@ -226,10 +226,14 @@ impl Repository {
|
||||||
modified = true;
|
modified = true;
|
||||||
},
|
},
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
warn!("Problem detected: inode {:?} is corrupt\n\tcaused by: {}", path.join(name), err);
|
if repair {
|
||||||
info!("Removing broken inode from backup");
|
warn!("Problem detected: inode {:?} is corrupt\n\tcaused by: {}", path.join(name), err);
|
||||||
removed.push(name.to_string());
|
info!("Removing broken inode from backup");
|
||||||
modified = true;
|
removed.push(name.to_string());
|
||||||
|
modified = true;
|
||||||
|
} else {
|
||||||
|
return Err(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue