Changing swap labels while swap is active does not seem to work anymore.
This commit is contained in:
parent
7eb2ceed17
commit
08d2e3dc2c
|
@ -122,12 +122,6 @@ bool linuxswap::writeLabel(Report& report, const QString& deviceNode, const QStr
|
||||||
return cmd.run(-1) && cmd.exitCode() == 0;
|
return cmd.run(-1) && cmd.exitCode() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool linuxswap::writeLabelOnline(Report& report, const QString& deviceNode, const QString& mountPoint, const QString& newLabel)
|
|
||||||
{
|
|
||||||
Q_UNUSED(mountPoint)
|
|
||||||
return writeLabel(report, deviceNode, newLabel);
|
|
||||||
}
|
|
||||||
|
|
||||||
QString linuxswap::mountTitle() const
|
QString linuxswap::mountTitle() const
|
||||||
{
|
{
|
||||||
return xi18nc("@title:menu", "Activate swap");
|
return xi18nc("@title:menu", "Activate swap");
|
||||||
|
|
|
@ -40,7 +40,6 @@ public:
|
||||||
bool create(Report& report, const QString& deviceNode) override;
|
bool create(Report& report, const QString& deviceNode) override;
|
||||||
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
bool resize(Report& report, const QString& deviceNode, qint64 length) const override;
|
||||||
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
bool writeLabel(Report& report, const QString& deviceNode, const QString& newLabel) override;
|
||||||
bool writeLabelOnline(Report& report, const QString& deviceNode, const QString& mountPoint, const QString& newLabel) override;
|
|
||||||
bool copy(Report& report, const QString& targetDeviceNode, const QString& sourceDeviceNode) const override;
|
bool copy(Report& report, const QString& targetDeviceNode, const QString& sourceDeviceNode) const override;
|
||||||
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
bool updateUUID(Report& report, const QString& deviceNode) const override;
|
||||||
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
qint64 readUsedCapacity(const QString& deviceNode) const override;
|
||||||
|
@ -76,9 +75,6 @@ public:
|
||||||
CommandSupportType supportSetLabel() const override {
|
CommandSupportType supportSetLabel() const override {
|
||||||
return m_SetLabel;
|
return m_SetLabel;
|
||||||
}
|
}
|
||||||
CommandSupportType supportSetLabelOnline() const override {
|
|
||||||
return m_SetLabel;
|
|
||||||
}
|
|
||||||
CommandSupportType supportUpdateUUID() const override {
|
CommandSupportType supportUpdateUUID() const override {
|
||||||
return m_UpdateUUID;
|
return m_UpdateUUID;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue