Browse Source

Only repairing backups with --repair

pull/10/head
Dennis Schwerdel 5 years ago
parent
commit
66e56b9b0c
  1. 12
      src/repository/integrity.rs

12
src/repository/integrity.rs

@ -226,10 +226,14 @@ impl Repository {
modified = true;
},
Err(err) => {
warn!("Problem detected: inode {:?} is corrupt\n\tcaused by: {}", path.join(name), err);
info!("Removing broken inode from backup");
removed.push(name.to_string());
modified = true;
if repair {
warn!("Problem detected: inode {:?} is corrupt\n\tcaused by: {}", path.join(name), err);
info!("Removing broken inode from backup");
removed.push(name.to_string());
modified = true;
} else {
return Err(err)
}
}
}
}

Loading…
Cancel
Save