Fix reading partition label.

This commit is contained in:
Andrius Štikonas 2017-09-17 13:06:31 +01:00
parent d99b3f6eb3
commit 1713f66872
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ void LibPartedBackend::scanDevicePartitions(Device& d, PedDisk* pedDisk)
// GPT partitions support partition labels and partition UUIDs
if(d.partitionTable()->type() == PartitionTable::TableType::gpt)
fs->setLabel(fs->readLabel(part->deviceNode()));
part->setLabel(QLatin1String(ped_partition_get_name(pedPartition)));
if (fs->supportGetUUID() != FileSystem::cmdSupportNone)
fs->setUUID(fs->readUUID(part->deviceNode()));