Show error message if shrinking innerFS inside luks fails.
This commit is contained in:
parent
7e8cfaf25c
commit
9b5c33696c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue