btrfs: implement updateUUID.
This commit is contained in:
parent
9ea983654c
commit
89a5308686
|
@ -57,7 +57,7 @@ void btrfs::init()
|
||||||
m_Shrink = (m_Grow != cmdSupportNone && m_GetUsed != cmdSupportNone) ? cmdSupportFileSystem : cmdSupportNone;
|
m_Shrink = (m_Grow != cmdSupportNone && m_GetUsed != cmdSupportNone) ? cmdSupportFileSystem : cmdSupportNone;
|
||||||
|
|
||||||
m_SetLabel = findExternal(QStringLiteral("btrfs")) ? cmdSupportFileSystem : cmdSupportNone;
|
m_SetLabel = findExternal(QStringLiteral("btrfs")) ? cmdSupportFileSystem : cmdSupportNone;
|
||||||
m_UpdateUUID = cmdSupportNone;
|
m_UpdateUUID = findExternal(QStringLiteral("btrfstune")) ? cmdSupportFileSystem : cmdSupportNone;
|
||||||
|
|
||||||
m_Copy = (m_Check != cmdSupportNone) ? cmdSupportCore : cmdSupportNone;
|
m_Copy = (m_Check != cmdSupportNone) ? cmdSupportCore : cmdSupportNone;
|
||||||
m_Move = (m_Check != cmdSupportNone) ? cmdSupportCore : cmdSupportNone;
|
m_Move = (m_Check != cmdSupportNone) ? cmdSupportCore : cmdSupportNone;
|
||||||
|
@ -191,9 +191,7 @@ bool btrfs::writeLabelOnline(Report& report, const QString& deviceNode, const QS
|
||||||
|
|
||||||
bool btrfs::updateUUID(Report& report, const QString& deviceNode) const
|
bool btrfs::updateUUID(Report& report, const QString& deviceNode) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(report);
|
ExternalCommand cmd(report, QStringLiteral("btrfstune"), { QStringLiteral("-f"), QStringLiteral("-u"), deviceNode });
|
||||||
Q_UNUSED(deviceNode);
|
return cmd.run(-1) && cmd.exitCode() == 0;
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue