Add Label for LVM partition's filesystem

This commit is contained in:
Chantara Tith 2016-06-19 05:24:05 +07:00
parent 76800ea872
commit b5262262c2
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,10 @@ Partition* LvmDevice::scanPartition(const QString& lvpath, const Device& dev, Pa
fs->setSectorsUsed(freeSpaceInfo.used() / logicalSize());
}
if (fs->supportGetLabel() != FileSystem::cmdSupportNone) {
fs->setLabel(fs->readLabel(lvpath));
}
Partition* part = new Partition(pTable,
dev,
PartitionRole(PartitionRole::Lvm_Lv),