Show error message if shrinking innerFS inside luks fails.

This commit is contained in:
Andrius Štikonas 2016-05-12 16:48:32 +01:00
parent 7e8cfaf25c
commit 9b5c33696c
1 changed files with 1 additions and 2 deletions

View File

@ -489,8 +489,6 @@ bool luks::resize(Report& report, const QString& deviceNode, qint64 newLength) c
{
return m_innerFs->resize(report, mapperNode, newLength - getPayloadOffset(deviceNode).toInt() * m_logicalSectorSize);
}
else
report.line() << xi18nc("@info/plain", "Resizing encrypted file system on partition <filename>%1</filename> failed.", deviceNode);
}
else if (m_innerFs->resize(report, mapperNode, payloadLength))
{
@ -501,6 +499,7 @@ bool luks::resize(Report& report, const QString& deviceNode, qint64 newLength) c
return true;
}
}
report.line() << xi18nc("@info/plain", "Resizing encrypted file system on partition <filename>%1</filename> failed.", deviceNode);
return false;
}