Merge "Do not trim unless we are actually checkpointing"

gugelfrei
Treehugger Robot 5 years ago committed by Gerrit Code Review
commit 2268c285a5

@ -202,6 +202,10 @@ bool cp_needsCheckpoint() {
}
Status cp_prepareCheckpoint() {
if (!isCheckpointing) {
return Status::ok();
}
Fstab mounts;
if (!ReadFstabFromFile("/proc/mounts", &mounts)) {
return Status::fromExceptionCode(EINVAL, "Failed to get /proc/mounts");

Loading…
Cancel
Save