Do not trim unless we are actually checkpointing
I'm not convinced this explains the full regression, but it's a worthwhile fix anyway. Bug: 124774357 Test: Booted in checkpoint mode and non checkpoint mode Change-Id: I6e0e1e59e27bd127feac218fff7d88bb3570b530
This commit is contained in:
parent
d6bbe746d7
commit
db08694bb1
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