Merge "Do not trim unless we are actually checkpointing"
This commit is contained in:
commit
2268c285a5
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue