Add support for detecting support tools of innerFS.
This commit is contained in:
parent
e3bb8a335c
commit
6bcbe14169
|
@ -83,6 +83,7 @@ void luks::init()
|
||||||
bool luks::supportToolFound() const
|
bool luks::supportToolFound() const
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
|
m_isCryptOpen && m_innerFs ? m_innerFs->supportToolFound() : true &&
|
||||||
// m_GetUsed != cmdSupportNone &&
|
// m_GetUsed != cmdSupportNone &&
|
||||||
m_GetLabel != cmdSupportNone &&
|
m_GetLabel != cmdSupportNone &&
|
||||||
m_SetLabel != cmdSupportNone &&
|
m_SetLabel != cmdSupportNone &&
|
||||||
|
@ -99,6 +100,8 @@ bool luks::supportToolFound() const
|
||||||
|
|
||||||
FileSystem::SupportTool luks::supportToolName() const
|
FileSystem::SupportTool luks::supportToolName() const
|
||||||
{
|
{
|
||||||
|
if (m_isCryptOpen && m_innerFs)
|
||||||
|
return m_innerFs->supportToolName();
|
||||||
return SupportTool(QStringLiteral("cryptsetup"),
|
return SupportTool(QStringLiteral("cryptsetup"),
|
||||||
QUrl(QStringLiteral("https://code.google.com/p/cryptsetup/")));
|
QUrl(QStringLiteral("https://code.google.com/p/cryptsetup/")));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue