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

Commit 68303f22 authored by David Anderson's avatar David Anderson Committed by android-build-merger
Browse files

Merge "fs_mgr: Do not mount empty partitions."

am: 4f878cf6

Change-Id: I62e1721c63b9b3054a20b4f486ed7e3f9f722ae7
parents 8b79606d 4f878cf6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -110,6 +110,10 @@ bool CreateLogicalPartitions(const std::string& block_device) {
        return true;
    }
    for (const auto& partition : metadata->partitions) {
        if (!partition.num_extents) {
            LINFO << "Skipping zero-length logical partition: " << GetPartitionName(partition);
            continue;
        }
        std::string path;
        if (!CreateLogicalPartition(block_device, *metadata.get(), partition, false, &path)) {
            LERROR << "Could not create logical partition: " << GetPartitionName(partition);