1
0
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:
Mounir IDRASSI
2014-10-24 08:37:03 +02:00
parent f05f6a00a6
commit 067394d110
2 changed files with 2 additions and 2 deletions

View File

@@ -213,7 +213,7 @@ namespace VeraCrypt
if (options->SectorSize < TC_MIN_VOLUME_SECTOR_SIZE if (options->SectorSize < TC_MIN_VOLUME_SECTOR_SIZE
|| options->SectorSize > TC_MAX_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 || options->SectorSize != TC_SECTOR_SIZE_LEGACY
#endif #endif
|| options->SectorSize % ENCRYPTION_DATA_UNIT_SIZE != 0) || options->SectorSize % ENCRYPTION_DATA_UNIT_SIZE != 0)

View File

@@ -184,7 +184,7 @@ namespace VeraCrypt
throw ParameterIncorrect (SRC_POS); 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) if (SectorSize != TC_SECTOR_SIZE_LEGACY)
throw UnsupportedSectorSize (SRC_POS); throw UnsupportedSectorSize (SRC_POS);
#endif #endif