Merge "Do not trim unless we are actually checkpointing"

This commit is contained in:
Treehugger Robot 2019-02-20 12:09:31 +00:00 committed by Gerrit Code Review
commit 2268c285a5

View file

@ -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");