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

Commit 036aca12 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

Change-Id: Ia713ee331a3fbdfbf1b23327890380cfad95d591
parents 0ba872ce d4345df5
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);