Fix checkpoint on Taimen
Bug: 129494872
Test: VtsKernelCheckpointTest runs and passes
Change-Id: Ib2de866db7c847d569789d1aa6cdbad7c3ee7ff4
diff --git a/Checkpoint.cpp b/Checkpoint.cpp
index 8605b6a..2b353f1 100644
--- a/Checkpoint.cpp
+++ b/Checkpoint.cpp
@@ -291,7 +291,7 @@
int ret;
std::string size_filename = std::string("/sys/") + blk_device.substr(5) + "/bow/free";
std::string content;
- ret = android::base::ReadFileToString(kMetadataCPFile, &content);
+ ret = android::base::ReadFileToString(size_filename, &content);
if (ret) {
free_bytes = std::strtoul(content.c_str(), NULL, 10);
}
@@ -346,7 +346,7 @@
}
if (fstab_rec->fs_mgr_flags.checkpoint_blk || fstab_rec->fs_mgr_flags.checkpoint_fs) {
std::thread(cp_healthDaemon, std::string(mount_rec.mount_point),
- std::string(mount_rec.mount_point),
+ std::string(mount_rec.blk_device),
fstab_rec->fs_mgr_flags.checkpoint_fs == 1)
.detach();
}