Enable moving, copying and backing up LUKS partitions.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1325828
This commit is contained in:
Andrius Štikonas 2012-11-21 19:24:00 +00:00
parent c93da7c1ae
commit 0497ec2db7
2 changed files with 9 additions and 3 deletions

View File

@ -31,10 +31,10 @@ namespace FS
FileSystem::CommandSupportType luks::m_Create = FileSystem::cmdSupportNone;
FileSystem::CommandSupportType luks::m_Grow = FileSystem::cmdSupportNone;
FileSystem::CommandSupportType luks::m_Shrink = FileSystem::cmdSupportNone;
FileSystem::CommandSupportType luks::m_Move = FileSystem::cmdSupportNone;
FileSystem::CommandSupportType luks::m_Move = FileSystem::cmdSupportCore;
FileSystem::CommandSupportType luks::m_Check = FileSystem::cmdSupportNone;
FileSystem::CommandSupportType luks::m_Copy = FileSystem::cmdSupportNone;
FileSystem::CommandSupportType luks::m_Backup = FileSystem::cmdSupportNone;
FileSystem::CommandSupportType luks::m_Copy = FileSystem::cmdSupportCore;
FileSystem::CommandSupportType luks::m_Backup = FileSystem::cmdSupportCore;
FileSystem::CommandSupportType luks::m_SetLabel = FileSystem::cmdSupportNone;
FileSystem::CommandSupportType luks::m_UpdateUUID = FileSystem::cmdSupportNone;
FileSystem::CommandSupportType luks::m_GetUUID = FileSystem::cmdSupportNone;
@ -48,6 +48,11 @@ namespace FS
{
}
FileSystem::SupportTool luks::supportToolName() const
{
return SupportTool("cryptsetup", KUrl("https://code.google.com/p/cryptsetup/"));
}
qint64 luks::maxCapacity() const
{
return Capacity::unitFactor(Capacity::Byte, Capacity::EiB);

View File

@ -58,6 +58,7 @@ namespace FS
virtual CommandSupportType supportGetUUID() const { return m_GetUUID; }
virtual qint64 maxCapacity() const;
virtual SupportTool supportToolName() const;
virtual bool supportToolFound() const { return true; }
static QString getCipherName (const QString& deviceNode);