Merge "Do not trim unless we are actually checkpointing" am: 2268c285a5 am: 9de5e3c028
am: 2b108efef1
Change-Id: I7ef6807671da4a1f34a90a5c5c14d3acca814d57
diff --git a/Checkpoint.cpp b/Checkpoint.cpp
index c33d934..abda045 100644
--- a/Checkpoint.cpp
+++ b/Checkpoint.cpp
@@ -202,6 +202,10 @@
}
Status cp_prepareCheckpoint() {
+ if (!isCheckpointing) {
+ return Status::ok();
+ }
+
Fstab mounts;
if (!ReadFstabFromFile("/proc/mounts", &mounts)) {
return Status::fromExceptionCode(EINVAL, "Failed to get /proc/mounts");