mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
MacOSX : Support hard drives with a large sector size ( > 512).
This commit is contained in:
@@ -213,7 +213,7 @@ namespace VeraCrypt
|
||||
|
||||
if (options->SectorSize < TC_MIN_VOLUME_SECTOR_SIZE
|
||||
|| options->SectorSize > TC_MAX_VOLUME_SECTOR_SIZE
|
||||
#if !defined (TC_LINUX)
|
||||
#if !defined (TC_LINUX) && !defined (TC_MACOSX)
|
||||
|| options->SectorSize != TC_SECTOR_SIZE_LEGACY
|
||||
#endif
|
||||
|| options->SectorSize % ENCRYPTION_DATA_UNIT_SIZE != 0)
|
||||
|
||||
@@ -184,7 +184,7 @@ namespace VeraCrypt
|
||||
throw ParameterIncorrect (SRC_POS);
|
||||
}
|
||||
|
||||
#if !(defined (TC_WINDOWS) || defined (TC_LINUX))
|
||||
#if !(defined (TC_WINDOWS) || defined (TC_LINUX) || defined (TC_MACOSX))
|
||||
if (SectorSize != TC_SECTOR_SIZE_LEGACY)
|
||||
throw UnsupportedSectorSize (SRC_POS);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user