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

Commit 44b90068 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 am: 68303f22 am: d4345df5

am: 036aca12

Change-Id: I029895c18695f074b14c006011c2d49b33586e7f
parents de0ec82b 036aca12
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);