Set FAT label in upper case

FAT label should be stored in upper case. Also Windows systems doing it.
This commit is contained in:
Pali Rohár 2017-09-26 19:01:20 +02:00 committed by Andrius Štikonas
parent 098fdee506
commit 5a30aff288
1 changed files with 2 additions and 2 deletions

View File

@ -139,9 +139,9 @@ qint64 fat16::readUsedCapacity(const QString& deviceNode) const
bool fat16::writeLabel(Report& report, const QString& deviceNode, const QString& newLabel)
{
report.line() << xi18nc("@info:progress", "Setting label for partition <filename>%1</filename> to %2", deviceNode, newLabel);
report.line() << xi18nc("@info:progress", "Setting label for partition <filename>%1</filename> to %2", deviceNode, newLabel.toUpper());
ExternalCommand cmd(report, QStringLiteral("fatlabel"), { deviceNode, newLabel });
ExternalCommand cmd(report, QStringLiteral("fatlabel"), { deviceNode, newLabel.toUpper() });
return cmd.run(-1) && cmd.exitCode() == 0;
}