Merge "fs_mgr: Do not mount empty partitions."
This commit is contained in:
commit
4f878cf6cb
1 changed files with 4 additions and 0 deletions
|
|
@ -110,6 +110,10 @@ bool CreateLogicalPartitions(const std::string& block_device) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
for (const auto& partition : metadata->partitions) {
|
for (const auto& partition : metadata->partitions) {
|
||||||
|
if (!partition.num_extents) {
|
||||||
|
LINFO << "Skipping zero-length logical partition: " << GetPartitionName(partition);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
std::string path;
|
std::string path;
|
||||||
if (!CreateLogicalPartition(block_device, *metadata.get(), partition, false, &path)) {
|
if (!CreateLogicalPartition(block_device, *metadata.get(), partition, false, &path)) {
|
||||||
LERROR << "Could not create logical partition: " << GetPartitionName(partition);
|
LERROR << "Could not create logical partition: " << GetPartitionName(partition);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue