Set FAT label in upper case
FAT label should be stored in upper case. Also Windows systems doing it.
This commit is contained in:
parent
098fdee506
commit
5a30aff288
|
@ -139,9 +139,9 @@ qint64 fat16::readUsedCapacity(const QString& deviceNode) const
|
||||||
|
|
||||||
bool fat16::writeLabel(Report& report, const QString& deviceNode, const QString& newLabel)
|
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;
|
return cmd.run(-1) && cmd.exitCode() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue