Merge "Get the correct fstab entry if there are more than one" into main am: 41d3e8d1e5 am: f7c7ae7801

Original change: https://android-review.googlesource.com/c/platform/system/vold/+/3059764

Change-Id: I889793158393d4de3546218916312e9488ae980d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Kelvin Zhang 2024-04-25 17:46:00 +00:00 committed by Automerger Merge Worker
commit f66981924d

View file

@ -198,7 +198,8 @@ Status cp_commitChanges() {
// Walk mounted file systems
for (const auto& mount_rec : mounts) {
const auto fstab_rec = GetEntryForMountPoint(&fstab_default, mount_rec.mount_point);
const auto fstab_rec =
GetEntryForMountPoint(&fstab_default, mount_rec.mount_point, mount_rec.fs_type);
if (!fstab_rec) continue;
if (fstab_rec->fs_mgr_flags.checkpoint_fs) {