Move luks label handlingfrom libpartedbackend to FS::luks.

This commit is contained in:
Andrius Štikonas 2016-05-11 11:53:15 +01:00
parent 19f5ce0b28
commit a7c9acd518
2 changed files with 1 additions and 2 deletions

View File

@ -69,7 +69,7 @@ luks::~luks()
void luks::init() void luks::init()
{ {
m_Create = findExternal(QStringLiteral("cryptsetup")) ? cmdSupportFileSystem : cmdSupportNone; m_Create = findExternal(QStringLiteral("cryptsetup")) ? cmdSupportFileSystem : cmdSupportNone;
m_SetLabel = cmdSupportFileSystem; m_SetLabel = cmdSupportNone;
m_GetLabel = cmdSupportFileSystem; m_GetLabel = cmdSupportFileSystem;
m_UpdateUUID = findExternal(QStringLiteral("cryptsetup")) ? cmdSupportFileSystem : cmdSupportNone; m_UpdateUUID = findExternal(QStringLiteral("cryptsetup")) ? cmdSupportFileSystem : cmdSupportNone;
m_Grow = findExternal(QStringLiteral("cryptsetup")) ? cmdSupportFileSystem : cmdSupportNone; m_Grow = findExternal(QStringLiteral("cryptsetup")) ? cmdSupportFileSystem : cmdSupportNone;

View File

@ -379,7 +379,6 @@ void LibPartedBackend::scanDevicePartitions(Device& d, PedDisk* pedDisk)
// in helpers.h for convenience. // in helpers.h for convenience.
mounted = isMounted(mapperNode); mounted = isMounted(mapperNode);
} else { } else {
luksFs->m_SetLabel = FileSystem::cmdSupportNone;
mounted = false; mounted = false;
} }