Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86841a80 authored by Tom Cherry's avatar Tom Cherry Committed by Automerger Merge Worker
Browse files

Merge "Adding wait for a device file before mount" into rvc-dev am: fa944678

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/11810826

Change-Id: I16560a84d7960a6fd8b0fadeaeaf53cc81c122a6
parents ab07cb3c fa944678
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1777,6 +1777,11 @@ int fs_mgr_remount_userdata_into_checkpointing(Fstab* fstab) {
// wrapper to __mount() and expects a fully prepared fstab_rec,
// unlike fs_mgr_do_mount which does more things with avb / verity etc.
int fs_mgr_do_mount_one(const FstabEntry& entry, const std::string& mount_point) {
    // First check the filesystem if requested.
    if (entry.fs_mgr_flags.wait && !WaitForFile(entry.blk_device, 20s)) {
        LERROR << "Skipping mounting '" << entry.blk_device << "'";
    }

    // Run fsck if needed
    prepare_fs_for_mount(entry.blk_device, entry);