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

Commit d4345df5 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

Change-Id: Ie6fb249de2ab11278ebf7aa010c4b05c2992cb28
parents 73236108 68303f22
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);