mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-24 12:03:28 +01:00
Linux: Remove limitation of hidden volume protection on disk with sector size larger than 512 bytes.
This commit is contained in:
parent
c84bcd4b47
commit
012f7bfa93
@ -475,17 +475,6 @@ namespace VeraCrypt
|
|||||||
{
|
{
|
||||||
if (volume->GetFile()->GetDeviceSectorSize() != volume->GetSectorSize())
|
if (volume->GetFile()->GetDeviceSectorSize() != volume->GetSectorSize())
|
||||||
throw ParameterIncorrect (SRC_POS);
|
throw ParameterIncorrect (SRC_POS);
|
||||||
|
|
||||||
#if defined (TC_LINUX)
|
|
||||||
if (volume->GetSectorSize() != TC_SECTOR_SIZE_LEGACY)
|
|
||||||
{
|
|
||||||
if (options.Protection == VolumeProtection::HiddenVolumeReadOnly)
|
|
||||||
throw UnsupportedSectorSizeHiddenVolumeProtection();
|
|
||||||
|
|
||||||
if (options.NoKernelCrypto)
|
|
||||||
throw UnsupportedSectorSizeNoKernelCrypto();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find a free mount point for FUSE service
|
// Find a free mount point for FUSE service
|
||||||
|
Loading…
Reference in New Issue
Block a user