Don't Skip Checkpointing for F2fs

"Do not reboot with commit failure when ext4 userdata is wiped" has
caused a regression in cuttlefish on f2fs. Overlay.img rapidly grows to
the full userdata size. This updates that CL to only affect partitions
marked for block based checkpointing.

Test: Boot Cuttlefish, monitor overlay.img for 5 minutes
Bug: 285019395
Change-Id: I8aa37a97e847960afe8b368090a86c8835e6ca9e
This commit is contained in:
Daniel Rosenberg 2023-06-21 18:50:54 -07:00
parent 55593258ac
commit 5d1d945b56

View file

@ -104,8 +104,7 @@ static bool mount_via_fs_mgr(const char* mount_point, const char* blk_device, bo
}
auto mount_rc = fs_mgr_do_mount(&fstab_default, const_cast<char*>(mount_point),
const_cast<char*>(blk_device), nullptr,
needs_encrypt? false: android::vold::cp_needsCheckpoint(),
true);
android::vold::cp_needsCheckpoint(), true, needs_encrypt);
if (setexeccon(nullptr)) {
PLOG(ERROR) << "Failed to clear setexeccon";
return false;