Do not check for cryptsetup executable so often.
This commit is contained in:
parent
8f77c6d679
commit
7c0a32758e
|
@ -58,7 +58,7 @@ luks::luks(qint64 firstsector,
|
||||||
: FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Luks)
|
: FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Luks)
|
||||||
, m_innerFs(nullptr)
|
, m_innerFs(nullptr)
|
||||||
, m_isCryptOpen(false)
|
, m_isCryptOpen(false)
|
||||||
, m_cryptsetupFound(false)
|
, m_cryptsetupFound(m_Create != cmdSupportNone)
|
||||||
, m_isMounted(false)
|
, m_isMounted(false)
|
||||||
, m_logicalSectorSize(1)
|
, m_logicalSectorSize(1)
|
||||||
{
|
{
|
||||||
|
@ -96,9 +96,7 @@ void luks::scan(const QString& deviceNode)
|
||||||
|
|
||||||
bool luks::supportToolFound() const
|
bool luks::supportToolFound() const
|
||||||
{
|
{
|
||||||
m_cryptsetupFound = findExternal(QStringLiteral("cryptsetup")) ? cmdSupportFileSystem : cmdSupportNone;
|
return m_cryptsetupFound && ((m_isCryptOpen && m_innerFs) ? m_innerFs->supportToolFound() : true);
|
||||||
return m_cryptsetupFound &&
|
|
||||||
((m_isCryptOpen && m_innerFs) ? m_innerFs->supportToolFound() : true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FileSystem::SupportTool luks::supportToolName() const
|
FileSystem::SupportTool luks::supportToolName() const
|
||||||
|
|
Loading…
Reference in New Issue