Disable copying open luks volumes.
This commit is contained in:
parent
4aeea8b143
commit
7c137c36c6
|
@ -92,7 +92,7 @@ bool luks::supportToolFound() const
|
||||||
m_UpdateUUID != cmdSupportNone &&
|
m_UpdateUUID != cmdSupportNone &&
|
||||||
m_Grow != cmdSupportNone &&
|
m_Grow != cmdSupportNone &&
|
||||||
m_Shrink != cmdSupportNone &&
|
m_Shrink != cmdSupportNone &&
|
||||||
m_Copy != cmdSupportNone &&
|
// m_Copy != cmdSupportNone &&
|
||||||
m_Move != cmdSupportNone &&
|
m_Move != cmdSupportNone &&
|
||||||
m_Backup != cmdSupportNone &&
|
m_Backup != cmdSupportNone &&
|
||||||
m_GetUUID != cmdSupportNone;
|
m_GetUUID != cmdSupportNone;
|
||||||
|
@ -310,6 +310,7 @@ bool luks::cryptClose(const QString& deviceNode)
|
||||||
m_passphrase.clear();
|
m_passphrase.clear();
|
||||||
setLabel({});
|
setLabel({});
|
||||||
m_SetLabel = cmdSupportNone;
|
m_SetLabel = cmdSupportNone;
|
||||||
|
m_Copy = cmdSupportCore;
|
||||||
setUUID(readUUID(deviceNode));
|
setUUID(readUUID(deviceNode));
|
||||||
setSectorsUsed(-1);
|
setSectorsUsed(-1);
|
||||||
|
|
||||||
|
@ -327,6 +328,7 @@ void luks::loadInnerFileSystem(const QString& mapperNode)
|
||||||
m_innerFs = FileSystemFactory::cloneWithNewType(innerFsType,
|
m_innerFs = FileSystemFactory::cloneWithNewType(innerFsType,
|
||||||
*this);
|
*this);
|
||||||
m_SetLabel = cmdSupportFileSystem;
|
m_SetLabel = cmdSupportFileSystem;
|
||||||
|
m_Copy = cmdSupportNone;
|
||||||
setLabel(m_innerFs->readLabel(mapperNode));
|
setLabel(m_innerFs->readLabel(mapperNode));
|
||||||
setUUID(m_innerFs->readUUID(mapperNode));
|
setUUID(m_innerFs->readUUID(mapperNode));
|
||||||
if (m_innerFs->supportGetUsed() == FileSystem::cmdSupportFileSystem) // FIXME:also implement checking space if partition is mounted
|
if (m_innerFs->supportGetUsed() == FileSystem::cmdSupportFileSystem) // FIXME:also implement checking space if partition is mounted
|
||||||
|
|
Loading…
Reference in New Issue