mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Linux: Remove limitation of hidden volume protection on disk with sector size larger than 512 bytes.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user