VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-10-24 08:37:03 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:24:06 +0100
commit067394d110ad712963f895cf63ae4a12ca4c0df1 (patch)
tree1b41ac081160d458feae77e0e9e4051899bf0f69 /src
parentf05f6a00a6b0f150b0a0b51cd7b44b9c9193e3de (diff)
downloadVeraCrypt-067394d110ad712963f895cf63ae4a12ca4c0df1.tar.gz
VeraCrypt-067394d110ad712963f895cf63ae4a12ca4c0df1.zip
MacOSX : Support hard drives with a large sector size ( > 512).
Diffstat (limited to 'src')
-rw-r--r--src/Core/VolumeCreator.cpp2
-rw-r--r--src/Volume/VolumeHeader.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Core/VolumeCreator.cpp b/src/Core/VolumeCreator.cpp
index e9c764a0..307c0bf3 100644
--- a/src/Core/VolumeCreator.cpp
+++ b/src/Core/VolumeCreator.cpp
@@ -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)
diff --git a/src/Volume/VolumeHeader.cpp b/src/Volume/VolumeHeader.cpp
index bee60af7..e7a47d29 100644
--- a/src/Volume/VolumeHeader.cpp
+++ b/src/Volume/VolumeHeader.cpp
@@ -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