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

Commit 4f878cf6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "fs_mgr: Do not mount empty partitions."

parents a70e2b2e 6868cb9f
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);